• Home
  • Raw
  • Download

Lines Matching refs:tn

324 	struct tipc_net *tn = tipc_net(net);  in tipc_node_find()  local
329 hlist_for_each_entry_rcu(node, &tn->node_htable[thash], hash) { in tipc_node_find()
346 struct tipc_net *tn = tipc_net(net); in tipc_node_find_by_id() local
351 list_for_each_entry_rcu(n, &tn->node_list, list) { in tipc_node_find_by_id()
458 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_node_create() local
465 spin_lock_bh(&tn->node_list_lock); in tipc_node_create()
489 &tn->node_htable[tipc_hashfn(addr)]); in tipc_node_create()
491 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_create()
514 tn->capabilities = TIPC_NODE_CAPABILITIES; in tipc_node_create()
515 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_create()
516 tn->capabilities &= temp_node->capabilities; in tipc_node_create()
520 (tn->capabilities & TIPC_BCAST_RCAST)); in tipc_node_create()
581 hlist_add_head_rcu(&n->hash, &tn->node_htable[tipc_hashfn(addr)]); in tipc_node_create()
582 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_create()
588 tn->capabilities = TIPC_NODE_CAPABILITIES; in tipc_node_create()
589 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_create()
590 tn->capabilities &= temp_node->capabilities; in tipc_node_create()
592 tipc_bcast_toggle_rcast(net, (tn->capabilities & TIPC_BCAST_RCAST)); in tipc_node_create()
595 spin_unlock_bh(&tn->node_list_lock); in tipc_node_create()
633 struct tipc_net *tn = tipc_net(net); in tipc_node_stop() local
636 spin_lock_bh(&tn->node_list_lock); in tipc_node_stop()
637 list_for_each_entry_safe(node, t_node, &tn->node_list, list) in tipc_node_stop()
639 spin_unlock_bh(&tn->node_list_lock); in tipc_node_stop()
753 struct tipc_net *tn = tipc_net(peer->net); in tipc_node_cleanup() local
757 if (!spin_trylock_bh(&tn->node_list_lock)) in tipc_node_cleanup()
770 spin_unlock_bh(&tn->node_list_lock); in tipc_node_cleanup()
775 tn->capabilities = TIPC_NODE_CAPABILITIES; in tipc_node_cleanup()
776 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_cleanup()
777 tn->capabilities &= temp_node->capabilities; in tipc_node_cleanup()
780 (tn->capabilities & TIPC_BCAST_RCAST)); in tipc_node_cleanup()
781 spin_unlock_bh(&tn->node_list_lock); in tipc_node_cleanup()
1110 struct tipc_net *tn = tipc_net(net); in tipc_node_try_addr() local
1137 if (tn->trial_addr == addr) in tipc_node_try_addr()
1290 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_node_delete_links() local
1294 list_for_each_entry_rcu(n, &tn->node_list, list) { in tipc_node_delete_links()
2178 struct tipc_net *tn = tipc_net(net); in tipc_node_apply_property() local
2188 list_for_each_entry_rcu(n, &tn->node_list, list) { in tipc_node_apply_property()
2212 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nl_peer_rm() local
2236 spin_lock_bh(&tn->node_list_lock); in tipc_nl_peer_rm()
2239 spin_unlock_bh(&tn->node_list_lock); in tipc_nl_peer_rm()
2256 tn->capabilities = TIPC_NODE_CAPABILITIES; in tipc_nl_peer_rm()
2257 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_nl_peer_rm()
2258 tn->capabilities &= temp_node->capabilities; in tipc_nl_peer_rm()
2260 tipc_bcast_toggle_rcast(net, (tn->capabilities & TIPC_BCAST_RCAST)); in tipc_nl_peer_rm()
2264 spin_unlock_bh(&tn->node_list_lock); in tipc_nl_peer_rm()
2273 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nl_node_dump() local
2304 list_for_each_entry_rcu(node, &tn->node_list, list) { in tipc_nl_node_dump()
2344 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_node_find_by_name() local
2352 list_for_each_entry_rcu(n, &tn->node_list, list) { in tipc_node_find_by_name()
2526 struct tipc_net *tn = tipc_net(net); in tipc_nl_node_reset_link_stats() local
2551 list_for_each_entry_rcu(node, &tn->node_list, list) { in tipc_nl_node_reset_link_stats()
2621 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nl_node_dump_link() local
2668 list_for_each_entry_continue_rcu(node, &tn->node_list, in tipc_nl_node_dump_link()
2680 err = tipc_nl_add_bc_link(net, &msg, tn->bcl); in tipc_nl_node_dump_link()
2684 list_for_each_entry_rcu(node, &tn->node_list, list) { in tipc_nl_node_dump_link()
3011 struct tipc_net *tn = tipc_net(net); in __tipc_nl_node_flush_key() local
3014 tipc_crypto_key_flush(tn->crypto_tx); in __tipc_nl_node_flush_key()
3016 list_for_each_entry_rcu(n, &tn->node_list, list) in __tipc_nl_node_flush_key()
3095 struct tipc_net *tn; in tipc_node_pre_cleanup_net() local
3102 tn = tipc_net(tmp); in tipc_node_pre_cleanup_net()
3103 if (!tn) in tipc_node_pre_cleanup_net()
3105 spin_lock_bh(&tn->node_list_lock); in tipc_node_pre_cleanup_net()
3106 list_for_each_entry_rcu(n, &tn->node_list, list) { in tipc_node_pre_cleanup_net()
3117 spin_unlock_bh(&tn->node_list_lock); in tipc_node_pre_cleanup_net()