Lines Matching defs:new
132 int hashtab_duplicate(struct hashtab *new, struct hashtab *orig,
133 int (*copy)(struct hashtab_node *new,
141 memset(new, 0, sizeof(*new));
143 new->htable = kcalloc(orig->size, sizeof(*new->htable), GFP_KERNEL);
144 if (!new->htable)
147 new->size = orig->size;
163 new->htable[i] = tmp;
167 new->nel++;
174 for (i = 0; i < new->size; i++) {
175 for (cur = new->htable[i]; cur; cur = tmp) {
181 kfree(new->htable);
182 memset(new, 0, sizeof(*new));