Lines Matching refs:newtbl
52 struct mesh_table *newtbl; in mesh_table_alloc() local
54 newtbl = kmalloc(sizeof(struct mesh_table), GFP_ATOMIC); in mesh_table_alloc()
55 if (!newtbl) in mesh_table_alloc()
58 INIT_HLIST_HEAD(&newtbl->known_gates); in mesh_table_alloc()
59 INIT_HLIST_HEAD(&newtbl->walk_head); in mesh_table_alloc()
60 atomic_set(&newtbl->entries, 0); in mesh_table_alloc()
61 spin_lock_init(&newtbl->gates_lock); in mesh_table_alloc()
62 spin_lock_init(&newtbl->walk_lock); in mesh_table_alloc()
63 if (rhashtable_init(&newtbl->rhead, &mesh_rht_params)) { in mesh_table_alloc()
64 kfree(newtbl); in mesh_table_alloc()
68 return newtbl; in mesh_table_alloc()