Lines Matching refs:tn
54 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_init_net() local
57 tn->net_id = 4711; in tipc_init_net()
58 tn->node_addr = 0; in tipc_init_net()
59 tn->trial_addr = 0; in tipc_init_net()
60 tn->addr_trial_end = 0; in tipc_init_net()
61 tn->capabilities = TIPC_NODE_CAPABILITIES; in tipc_init_net()
62 INIT_WORK(&tn->final_work.work, tipc_net_finalize_work); in tipc_init_net()
63 memset(tn->node_id, 0, sizeof(tn->node_id)); in tipc_init_net()
64 memset(tn->node_id_string, 0, sizeof(tn->node_id_string)); in tipc_init_net()
65 tn->mon_threshold = TIPC_DEF_MON_THRESHOLD; in tipc_init_net()
66 get_random_bytes(&tn->random, sizeof(int)); in tipc_init_net()
67 INIT_LIST_HEAD(&tn->node_list); in tipc_init_net()
68 spin_lock_init(&tn->node_list_lock); in tipc_init_net()
78 INIT_LIST_HEAD(&tn->dist_queue); in tipc_init_net()
100 struct tipc_net *tn = tipc_net(net); in tipc_exit_net() local
104 cancel_work_sync(&tn->final_work.work); in tipc_exit_net()
111 while (atomic_read(&tn->wq_count)) in tipc_exit_net()