Lines Matching refs:htable
30 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()
123 if (!s || !s->htable) in sepol_sidtab_search()
127 cur = s->htable[hvalue]; in sepol_sidtab_search()
135 cur = s->htable[hvalue]; in sepol_sidtab_search()
153 if (!s || !s->htable) in sepol_sidtab_map()
157 cur = s->htable[i]; in sepol_sidtab_map()
176 if (!s || !s->htable) in sepol_sidtab_map_remove_on_error()
181 cur = s->htable[i]; in sepol_sidtab_map_remove_on_error()
188 s->htable[i] = cur->next; in sepol_sidtab_map_remove_on_error()
214 cur = s->htable[i]; in sepol_sidtab_search_context()
268 cur = h->htable[i]; in sepol_sidtab_hash_eval()
292 if (!s || !s->htable) in sepol_sidtab_destroy()
296 cur = s->htable[i]; in sepol_sidtab_destroy()
303 s->htable[i] = NULL; in sepol_sidtab_destroy()
305 free(s->htable); in sepol_sidtab_destroy()
306 s->htable = NULL; in sepol_sidtab_destroy()
314 dst->htable = src->htable; in sepol_sidtab_set()