Home
last modified time | relevance | path

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

1234

/openbmc/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.c334 struct tipc_net *tn = tipc_net(net); in tipc_node_find() local
356 struct tipc_net *tn = tipc_net(net); in tipc_node_find_by_id() local
481 spin_lock_bh(&tn->node_list_lock); in tipc_node_create()
611 spin_unlock_bh(&tn->node_list_lock); in tipc_node_create()
649 struct tipc_net *tn = tipc_net(net); in tipc_node_stop() local
652 spin_lock_bh(&tn->node_list_lock); in tipc_node_stop()
1164 if (tn->trial_addr == addr) in tipc_node_try_addr()
2283 spin_lock_bh(&tn->node_list_lock); in tipc_nl_peer_rm()
3142 struct tipc_net *tn; in tipc_node_pre_cleanup_net() local
3149 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 …]
/openbmc/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
/openbmc/linux/net/ipv4/
H A Dfib_trie.c403 return tn; in tnode_new()
516 put_child_root(tp, tn->key, tn); in replace()
546 if (!tn) in inflate()
568 put_child(tn, get_index(inode->key, tn), inode); in inflate()
641 if (!tn) in halve()
718 slen_max = min_t(unsigned char, tn->pos + tn->bits - 1, tn->slen); in update_suffix()
921 tn = node_parent(tn); in node_pull_suffix()
930 tn = node_parent(tn); in node_push_suffix()
1106 tn = resize(t, tn); in trie_rebalance()
1131 if (!tn) in fib_insert_node()
[all …]
/openbmc/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()
937 const struct nf_tcp_net *tn; in nf_conntrack_tcp_set_closing() local
940 timeouts = tn->timeouts; in nf_conntrack_tcp_set_closing()
1277 timeouts = tn->timeouts; in nf_conntrack_tcp_packet()
1476 timeouts = tn->timeouts; in tcp_timeout_nlattr_to_obj()
1479 timeouts[i] = tn->timeouts[i]; in tcp_timeout_nlattr_to_obj()
1596 tn->tcp_loose = 1; in nf_conntrack_tcp_init_net()
1602 tn->tcp_be_liberal = 0; in nf_conntrack_tcp_init_net()
1611 tn->tcp_max_retrans = 3; in nf_conntrack_tcp_init_net()
[all …]
H A Dnf_conntrack_standalone.c964 #define XASSIGN(XNAME, tn) \ in nf_conntrack_standalone_init_tcp_sysctl() argument
968 XASSIGN(SYN_SENT, tn); in nf_conntrack_standalone_init_tcp_sysctl()
969 XASSIGN(SYN_RECV, tn); in nf_conntrack_standalone_init_tcp_sysctl()
970 XASSIGN(ESTABLISHED, tn); in nf_conntrack_standalone_init_tcp_sysctl()
971 XASSIGN(FIN_WAIT, tn); in nf_conntrack_standalone_init_tcp_sysctl()
972 XASSIGN(CLOSE_WAIT, tn); in nf_conntrack_standalone_init_tcp_sysctl()
973 XASSIGN(LAST_ACK, tn); in nf_conntrack_standalone_init_tcp_sysctl()
974 XASSIGN(TIME_WAIT, tn); in nf_conntrack_standalone_init_tcp_sysctl()
975 XASSIGN(CLOSE, tn); in nf_conntrack_standalone_init_tcp_sysctl()
976 XASSIGN(RETRANS, tn); in nf_conntrack_standalone_init_tcp_sysctl()
[all …]
/openbmc/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 …]
/openbmc/linux/include/net/
H A Dact_api.h154 tn->idrinfo = kmalloc(sizeof(*tn->idrinfo), GFP_KERNEL); in tc_action_net_init()
155 if (!tn->idrinfo) in tc_action_net_init()
157 tn->ops = ops; in tc_action_net_init()
158 tn->idrinfo->net = net; in tc_action_net_init()
159 mutex_init(&tn->idrinfo->lock); in tc_action_net_init()
160 idr_init(&tn->idrinfo->action_idr); in tc_action_net_init()
174 struct tc_action_net *tn = net_generic(net, id); in tc_action_net_exit() local
176 tcf_idrinfo_destroy(tn->ops, tn->idrinfo); in tc_action_net_exit()
177 kfree(tn->idrinfo); in tc_action_net_exit()
195 void tcf_idr_cleanup(struct tc_action_net *tn, u32 index);
[all …]
/openbmc/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__); \
/openbmc/linux/net/sched/
H A Dact_vlan.c121 struct tc_action_net *tn = net_generic(net, act_vlan_ops.net_id); in tcf_vlan_init() local
149 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_vlan_init()
165 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
173 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
187 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
205 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
213 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
219 ret = tcf_idr_create_from_flags(tn, index, est, a, in tcf_vlan_init()
222 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
433 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()
215 struct tc_action_net *tn = net_generic(net, act_simp_ops.net_id); in simp_init_net() local
217 return tc_action_net_init(net, tn, &act_simp_ops); in simp_init_net()
H A Dact_ipt.c100 struct tc_action_net *tn = net_generic(net, id); in __tcf_ipt_init() local
122 err = tcf_idr_check_alloc(tn, &index, a, bind); in __tcf_ipt_init()
133 tcf_idr_cleanup(tn, index); in __tcf_ipt_init()
142 tcf_idr_cleanup(tn, index); in __tcf_ipt_init()
147 ret = tcf_idr_create(tn, index, est, a, ops, bind, in __tcf_ipt_init()
150 tcf_idr_cleanup(tn, index); in __tcf_ipt_init()
387 struct tc_action_net *tn = net_generic(net, act_ipt_ops.net_id); in ipt_init_net() local
389 return tc_action_net_init(net, tn, &act_ipt_ops); in ipt_init_net()
417 struct tc_action_net *tn = net_generic(net, act_xt_ops.net_id); in xt_init_net() local
419 return tc_action_net_init(net, tn, &act_xt_ops); in xt_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()
293 struct tc_action_net *tn = net_generic(net, act_skbmod_ops.net_id); in skbmod_init_net() local
295 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()
248 struct tc_action_net *tn = net_generic(net, act_connmark_ops.net_id); in connmark_init_net() local
250 return tc_action_net_init(net, tn, &act_connmark_ops); in connmark_init_net()
/openbmc/u-boot/fs/yaffs2/
H A Dyaffs_guts.c708 if (tn) { in yaffs_get_tnode()
715 return tn; in yaffs_get_tnode()
831 tn = tn->internal[(chunk_id >> in yaffs_find_tnode_0()
839 return tn; in yaffs_find_tnode_0()
934 tn = tn->internal[x]; in yaffs_add_find_tnode_0()
1003 if (!tn) in yaffs_find_chunk_in_file()
1030 if (!tn) in yaffs_find_del_file_chunk()
1081 if (!tn) in yaffs_put_chunk_in_file()
1210 if (!tn) in yaffs_soft_del_worker()
1714 if (!tn) in yaffs_prune_worker()
[all …]
H A Dyaffs_allocator.c162 struct yaffs_tnode *tn = NULL; in yaffs_alloc_raw_tnode() local
174 tn = allocator->free_tnodes; in yaffs_alloc_raw_tnode()
179 return tn; in yaffs_alloc_raw_tnode()
183 void yaffs_free_raw_tnode(struct yaffs_dev *dev, struct yaffs_tnode *tn) in yaffs_free_raw_tnode() argument
192 if (tn) { in yaffs_free_raw_tnode()
193 tn->internal[0] = allocator->free_tnodes; in yaffs_free_raw_tnode()
194 allocator->free_tnodes = tn; in yaffs_free_raw_tnode()
/openbmc/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()

1234