Home
last modified time | relevance | path

Searched refs:tn (Results 1 – 25 of 65) sorted by relevance

123

/linux/net/tipc/
H A Dcore.c58 tn->net_id = 4711; in tipc_init_net()
59 tn->node_addr = 0; in tipc_init_net()
60 tn->trial_addr = 0; in tipc_init_net()
61 tn->addr_trial_end = 0; in tipc_init_net()
64 memset(tn->node_id, 0, sizeof(tn->node_id)); in tipc_init_net()
65 memset(tn->node_id_string, 0, sizeof(tn->node_id_string)); in tipc_init_net()
68 INIT_LIST_HEAD(&tn->node_list); in tipc_init_net()
69 spin_lock_init(&tn->node_list_lock); in tipc_init_net()
101 tipc_crypto_stop(&tn->crypto_tx); in tipc_init_net()
114 cancel_work_sync(&tn->work); in tipc_exit_net()
[all …]
H A Daddr.c58 struct tipc_net *tn = tipc_net(net); in tipc_set_node_id() local
60 memcpy(tn->node_id, id, NODE_ID_LEN); in tipc_set_node_id()
61 tipc_nodeid2string(tn->node_id_string, id); in tipc_set_node_id()
62 tn->trial_addr = hash128to32(id); in tipc_set_node_id()
64 tipc_own_id_string(net), tn->net_id); in tipc_set_node_id()
69 struct tipc_net *tn = tipc_net(net); in tipc_set_node_addr() local
72 tn->node_addr = addr; in tipc_set_node_addr()
77 tn->trial_addr = addr; in tipc_set_node_addr()
78 tn->addr_trial_end = jiffies; in tipc_set_node_addr()
H A Ddiscover.c84 struct tipc_net *tn = tipc_net(net); in tipc_disc_init_msg() local
93 msg_set_node_sig(hdr, tn->random); in tipc_disc_init_msg()
96 msg_set_bc_netid(hdr, tn->net_id); in tipc_disc_init_msg()
150 struct tipc_net *tn = tipc_net(net); in tipc_disc_addr_trial_msg() local
159 if (dst != tn->trial_addr) in tipc_disc_addr_trial_msg()
163 tn->trial_addr = sugg_addr; in tipc_disc_addr_trial_msg()
171 schedule_work(&tn->work); in tipc_disc_addr_trial_msg()
196 struct tipc_net *tn = tipc_net(net); in tipc_disc_rcv() local
234 if (net_id != tn->net_id) in tipc_disc_rcv()
314 schedule_work(&tn->work); in tipc_disc_timeout()
[all …]
H A Dnet.c128 struct tipc_net *tn = tipc_net(net); in tipc_net_finalize() local
135 if (cmpxchg(&tn->node_addr, 0, addr)) in tipc_net_finalize()
148 tipc_net_finalize(tipc_link_net(tn->bcl), tn->trial_addr); in tipc_net_finalize_work()
166 struct tipc_net *tn = net_generic(net, tipc_net_id); in __tipc_nl_add_net() local
167 u64 *w0 = (u64 *)&tn->node_id[0]; in __tipc_nl_add_net()
168 u64 *w1 = (u64 *)&tn->node_id[8]; in __tipc_nl_add_net()
229 struct tipc_net *tn = tipc_net(net); in __tipc_nl_net_set() local
253 tn->net_id = val; in __tipc_nl_net_set()
262 tn->legacy_addr_format = true; in __tipc_nl_net_set()
293 struct tipc_net *tn = tipc_net(net); in __tipc_nl_addr_legacy_get() local
[all …]
H A Dname_distr.c209 struct tipc_net *tn = tipc_net(net); in tipc_named_node_up() local
214 spin_lock_bh(&tn->nametbl_lock); in tipc_named_node_up()
218 spin_unlock_bh(&tn->nametbl_lock); in tipc_named_node_up()
243 spin_lock_bh(&tn->nametbl_lock); in tipc_publ_purge()
247 spin_unlock_bh(&tn->nametbl_lock); in tipc_publ_purge()
262 spin_lock_bh(&tn->nametbl_lock); in tipc_publ_notify()
265 spin_unlock_bh(&tn->nametbl_lock); in tipc_publ_notify()
373 spin_lock_bh(&tn->nametbl_lock); in tipc_named_rcv()
385 spin_unlock_bh(&tn->nametbl_lock); in tipc_named_rcv()
403 spin_lock_bh(&tn->nametbl_lock); in tipc_named_reinit()
[all …]
H A Dnode.c332 struct tipc_net *tn = tipc_net(net); in tipc_node_find() local
354 struct tipc_net *tn = tipc_net(net); in tipc_node_find_by_id() local
479 spin_lock_bh(&tn->node_list_lock); in tipc_node_create()
609 spin_unlock_bh(&tn->node_list_lock); in tipc_node_create()
647 struct tipc_net *tn = tipc_net(net); in tipc_node_stop() local
650 spin_lock_bh(&tn->node_list_lock); in tipc_node_stop()
1162 if (tn->trial_addr == addr) in tipc_node_try_addr()
2281 spin_lock_bh(&tn->node_list_lock); in tipc_nl_peer_rm()
3140 struct tipc_net *tn; in tipc_node_pre_cleanup_net() local
3147 tn = tipc_net(tmp); in tipc_node_pre_cleanup_net()
[all …]
H A Dbearer.c64 struct tipc_net *tn = tipc_net(net); in bearer_get() local
183 struct tipc_net *tn = tipc_net(net); in tipc_bearer_find() local
202 struct tipc_net *tn = tipc_net(net); in tipc_bearer_get_name() local
252 struct tipc_net *tn = tipc_net(net); in tipc_enable_bearer() local
409 struct tipc_net *tn = tipc_net(net); in bearer_disable() local
619 struct tipc_net *tn = tipc_net(net); in tipc_bearer_bc_xmit() local
621 int net_id = tn->net_id; in tipc_bearer_bc_xmit()
758 tn->bearer_list[i] = NULL; in tipc_bearer_stop()
807 tn->loopback_pt.dev = dev; in tipc_attach_loopback()
810 dev_add_pack(&tn->loopback_pt); in tipc_attach_loopback()
[all …]
H A Dname_table.c769 spin_lock_bh(&tn->nametbl_lock); in tipc_nametbl_publish()
783 spin_unlock_bh(&tn->nametbl_lock); in tipc_nametbl_publish()
807 spin_lock_bh(&tn->nametbl_lock); in tipc_nametbl_withdraw()
817 spin_unlock_bh(&tn->nametbl_lock); in tipc_nametbl_withdraw()
837 spin_lock_bh(&tn->nametbl_lock); in tipc_nametbl_subscribe()
850 spin_unlock_bh(&tn->nametbl_lock); in tipc_nametbl_subscribe()
866 spin_lock_bh(&tn->nametbl_lock); in tipc_nametbl_unsubscribe()
882 spin_unlock_bh(&tn->nametbl_lock); in tipc_nametbl_unsubscribe()
901 tn->nametbl = nt; in tipc_nametbl_init()
902 spin_lock_init(&tn->nametbl_lock); in tipc_nametbl_init()
[all …]
H A Daddr.h98 struct tipc_net *tn = tipc_net(net); in tipc_own_id() local
100 if (!strlen(tn->node_id_string)) in tipc_own_id()
102 return tn->node_id; in tipc_own_id()
/linux/fs/jffs2/
H A Dreadinode.c44 len = tn->csize; in check_node_data()
62 ref_offset(ref), tn->csize, tn->partial_crc, tn->data_crc, ofs - len, ofs, len); in check_node_data()
161 tn->fn->ofs, tn->fn->ofs + tn->fn->size, ref_offset(tn->fn->raw)); in check_tn_node()
195 return tn; in jffs2_lookup_tn()
222 uint32_t fn_end = tn->fn->ofs + tn->fn->size; in jffs2_add_tn_to_tree()
734 if (!tn) { in read_dnode()
833 if (!tn->fn) { in read_dnode()
871 while (tn) { in read_dnode()
873 tn, tn->version, tn->fn->ofs, in read_dnode()
874 tn->fn->ofs+tn->fn->size, tn->overlapped); in read_dnode()
[all …]
H A Dnodelist.h354 #define tn_next(tn) rb_entry(rb_next(&(tn)->rb), struct jffs2_tmp_dnode_info, rb) argument
355 #define tn_prev(tn) rb_entry(rb_prev(&(tn)->rb), struct jffs2_tmp_dnode_info, rb) argument
356 #define tn_parent(tn) rb_entry(rb_parent(&(tn)->rb), struct jffs2_tmp_dnode_info, rb) argument
357 #define tn_left(tn) rb_entry((tn)->rb.rb_left, struct jffs2_tmp_dnode_info, rb) argument
358 #define tn_right(tn) rb_entry((tn)->rb.rb_right, struct jffs2_tmp_dnode_info, rb) argument
359 #define tn_erase(tn, list) rb_erase(&tn->rb, list) argument
/linux/net/ipv4/
H A Dfib_trie.c404 return tn; in tnode_new()
517 put_child_root(tp, tn->key, tn); in replace()
547 if (!tn) in inflate()
569 put_child(tn, get_index(inode->key, tn), inode); in inflate()
642 if (!tn) in halve()
719 slen_max = min_t(unsigned char, tn->pos + tn->bits - 1, tn->slen); in update_suffix()
922 tn = node_parent(tn); in node_pull_suffix()
931 tn = node_parent(tn); in node_push_suffix()
1107 tn = resize(t, tn); in trie_rebalance()
1132 if (!tn) in fib_insert_node()
[all …]
/linux/net/netfilter/
H A Dxt_TEE.c65 struct tee_net *tn = net_generic(net, tee_net_id); in tee_netdev_event() local
68 mutex_lock(&tn->lock); in tee_netdev_event()
69 list_for_each_entry(priv, &tn->priv_list, list) { in tee_netdev_event()
87 mutex_unlock(&tn->lock); in tee_netdev_event()
122 mutex_lock(&tn->lock); in tee_tg_check()
123 list_add(&priv->list, &tn->priv_list); in tee_tg_check()
124 mutex_unlock(&tn->lock); in tee_tg_check()
138 mutex_lock(&tn->lock); in tee_tg_destroy()
140 mutex_unlock(&tn->lock); in tee_tg_destroy()
177 INIT_LIST_HEAD(&tn->priv_list); in tee_net_init()
[all …]
H A Dnf_conntrack_proto_tcp.c729 const struct nf_tcp_net *tn; in nf_tcp_handle_invalid() local
763 timeouts = tn->timeouts; in nf_tcp_handle_invalid()
938 const struct nf_tcp_net *tn; in nf_conntrack_tcp_set_closing() local
941 timeouts = tn->timeouts; in nf_conntrack_tcp_set_closing()
1278 timeouts = tn->timeouts; in nf_conntrack_tcp_packet()
1477 timeouts = tn->timeouts; in tcp_timeout_nlattr_to_obj()
1480 timeouts[i] = tn->timeouts[i]; in tcp_timeout_nlattr_to_obj()
1597 tn->tcp_loose = 1; in nf_conntrack_tcp_init_net()
1603 tn->tcp_be_liberal = 0; in nf_conntrack_tcp_init_net()
1612 tn->tcp_max_retrans = 3; in nf_conntrack_tcp_init_net()
[all …]
H A Dnf_conntrack_standalone.c960 #define XASSIGN(XNAME, tn) \ in nf_conntrack_standalone_init_tcp_sysctl() argument
964 XASSIGN(SYN_SENT, tn); in nf_conntrack_standalone_init_tcp_sysctl()
965 XASSIGN(SYN_RECV, tn); in nf_conntrack_standalone_init_tcp_sysctl()
966 XASSIGN(ESTABLISHED, tn); in nf_conntrack_standalone_init_tcp_sysctl()
967 XASSIGN(FIN_WAIT, tn); in nf_conntrack_standalone_init_tcp_sysctl()
968 XASSIGN(CLOSE_WAIT, tn); in nf_conntrack_standalone_init_tcp_sysctl()
969 XASSIGN(LAST_ACK, tn); in nf_conntrack_standalone_init_tcp_sysctl()
970 XASSIGN(TIME_WAIT, tn); in nf_conntrack_standalone_init_tcp_sysctl()
971 XASSIGN(CLOSE, tn); in nf_conntrack_standalone_init_tcp_sysctl()
972 XASSIGN(RETRANS, tn); in nf_conntrack_standalone_init_tcp_sysctl()
[all …]
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_nvram.c84 Symbios_target *tn = &nvram->target[target]; in sym_Symbios_setup_target() local
88 if (!(tn->flags & SYMBIOS_DISCONNECT_ENABLE)) in sym_Symbios_setup_target()
92 if (!(tn->flags & SYMBIOS_SCAN_LUNS)) in sym_Symbios_setup_target()
94 tp->usr_period = (tn->sync_period + 3) / 4; in sym_Symbios_setup_target()
110 if (tn->flags & TEKRAM_TAGGED_COMMANDS) { in sym_Tekram_setup_target()
114 if (tn->flags & TEKRAM_DISCONNECT_ENABLE) in sym_Tekram_setup_target()
117 if (tn->flags & TEKRAM_SYNC_NEGO) in sym_Tekram_setup_target()
166 tn->bus_width, in sym_display_Symbios_nvram()
167 tn->sync_period / 4, in sym_display_Symbios_nvram()
168 tn->timeout); in sym_display_Symbios_nvram()
[all …]
/linux/include/net/
H A Dact_api.h155 tn->idrinfo = kmalloc(sizeof(*tn->idrinfo), GFP_KERNEL); in tc_action_net_init()
156 if (!tn->idrinfo) in tc_action_net_init()
158 tn->ops = ops; in tc_action_net_init()
159 tn->idrinfo->net = net; in tc_action_net_init()
160 mutex_init(&tn->idrinfo->lock); in tc_action_net_init()
161 idr_init(&tn->idrinfo->action_idr); in tc_action_net_init()
175 struct tc_action_net *tn = net_generic(net, id); in tc_action_net_exit() local
177 tcf_idrinfo_destroy(tn->ops, tn->idrinfo); in tc_action_net_exit()
178 kfree(tn->idrinfo); in tc_action_net_exit()
196 void tcf_idr_cleanup(struct tc_action_net *tn, u32 index);
[all …]
/linux/net/sched/
H A Dact_vlan.c122 struct tc_action_net *tn = net_generic(net, act_vlan_ops.net_id); in tcf_vlan_init() local
150 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_vlan_init()
166 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
174 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
188 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
206 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
214 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
220 ret = tcf_idr_create_from_flags(tn, index, est, a, in tcf_vlan_init()
223 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
435 struct tc_action_net *tn = net_generic(net, act_vlan_ops.net_id); in vlan_init_net() local
[all …]
H A Dact_simple.c93 struct tc_action_net *tn = net_generic(net, act_simp_ops.net_id); in tcf_simp_init() local
116 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_simp_init()
127 tcf_idr_cleanup(tn, index); in tcf_simp_init()
132 ret = tcf_idr_create(tn, index, est, a, in tcf_simp_init()
135 tcf_idr_cleanup(tn, index); in tcf_simp_init()
216 struct tc_action_net *tn = net_generic(net, act_simp_ops.net_id); in simp_init_net() local
218 return tc_action_net_init(net, tn, &act_simp_ops); in simp_init_net()
H A Dact_skbmod.c107 struct tc_action_net *tn = net_generic(net, act_skbmod_ops.net_id); in tcf_skbmod_init() local
155 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbmod_init()
166 tcf_idr_cleanup(tn, index); in tcf_skbmod_init()
171 ret = tcf_idr_create(tn, index, est, a, in tcf_skbmod_init()
174 tcf_idr_cleanup(tn, index); in tcf_skbmod_init()
294 struct tc_action_net *tn = net_generic(net, act_skbmod_ops.net_id); in skbmod_init_net() local
296 return tc_action_net_init(net, tn, &act_skbmod_ops); in skbmod_init_net()
H A Dact_connmark.c103 struct tc_action_net *tn = net_generic(net, act_connmark_ops.net_id); in tcf_connmark_init() local
130 ret = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_connmark_init()
132 ret = tcf_idr_create_from_flags(tn, index, est, a, in tcf_connmark_init()
135 tcf_idr_cleanup(tn, index); in tcf_connmark_init()
249 struct tc_action_net *tn = net_generic(net, act_connmark_ops.net_id); in connmark_init_net() local
251 return tc_action_net_init(net, tn, &act_connmark_ops); in connmark_init_net()
H A Dact_gact.c58 struct tc_action_net *tn = net_generic(net, act_gact_ops.net_id); in tcf_gact_init() local
100 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_gact_init()
102 ret = tcf_idr_create_from_flags(tn, index, est, a, in tcf_gact_init()
105 tcf_idr_cleanup(tn, index); in tcf_gact_init()
303 struct tc_action_net *tn = net_generic(net, act_gact_ops.net_id); in gact_init_net() local
305 return tc_action_net_init(net, tn, &act_gact_ops); in gact_init_net()
/linux/fs/smb/client/
H A Dcifs_debug.h110 const char *tn = ""; \
112 tn = tcon->tree_name; \
115 __FILE__, tn, ##__VA_ARGS__); \
117 pr_err_ ## ratefunc("VFS: %s " fmt, tn, ##__VA_ARGS__); \
119 pr_debug_ ## ratefunc("%s " fmt, tn, ##__VA_ARGS__); \
/linux/arch/powerpc/sysdev/
H A Dmpic_msgr.c149 struct device_node *tn; in mpic_msgr_block_number() local
153 tn = of_find_node_by_path(prop->value); in mpic_msgr_block_number()
154 if (node == tn) { in mpic_msgr_block_number()
155 of_node_put(tn); in mpic_msgr_block_number()
158 of_node_put(tn); in mpic_msgr_block_number()
/linux/arch/arm/vfp/
H A Dvfpdouble.c211 int tn, tm = 0; in vfp_propagate_nan() local
213 tn = vfp_double_type(vdn); in vfp_propagate_nan()
229 if (tn == VFP_SNAN || (tm != VFP_SNAN && tn == VFP_QNAN)) in vfp_propagate_nan()
688 int tn, tm; in vfp_double_fadd_nonnumber() local
690 tn = vfp_double_type(vdn); in vfp_double_fadd_nonnumber()
693 if (tn & tm & VFP_INFINITY) { in vfp_double_fadd_nonnumber()
1011 int tm, tn; in vfp_double_fdiv() local
1018 tn = vfp_double_type(&vdn); in vfp_double_fdiv()
1024 if (tn & VFP_NAN) in vfp_double_fdiv()
1043 if (tn & VFP_INFINITY) in vfp_double_fdiv()
[all …]

123