Lines Matching refs:htable
40 h->htable = NULL; in hashtab_init()
43 h->htable = kcalloc(size, sizeof(*h->htable), GFP_KERNEL); in hashtab_init()
44 if (!h->htable) in hashtab_init()
74 cur = h->htable[i]; in hashtab_destroy()
80 h->htable[i] = NULL; in hashtab_destroy()
83 kfree(h->htable); in hashtab_destroy()
84 h->htable = NULL; in hashtab_destroy()
95 cur = h->htable[i]; in hashtab_map()
117 cur = h->htable[i]; in hashtab_stat()
151 new->htable = kcalloc(orig->size, sizeof(*new->htable), GFP_KERNEL); in hashtab_duplicate()
152 if (!new->htable) in hashtab_duplicate()
159 for (orig_cur = orig->htable[i]; orig_cur; in hashtab_duplicate()
172 new->htable[i] = tmp; in hashtab_duplicate()
184 for (cur = new->htable[i]; cur; cur = tmp) { in hashtab_duplicate()
190 kfree(new->htable); in hashtab_duplicate()