Lines Matching refs:tn
334 struct tipc_net *tn = tipc_net(net); in tipc_node_find() local
339 hlist_for_each_entry_rcu(node, &tn->node_htable[thash], hash) { in tipc_node_find()
356 struct tipc_net *tn = tipc_net(net); in tipc_node_find_by_id() local
361 list_for_each_entry_rcu(n, &tn->node_list, list) { in tipc_node_find_by_id()
474 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_node_create() local
481 spin_lock_bh(&tn->node_list_lock); in tipc_node_create()
505 &tn->node_htable[tipc_hashfn(addr)]); in tipc_node_create()
507 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_create()
530 tn->capabilities = TIPC_NODE_CAPABILITIES; in tipc_node_create()
531 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_create()
532 tn->capabilities &= temp_node->capabilities; in tipc_node_create()
536 (tn->capabilities & TIPC_BCAST_RCAST)); in tipc_node_create()
597 hlist_add_head_rcu(&n->hash, &tn->node_htable[tipc_hashfn(addr)]); in tipc_node_create()
598 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_create()
604 tn->capabilities = TIPC_NODE_CAPABILITIES; in tipc_node_create()
605 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_create()
606 tn->capabilities &= temp_node->capabilities; in tipc_node_create()
608 tipc_bcast_toggle_rcast(net, (tn->capabilities & TIPC_BCAST_RCAST)); in tipc_node_create()
611 spin_unlock_bh(&tn->node_list_lock); in tipc_node_create()
649 struct tipc_net *tn = tipc_net(net); in tipc_node_stop() local
652 spin_lock_bh(&tn->node_list_lock); in tipc_node_stop()
653 list_for_each_entry_safe(node, t_node, &tn->node_list, list) in tipc_node_stop()
655 spin_unlock_bh(&tn->node_list_lock); in tipc_node_stop()
769 struct tipc_net *tn = tipc_net(peer->net); in tipc_node_cleanup() local
773 if (!spin_trylock_bh(&tn->node_list_lock)) in tipc_node_cleanup()
786 spin_unlock_bh(&tn->node_list_lock); in tipc_node_cleanup()
791 tn->capabilities = TIPC_NODE_CAPABILITIES; in tipc_node_cleanup()
792 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_cleanup()
793 tn->capabilities &= temp_node->capabilities; in tipc_node_cleanup()
796 (tn->capabilities & TIPC_BCAST_RCAST)); in tipc_node_cleanup()
797 spin_unlock_bh(&tn->node_list_lock); in tipc_node_cleanup()
1137 struct tipc_net *tn = tipc_net(net); in tipc_node_try_addr() local
1164 if (tn->trial_addr == addr) in tipc_node_try_addr()
1317 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_node_delete_links() local
1321 list_for_each_entry_rcu(n, &tn->node_list, list) { in tipc_node_delete_links()
2209 struct tipc_net *tn = tipc_net(net); in tipc_node_apply_property() local
2219 list_for_each_entry_rcu(n, &tn->node_list, list) { in tipc_node_apply_property()
2243 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nl_peer_rm() local
2282 spin_lock_bh(&tn->node_list_lock); in tipc_nl_peer_rm()
2285 spin_unlock_bh(&tn->node_list_lock); in tipc_nl_peer_rm()
2302 tn->capabilities = TIPC_NODE_CAPABILITIES; in tipc_nl_peer_rm()
2303 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_nl_peer_rm()
2304 tn->capabilities &= temp_node->capabilities; in tipc_nl_peer_rm()
2306 tipc_bcast_toggle_rcast(net, (tn->capabilities & TIPC_BCAST_RCAST)); in tipc_nl_peer_rm()
2310 spin_unlock_bh(&tn->node_list_lock); in tipc_nl_peer_rm()
2319 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nl_node_dump() local
2350 list_for_each_entry_rcu(node, &tn->node_list, list) { in tipc_nl_node_dump()
2390 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_node_find_by_name() local
2398 list_for_each_entry_rcu(n, &tn->node_list, list) { in tipc_node_find_by_name()
2572 struct tipc_net *tn = tipc_net(net); in tipc_nl_node_reset_link_stats() local
2597 list_for_each_entry_rcu(node, &tn->node_list, list) { in tipc_nl_node_reset_link_stats()
2667 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nl_node_dump_link() local
2714 list_for_each_entry_continue_rcu(node, &tn->node_list, in tipc_nl_node_dump_link()
2726 err = tipc_nl_add_bc_link(net, &msg, tn->bcl); in tipc_nl_node_dump_link()
2730 list_for_each_entry_rcu(node, &tn->node_list, list) { in tipc_nl_node_dump_link()
3057 struct tipc_net *tn = tipc_net(net); in __tipc_nl_node_flush_key() local
3060 tipc_crypto_key_flush(tn->crypto_tx); in __tipc_nl_node_flush_key()
3062 list_for_each_entry_rcu(n, &tn->node_list, list) in __tipc_nl_node_flush_key()
3141 struct tipc_net *tn; in tipc_node_pre_cleanup_net() local
3148 tn = tipc_net(tmp); in tipc_node_pre_cleanup_net()
3149 if (!tn) in tipc_node_pre_cleanup_net()
3151 spin_lock_bh(&tn->node_list_lock); in tipc_node_pre_cleanup_net()
3152 list_for_each_entry_rcu(n, &tn->node_list, list) { in tipc_node_pre_cleanup_net()
3163 spin_unlock_bh(&tn->node_list_lock); in tipc_node_pre_cleanup_net()