Lines Matching defs:new
134 int hashtab_duplicate(struct hashtab *new, struct hashtab *orig,
135 int (*copy)(struct hashtab_node *new,
144 memset(new, 0, sizeof(*new));
146 new->htable = kcalloc(orig->size, sizeof(*new->htable), GFP_KERNEL);
147 if (!new->htable)
150 new->size = orig->size;
166 new->htable[i] = tmp;
170 new->nel++;
177 for (i = 0; i < new->size; i++) {
178 for (cur = new->htable[i]; cur; cur = tmp) {
184 kfree(new->htable);
185 memset(new, 0, sizeof(*new));