Lines Matching refs:nt
260 struct name_table *nt = tipc_name_table(net); in tipc_service_create() local
275 hd = &nt->services[hash(ua->sr.type)]; in tipc_service_create()
464 struct name_table *nt = tipc_name_table(net); in tipc_service_find() local
468 service_head = &nt->services[hash(ua->sr.type)]; in tipc_service_find()
763 struct name_table *nt = tipc_name_table(net); in tipc_nametbl_publish() local
771 if (nt->local_publ_count >= TIPC_MAX_PUBL) { in tipc_nametbl_publish()
778 nt->local_publ_count++; in tipc_nametbl_publish()
781 rc_dests = nt->rc_dests; in tipc_nametbl_publish()
801 struct name_table *nt = tipc_name_table(net); in tipc_nametbl_withdraw() local
811 nt->local_publ_count--; in tipc_nametbl_withdraw()
816 rc_dests = nt->rc_dests; in tipc_nametbl_withdraw()
888 struct name_table *nt; in tipc_nametbl_init() local
891 nt = kzalloc(sizeof(*nt), GFP_KERNEL); in tipc_nametbl_init()
892 if (!nt) in tipc_nametbl_init()
896 INIT_HLIST_HEAD(&nt->services[i]); in tipc_nametbl_init()
898 INIT_LIST_HEAD(&nt->node_scope); in tipc_nametbl_init()
899 INIT_LIST_HEAD(&nt->cluster_scope); in tipc_nametbl_init()
900 rwlock_init(&nt->cluster_scope_lock); in tipc_nametbl_init()
901 tn->nametbl = nt; in tipc_nametbl_init()
932 struct name_table *nt = tipc_name_table(net); in tipc_nametbl_stop() local
943 if (hlist_empty(&nt->services[i])) in tipc_nametbl_stop()
945 service_head = &nt->services[i]; in tipc_nametbl_stop()
953 kfree(nt); in tipc_nametbl_stop()