Lines Matching refs:tn
447 struct tipc_net *tn = net_generic(net, tipc_net_id); in nametbl_find_seq() local
451 seq_head = &tn->nametbl->seq_hlist[hash(type)]; in nametbl_find_seq()
464 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_insert_publ() local
477 seq = tipc_nameseq_create(type, &tn->nametbl->seq_hlist[index]); in tipc_nametbl_insert_publ()
527 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_translate() local
535 if (!tipc_in_scope(*destnode, tn->own_addr)) in tipc_nametbl_translate()
572 else if (*destnode == tn->own_addr) { in tipc_nametbl_translate()
659 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_publish() local
661 spin_lock_bh(&tn->nametbl_lock); in tipc_nametbl_publish()
662 if (tn->nametbl->local_publ_count >= TIPC_MAX_PUBLICATIONS) { in tipc_nametbl_publish()
665 spin_unlock_bh(&tn->nametbl_lock); in tipc_nametbl_publish()
670 tn->own_addr, port_ref, key); in tipc_nametbl_publish()
672 tn->nametbl->local_publ_count++; in tipc_nametbl_publish()
677 spin_unlock_bh(&tn->nametbl_lock); in tipc_nametbl_publish()
692 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_withdraw() local
694 spin_lock_bh(&tn->nametbl_lock); in tipc_nametbl_withdraw()
695 publ = tipc_nametbl_remove_publ(net, type, lower, tn->own_addr, in tipc_nametbl_withdraw()
698 tn->nametbl->local_publ_count--; in tipc_nametbl_withdraw()
709 spin_unlock_bh(&tn->nametbl_lock); in tipc_nametbl_withdraw()
723 struct tipc_net *tn = net_generic(s->net, tipc_net_id); in tipc_nametbl_subscribe() local
728 spin_lock_bh(&tn->nametbl_lock); in tipc_nametbl_subscribe()
731 seq = tipc_nameseq_create(type, &tn->nametbl->seq_hlist[index]); in tipc_nametbl_subscribe()
740 spin_unlock_bh(&tn->nametbl_lock); in tipc_nametbl_subscribe()
748 struct tipc_net *tn = net_generic(s->net, tipc_net_id); in tipc_nametbl_unsubscribe() local
751 spin_lock_bh(&tn->nametbl_lock); in tipc_nametbl_unsubscribe()
765 spin_unlock_bh(&tn->nametbl_lock); in tipc_nametbl_unsubscribe()
770 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_init() local
784 tn->nametbl = tipc_nametbl; in tipc_nametbl_init()
785 spin_lock_init(&tn->nametbl_lock); in tipc_nametbl_init()
820 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_stop() local
821 struct name_table *tipc_nametbl = tn->nametbl; in tipc_nametbl_stop()
826 spin_lock_bh(&tn->nametbl_lock); in tipc_nametbl_stop()
835 spin_unlock_bh(&tn->nametbl_lock); in tipc_nametbl_stop()
942 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nl_seq_list() local
954 seq_head = &tn->nametbl->seq_hlist[i]; in tipc_nl_seq_list()