Home
last modified time | relevance | path

Searched refs:htable (Results 1 – 24 of 24) sorted by relevance

/external/selinux/libsepol/src/
Dsidtab.c30 s->htable = malloc(sizeof(sidtab_ptr_t) * SIDTAB_SIZE); in sepol_sidtab_init()
31 if (!s->htable) in sepol_sidtab_init()
34 s->htable[i] = (sidtab_ptr_t) NULL; in sepol_sidtab_init()
48 if (!s || !s->htable) in sepol_sidtab_insert()
53 cur = s->htable[hvalue]; in sepol_sidtab_insert()
77 newnode->next = s->htable[hvalue]; in sepol_sidtab_insert()
78 s->htable[hvalue] = newnode; in sepol_sidtab_insert()
92 if (!s || !s->htable) in sepol_sidtab_remove()
97 cur = s->htable[hvalue]; in sepol_sidtab_remove()
107 s->htable[hvalue] = cur->next; in sepol_sidtab_remove()
[all …]
Dhashtab.c55 p->htable = (hashtab_ptr_t *) malloc(sizeof(hashtab_ptr_t) * size); in hashtab_create()
56 if (p->htable == NULL) { in hashtab_create()
61 p->htable[i] = (hashtab_ptr_t) NULL; in hashtab_create()
76 cur = h->htable[hvalue]; in hashtab_insert()
95 newnode->next = h->htable[hvalue]; in hashtab_insert()
96 h->htable[hvalue] = newnode; in hashtab_insert()
115 cur = h->htable[hvalue]; in hashtab_remove()
125 h->htable[hvalue] = cur->next; in hashtab_remove()
148 cur = h->htable[hvalue]; in hashtab_replace()
170 newnode->next = h->htable[hvalue]; in hashtab_replace()
[all …]
Davtab.c122 newnode->next = h->htable[hvalue]; in avtab_insert_node()
123 h->htable[hvalue] = newnode; in avtab_insert_node()
137 if (!h || !h->htable) in avtab_insert()
141 for (prev = NULL, cur = h->htable[hvalue]; in avtab_insert()
181 if (!h || !h->htable) in avtab_insert_nonunique()
184 for (prev = NULL, cur = h->htable[hvalue]; in avtab_insert_nonunique()
213 if (!h || !h->htable) in avtab_search()
217 for (cur = h->htable[hvalue]; cur; cur = cur->next) { in avtab_search()
248 if (!h || !h->htable) in avtab_search_node()
252 for (cur = h->htable[hvalue]; cur; cur = cur->next) { in avtab_search_node()
[all …]
Dwrite.c264 for (cur = a->htable[i]; cur; cur = cur->next) in avtab_reset_merged()
303 for (cur = a->htable[i]; cur; cur = cur->next) { in avtab_write()
324 for (cur = a->htable[i]; cur; cur = cur->next) { in avtab_write()
/external/selinux/policycoreutils/newrole/
Dhashtab.c34 p->htable = (hashtab_ptr_t *) malloc(sizeof(hashtab_ptr_t) * size); in hashtab_create()
35 if (p->htable == NULL) { in hashtab_create()
40 p->htable[i] = (hashtab_ptr_t) NULL; in hashtab_create()
55 cur = h->htable[hvalue]; in hashtab_insert()
74 newnode->next = h->htable[hvalue]; in hashtab_insert()
75 h->htable[hvalue] = newnode; in hashtab_insert()
94 cur = h->htable[hvalue]; in hashtab_remove()
104 h->htable[hvalue] = cur->next; in hashtab_remove()
127 cur = h->htable[hvalue]; in hashtab_replace()
149 newnode->next = h->htable[hvalue]; in hashtab_replace()
[all …]
Dhashtab.h33 hashtab_ptr_t *htable; /* hash table */ member
/external/selinux/libselinux/src/
Davc_sidtab.c35 s->htable = (struct sidtab_node **)avc_malloc in sidtab_init()
38 if (!s->htable) { in sidtab_init()
43 s->htable[i] = NULL; in sidtab_init()
68 newnode->next = s->htable[hvalue]; in sidtab_insert()
71 s->htable[hvalue] = newnode; in sidtab_insert()
88 cur = s->htable[hvalue]; in sidtab_context_to_sid()
112 cur = h->htable[i]; in sidtab_sid_stats()
141 cur = s->htable[i]; in sidtab_destroy()
148 s->htable[i] = NULL; in sidtab_destroy()
150 avc_free(s->htable); in sidtab_destroy()
[all …]
Davc_sidtab.h23 struct sidtab_node **htable; member
/external/libselinux/src/
Davc_sidtab.c35 s->htable = (struct sidtab_node **)avc_malloc in sidtab_init()
38 if (!s->htable) { in sidtab_init()
43 s->htable[i] = NULL; in sidtab_init()
68 newnode->next = s->htable[hvalue]; in sidtab_insert()
71 s->htable[hvalue] = newnode; in sidtab_insert()
88 cur = s->htable[hvalue]; in sidtab_context_to_sid()
112 cur = h->htable[i]; in sidtab_sid_stats()
141 cur = s->htable[i]; in sidtab_destroy()
148 s->htable[i] = NULL; in sidtab_destroy()
150 avc_free(s->htable); in sidtab_destroy()
[all …]
Davc_sidtab.h23 struct sidtab_node **htable; member
/external/selinux/libsepol/cil/src/
Dcil_symtab.c158 symtab->htable = cil_calloc(size, sizeof(struct cil_complex_symtab *)); in cil_complex_symtab_init()
182 for (prev = NULL, curr = symtab->htable[hash]; curr != NULL; in cil_complex_symtab_insert()
214 node->next = symtab->htable[hash]; in cil_complex_symtab_insert()
215 symtab->htable[hash] = node; in cil_complex_symtab_insert()
231 for (curr = symtab->htable[hash]; curr != NULL; curr = curr->next) { in cil_complex_symtab_search()
273 curr = symtab->htable[i]; in cil_complex_symtab_destroy()
279 symtab->htable[i] = NULL; in cil_complex_symtab_destroy()
281 free(symtab->htable); in cil_complex_symtab_destroy()
282 symtab->htable = NULL; in cil_complex_symtab_destroy()
Dcil_symtab.h67 struct cil_complex_symtab_node **htable; member
/external/selinux/policycoreutils/semodule_deps/
Dsemodule_deps.c233 cur = req->htable[i]; in free_requires()
252 cur = mods->htable[i]; in output_graphviz()
257 cur2 = reqs->htable[j]; in output_graphviz()
284 cur = mods->htable[i]; in output_requirements()
291 cur2 = reqs->htable[j]; in output_requirements()
/external/iptables/extensions/
Dlibxt_hashlimit.man43 \fB\-\-hashlimit\-htable\-size\fP \fIbuckets\fP
46 \fB\-\-hashlimit\-htable\-max\fP \fIentries\fP
49 \fB\-\-hashlimit\-htable\-expire\fP \fImsec\fP
52 \fB\-\-hashlimit\-htable\-gcinterval\fP \fImsec\fP
/external/iptables/tests/
Doptions-most.rules12 …hashlimit-name f1 --hashlimit-htable-size 64 --hashlimit-htable-max 128 --hashlimit-htable-gcinter…
25 …hashlimit-name f1 --hashlimit-htable-size 64 --hashlimit-htable-max 128 --hashlimit-htable-gcinter…
94 …it --hashlimit-upto 1/sec --hashlimit-burst 1 --hashlimit-name mini1 --hashlimit-htable-expire 2000
/external/icu/icu4c/source/common/
Dudata.cpp294 UHashtable *htable; in udata_findCachedData() local
300 htable = udata_getHashTable(); in udata_findCachedData()
302 el = (DataCacheElement *)uhash_get(htable, baseName); in udata_findCachedData()
318 UHashtable *htable; in udata_cacheDataItem() local
354 htable = udata_getHashTable(); in udata_cacheDataItem()
356 oldValue = (DataCacheElement *)uhash_get(htable, path); in udata_cacheDataItem()
362 htable, in udata_cacheDataItem()
/external/selinux/libsepol/include/sepol/policydb/
Dsidtab.h33 sidtab_ptr_t *htable; member
Dhashtab.h36 hashtab_ptr_t *htable; /* hash table */ member
Davtab.h99 avtab_ptr_t *htable; member
/external/icu/icu4c/source/i18n/unicode/
Dtmutfmt.h222 void deleteHash(Hashtable* htable);
/external/opencv/otherlibs/highgui/
Dgrfmt_jpeg.cpp1689 const uchar* htable = i == 0 ? jpegTableK3 : i == 1 ? jpegTableK5 : in WriteImage() local
1698 lowstrm.PutBytes( htable, tableSize ); // put table in WriteImage()
1701 htable, buffer, 16, 9 ), is_ac_tab ? huff_ac_tab[idx] : in WriteImage()
1799 const ulong* htable = huff_ac_tab[is_chroma]; in WriteImage() local
1828 m_strm.PutHuff( 0xF0, htable ); // encode 16 zeros in WriteImage()
1837 m_strm.PutHuff( cat + run*16, htable ); in WriteImage()
1847 m_strm.PutHuff( 0x00, htable ); // encode EOB in WriteImage()
/external/icu/icu4c/source/i18n/
Dtmutfmt.cpp688 TimeUnitFormat::deleteHash(Hashtable* htable) { in deleteHash() argument
691 if ( htable ) { in deleteHash()
692 while ( (element = htable->nextElement(pos)) != NULL ) { in deleteHash()
701 delete htable; in deleteHash()
/external/sepolicy/tools/
Dsepolicy-check.c84 for (cur = exp_avtab.htable[i]; cur; cur = cur->next) { in expand_and_check()
/external/selinux/checkpolicy/test/
Ddispol.c224 for (cur = a->htable[i]; cur; cur = cur->next) { in display_avtab()