Lines Matching refs:htable
39 h->htable = NULL; in hashtab_init()
42 h->htable = kcalloc(size, sizeof(*h->htable), GFP_KERNEL); in hashtab_init()
43 if (!h->htable) in hashtab_init()
73 cur = h->htable[i]; in hashtab_destroy()
79 h->htable[i] = NULL; in hashtab_destroy()
82 kfree(h->htable); in hashtab_destroy()
83 h->htable = NULL; in hashtab_destroy()
95 cur = h->htable[i]; in hashtab_map()
115 cur = h->htable[i]; in hashtab_stat()
146 new->htable = kcalloc(orig->size, sizeof(*new->htable), GFP_KERNEL); in hashtab_duplicate()
147 if (!new->htable) in hashtab_duplicate()
154 for (cur = orig->htable[i]; cur; cur = cur->next) { in hashtab_duplicate()
166 new->htable[i] = tmp; in hashtab_duplicate()
178 for (cur = new->htable[i]; cur; cur = tmp) { in hashtab_duplicate()
184 kfree(new->htable); in hashtab_duplicate()