Lines Matching refs:node

76 #define for_each_mesh_entry(tbl, node, i) \  argument
78 hlist_for_each_entry_rcu(node, &tbl->hash_buckets[i], list)
340 struct mpath_node *node; in mpath_lookup() local
343 hlist_for_each_entry_rcu(node, bucket, list) { in mpath_lookup()
344 mpath = node->mpath; in mpath_lookup()
393 struct mpath_node *node; in mesh_path_lookup_by_idx() local
397 for_each_mesh_entry(tbl, node, i) { in mesh_path_lookup_by_idx()
398 if (sdata && node->mpath->sdata != sdata) in mesh_path_lookup_by_idx()
401 if (mpath_expired(node->mpath)) { in mesh_path_lookup_by_idx()
402 spin_lock_bh(&node->mpath->state_lock); in mesh_path_lookup_by_idx()
403 node->mpath->flags &= ~MESH_PATH_ACTIVE; in mesh_path_lookup_by_idx()
404 spin_unlock_bh(&node->mpath->state_lock); in mesh_path_lookup_by_idx()
406 return node->mpath; in mesh_path_lookup_by_idx()
426 struct mpath_node *node; in mpp_path_lookup_by_idx() local
430 for_each_mesh_entry(tbl, node, i) { in mpp_path_lookup_by_idx()
431 if (sdata && node->mpath->sdata != sdata) in mpp_path_lookup_by_idx()
434 return node->mpath; in mpp_path_lookup_by_idx()
533 struct mpath_node *node, *new_node; in mesh_path_add() local
557 hlist_for_each_entry(node, bucket, list) { in mesh_path_add()
558 mpath = node->mpath; in mesh_path_add()
667 struct mpath_node *node, *new_node; in mpp_path_add() local
708 hlist_for_each_entry(node, bucket, list) { in mpp_path_add()
709 mpath = node->mpath; in mpp_path_add()
755 struct mpath_node *node; in mesh_plink_broken() local
761 for_each_mesh_entry(tbl, node, i) { in mesh_plink_broken()
762 mpath = node->mpath; in mesh_plink_broken()
781 struct mpath_node *node = container_of(rp, struct mpath_node, rcu); in mesh_path_node_reclaim() local
782 struct ieee80211_sub_if_data *sdata = node->mpath->sdata; in mesh_path_node_reclaim()
784 del_timer_sync(&node->mpath->timer); in mesh_path_node_reclaim()
786 kfree(node->mpath); in mesh_path_node_reclaim()
787 kfree(node); in mesh_path_node_reclaim()
791 static void __mesh_path_del(struct mesh_table *tbl, struct mpath_node *node) in __mesh_path_del() argument
794 mpath = node->mpath; in __mesh_path_del()
799 hlist_del_rcu(&node->list); in __mesh_path_del()
800 call_rcu(&node->rcu, mesh_path_node_reclaim); in __mesh_path_del()
820 struct mpath_node *node; in mesh_path_flush_by_nexthop() local
826 for_each_mesh_entry(tbl, node, i) { in mesh_path_flush_by_nexthop()
827 mpath = node->mpath; in mesh_path_flush_by_nexthop()
830 __mesh_path_del(tbl, node); in mesh_path_flush_by_nexthop()
842 struct mpath_node *node; in table_flush_by_iface() local
846 for_each_mesh_entry(tbl, node, i) { in table_flush_by_iface()
847 mpath = node->mpath; in table_flush_by_iface()
851 __mesh_path_del(tbl, node); in table_flush_by_iface()
890 struct mpath_node *node; in mesh_path_del() local
901 hlist_for_each_entry(node, bucket, list) { in mesh_path_del()
902 mpath = node->mpath; in mesh_path_del()
905 __mesh_path_del(tbl, node); in mesh_path_del()
1040 struct mpath_node *node = hlist_entry(p, struct mpath_node, list); in mesh_path_node_free() local
1041 mpath = node->mpath; in mesh_path_node_free()
1047 kfree(node); in mesh_path_node_free()
1053 struct mpath_node *node, *new_node; in mesh_path_node_copy() local
1060 node = hlist_entry(p, struct mpath_node, list); in mesh_path_node_copy()
1061 mpath = node->mpath; in mesh_path_node_copy()
1120 struct mpath_node *node; in mesh_path_expire() local
1125 for_each_mesh_entry(tbl, node, i) { in mesh_path_expire()
1126 if (node->mpath->sdata != sdata) in mesh_path_expire()
1128 mpath = node->mpath; in mesh_path_expire()