Lines Matching refs:newtbl
302 struct mesh_table *newtbl;
304 newtbl = kmalloc(sizeof(struct mesh_table), GFP_KERNEL);
305 if (!newtbl)
308 newtbl->hash_buckets = kzalloc(sizeof(struct hlist_head) *
311 if (!newtbl->hash_buckets) {
312 kfree(newtbl);
316 newtbl->hashwlock = kmalloc(sizeof(spinlock_t) *
318 if (!newtbl->hashwlock) {
319 kfree(newtbl->hash_buckets);
320 kfree(newtbl);
324 newtbl->size_order = size_order;
325 newtbl->hash_mask = (1 << size_order) - 1;
326 atomic_set(&newtbl->entries, 0);
327 get_random_bytes(&newtbl->hash_rnd,
328 sizeof(newtbl->hash_rnd));
329 for (i = 0; i <= newtbl->hash_mask; i++)
330 spin_lock_init(&newtbl->hashwlock[i]);
332 return newtbl;