Home
last modified time | relevance | path

Searched refs:newtbl (Results 1 – 3 of 3) sorted by relevance

/net/mac80211/
Dmesh.c291 struct mesh_table *newtbl; in mesh_table_alloc() local
293 newtbl = kmalloc(sizeof(struct mesh_table), GFP_KERNEL); in mesh_table_alloc()
294 if (!newtbl) in mesh_table_alloc()
297 newtbl->hash_buckets = kzalloc(sizeof(struct hlist_head) * in mesh_table_alloc()
300 if (!newtbl->hash_buckets) { in mesh_table_alloc()
301 kfree(newtbl); in mesh_table_alloc()
305 newtbl->hashwlock = kmalloc(sizeof(spinlock_t) * in mesh_table_alloc()
307 if (!newtbl->hashwlock) { in mesh_table_alloc()
308 kfree(newtbl->hash_buckets); in mesh_table_alloc()
309 kfree(newtbl); in mesh_table_alloc()
[all …]
Dmesh_pathtbl.c229 struct mesh_table *oldtbl, *newtbl; in mesh_path_add() local
233 newtbl = mesh_table_grow(mesh_paths); in mesh_path_add()
234 if (!newtbl) { in mesh_path_add()
238 rcu_assign_pointer(mesh_paths, newtbl); in mesh_path_add()
315 struct mesh_table *oldtbl, *newtbl; in mpp_path_add() local
319 newtbl = mesh_table_grow(mpp_paths); in mpp_path_add()
320 if (!newtbl) { in mpp_path_add()
324 rcu_assign_pointer(mpp_paths, newtbl); in mpp_path_add()
570 static int mesh_path_node_copy(struct hlist_node *p, struct mesh_table *newtbl) in mesh_path_node_copy() argument
583 hash_idx = mesh_table_hash(mpath->dst, mpath->sdata, newtbl); in mesh_path_node_copy()
[all …]
Dmesh.h113 int (*copy_node) (struct hlist_node *p, struct mesh_table *newtbl);