Home
last modified time | relevance | path

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

123

/linux-5.19.10/net/tipc/
Dcore.c55 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_init_net() local
58 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()
62 tn->capabilities = TIPC_NODE_CAPABILITIES; in tipc_init_net()
63 INIT_WORK(&tn->work, tipc_net_finalize_work); 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()
66 tn->mon_threshold = TIPC_DEF_MON_THRESHOLD; in tipc_init_net()
[all …]
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()
Ddiscover.c84 struct tipc_net *tn = tipc_net(net); in tipc_disc_init_msg() local
89 tipc_msg_init(tn->trial_addr, hdr, LINK_CONFIG, mtyp, in tipc_disc_init_msg()
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()
98 msg_set_peer_net_hash(hdr, tipc_net_hash_mixes(net, tn->random)); in tipc_disc_init_msg()
150 struct tipc_net *tn = tipc_net(net); in tipc_disc_addr_trial_msg() local
151 bool trial = time_before(jiffies, tn->addr_trial_end); in tipc_disc_addr_trial_msg()
159 if (dst != tn->trial_addr) in tipc_disc_addr_trial_msg()
163 tn->trial_addr = sugg_addr; in tipc_disc_addr_trial_msg()
165 tn->addr_trial_end = jiffies + msecs_to_jiffies(1000); in tipc_disc_addr_trial_msg()
[all …]
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()
146 struct tipc_net *tn = container_of(work, struct tipc_net, work); in tipc_net_finalize_work() local
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()
181 if (nla_put_u32(msg->skb, TIPC_NLA_NET_ID, tn->net_id)) 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()
[all …]
Dname_distr.c217 struct tipc_net *tn = tipc_net(net); in tipc_named_node_up() local
222 spin_lock_bh(&tn->nametbl_lock); in tipc_named_node_up()
226 spin_unlock_bh(&tn->nametbl_lock); in tipc_named_node_up()
245 struct tipc_net *tn = tipc_net(net); in tipc_publ_purge() local
251 spin_lock_bh(&tn->nametbl_lock); in tipc_publ_purge()
255 spin_unlock_bh(&tn->nametbl_lock); in tipc_publ_purge()
264 struct tipc_net *tn = tipc_net(net); in tipc_publ_notify() local
270 spin_lock_bh(&tn->nametbl_lock); in tipc_publ_notify()
273 spin_unlock_bh(&tn->nametbl_lock); in tipc_publ_notify()
375 struct tipc_net *tn = tipc_net(net); in tipc_named_rcv() local
[all …]
Dbearer.c64 struct tipc_net *tn = tipc_net(net); in bearer_get() local
66 return rcu_dereference(tn->bearer_list[bearer_id]); in bearer_get()
179 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_bearer_find() local
184 b = rtnl_dereference(tn->bearer_list[i]); in tipc_bearer_find()
198 struct tipc_net *tn = tipc_net(net); in tipc_bearer_get_name() local
204 b = rtnl_dereference(tn->bearer_list[bearer_id]); in tipc_bearer_get_name()
214 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_bearer_add_dest() local
218 b = rcu_dereference(tn->bearer_list[bearer_id]); in tipc_bearer_add_dest()
226 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_bearer_remove_dest() local
230 b = rcu_dereference(tn->bearer_list[bearer_id]); in tipc_bearer_remove_dest()
[all …]
Dnode.c334 struct tipc_net *tn = tipc_net(net); in tipc_node_find() local
339 hlist_for_each_entry_rcu(node, &tn->node_htable[thash], hash) { in tipc_node_find()
356 struct tipc_net *tn = tipc_net(net); in tipc_node_find_by_id() local
361 list_for_each_entry_rcu(n, &tn->node_list, list) { in tipc_node_find_by_id()
474 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_node_create() local
481 spin_lock_bh(&tn->node_list_lock); in tipc_node_create()
505 &tn->node_htable[tipc_hashfn(addr)]); in tipc_node_create()
507 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_create()
530 tn->capabilities = TIPC_NODE_CAPABILITIES; in tipc_node_create()
531 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_create()
[all …]
/linux-5.19.10/fs/jffs2/
Dreadinode.c31 static int check_node_data(struct jffs2_sb_info *c, struct jffs2_tmp_dnode_info *tn) in check_node_data() argument
33 struct jffs2_raw_node_ref *ref = tn->fn->raw; in check_node_data()
40 BUG_ON(tn->csize == 0); in check_node_data()
44 len = tn->csize; in check_node_data()
51 if (adj >= tn->csize) { in check_node_data()
53 ref_offset(ref), tn->csize, ofs); in check_node_data()
62 ref_offset(ref), tn->csize, tn->partial_crc, tn->data_crc, ofs - len, ofs, len); in check_node_data()
69 JFFS2_WARNING("MTD point returned len too short: %zu instead of %u.\n", retlen, tn->csize); in check_node_data()
99 crc = crc32(tn->partial_crc, buffer, len); in check_node_data()
107 if (crc != tn->data_crc) { in check_node_data()
[all …]
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-5.19.10/net/ipv4/
Dfib_trie.c173 static struct key_vector *resize(struct trie *t, struct key_vector *tn);
194 #define node_parent(tn) rtnl_dereference(tn_info(tn)->parent) argument
195 #define get_child(tn, i) rtnl_dereference((tn)->tnode[i]) argument
198 #define node_parent_rcu(tn) rcu_dereference_rtnl(tn_info(tn)->parent) argument
199 #define get_child_rcu(tn, i) rcu_dereference_rtnl((tn)->tnode[i]) argument
213 static inline unsigned long child_length(const struct key_vector *tn) in child_length() argument
215 return (1ul << tn->bits) & ~(1ul); in child_length()
379 struct key_vector *tn; in tnode_new() local
397 tn = tnode->kv; in tnode_new()
398 tn->key = (shift < KEYLENGTH) ? (key >> shift) << shift : 0; in tnode_new()
[all …]
/linux-5.19.10/net/netfilter/
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()
94 struct tee_net *tn = net_generic(par->net, tee_net_id); in tee_tg_check() local
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()
134 struct tee_net *tn = net_generic(par->net, tee_net_id); in tee_tg_destroy() local
138 mutex_lock(&tn->lock); in tee_tg_destroy()
[all …]
/linux-5.19.10/drivers/scsi/sym53c8xx_2/
Dsym_nvram.c84 Symbios_target *tn = &nvram->target[target]; in sym_Symbios_setup_target() local
86 if (!(tn->flags & SYMBIOS_QUEUE_TAGS_ENABLED)) in sym_Symbios_setup_target()
88 if (!(tn->flags & SYMBIOS_DISCONNECT_ENABLE)) in sym_Symbios_setup_target()
90 if (!(tn->flags & SYMBIOS_SCAN_AT_BOOT_TIME)) 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()
95 tp->usr_width = (tn->bus_width == 0x8) ? 0 : 1; in sym_Symbios_setup_target()
108 struct Tekram_target *tn = &nvram->target[target]; in sym_Tekram_setup_target() local
110 if (tn->flags & TEKRAM_TAGGED_COMMANDS) { in sym_Tekram_setup_target()
114 if (tn->flags & TEKRAM_DISCONNECT_ENABLE) in sym_Tekram_setup_target()
[all …]
/linux-5.19.10/include/net/
Dact_api.h147 int tc_action_net_init(struct net *net, struct tc_action_net *tn, in tc_action_net_init() argument
152 tn->idrinfo = kmalloc(sizeof(*tn->idrinfo), GFP_KERNEL); in tc_action_net_init()
153 if (!tn->idrinfo) in tc_action_net_init()
155 tn->ops = ops; in tc_action_net_init()
156 tn->idrinfo->net = net; in tc_action_net_init()
157 mutex_init(&tn->idrinfo->lock); in tc_action_net_init()
158 idr_init(&tn->idrinfo->action_idr); in tc_action_net_init()
172 struct tc_action_net *tn = net_generic(net, id); in tc_action_net_exit() local
174 tcf_idrinfo_destroy(tn->ops, tn->idrinfo); in tc_action_net_exit()
175 kfree(tn->idrinfo); in tc_action_net_exit()
[all …]
/linux-5.19.10/net/sched/
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()
324 struct tc_action_net *tn = net_generic(net, ipt_net_id); in tcf_ipt_walker() local
326 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_ipt_walker()
331 struct tc_action_net *tn = net_generic(net, ipt_net_id); in tcf_ipt_search() local
333 return tcf_idr_search(tn, a, index); in tcf_ipt_search()
[all …]
Dact_simple.c92 struct tc_action_net *tn = net_generic(net, simp_net_id); in tcf_simp_init() local
115 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_simp_init()
126 tcf_idr_cleanup(tn, index); in tcf_simp_init()
131 ret = tcf_idr_create(tn, index, est, a, in tcf_simp_init()
134 tcf_idr_cleanup(tn, index); in tcf_simp_init()
206 struct tc_action_net *tn = net_generic(net, simp_net_id); in tcf_simp_walker() local
208 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_simp_walker()
213 struct tc_action_net *tn = net_generic(net, simp_net_id); in tcf_simp_search() local
215 return tcf_idr_search(tn, a, index); in tcf_simp_search()
233 struct tc_action_net *tn = net_generic(net, simp_net_id); in simp_init_net() local
[all …]
Dact_connmark.c102 struct tc_action_net *tn = net_generic(net, connmark_net_id); in tcf_connmark_init() local
124 ret = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_connmark_init()
126 ret = tcf_idr_create(tn, index, est, a, in tcf_connmark_init()
129 tcf_idr_cleanup(tn, index); in tcf_connmark_init()
208 struct tc_action_net *tn = net_generic(net, connmark_net_id); in tcf_connmark_walker() local
210 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_connmark_walker()
215 struct tc_action_net *tn = net_generic(net, connmark_net_id); in tcf_connmark_search() local
217 return tcf_idr_search(tn, a, index); in tcf_connmark_search()
234 struct tc_action_net *tn = net_generic(net, connmark_net_id); in connmark_init_net() local
236 return tc_action_net_init(net, tn, &act_connmark_ops); in connmark_init_net()
Dact_vlan.c120 struct tc_action_net *tn = net_generic(net, vlan_net_id); in tcf_vlan_init() local
148 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_vlan_init()
164 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
172 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
186 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
204 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
212 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
218 ret = tcf_idr_create_from_flags(tn, index, est, a, in tcf_vlan_init()
221 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
341 struct tc_action_net *tn = net_generic(net, vlan_net_id); in tcf_vlan_walker() local
[all …]
Dact_skbmod.c106 struct tc_action_net *tn = net_generic(net, skbmod_net_id); in tcf_skbmod_init() local
154 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbmod_init()
165 tcf_idr_cleanup(tn, index); in tcf_skbmod_init()
170 ret = tcf_idr_create(tn, index, est, a, in tcf_skbmod_init()
173 tcf_idr_cleanup(tn, index); in tcf_skbmod_init()
284 struct tc_action_net *tn = net_generic(net, skbmod_net_id); in tcf_skbmod_walker() local
286 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_skbmod_walker()
291 struct tc_action_net *tn = net_generic(net, skbmod_net_id); in tcf_skbmod_search() local
293 return tcf_idr_search(tn, a, index); in tcf_skbmod_search()
311 struct tc_action_net *tn = net_generic(net, skbmod_net_id); in skbmod_init_net() local
[all …]
Dact_gact.c58 struct tc_action_net *tn = net_generic(net, gact_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()
230 struct tc_action_net *tn = net_generic(net, gact_net_id); in tcf_gact_walker() local
232 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_gact_walker()
237 struct tc_action_net *tn = net_generic(net, gact_net_id); in tcf_gact_search() local
239 return tcf_idr_search(tn, a, index); in tcf_gact_search()
320 struct tc_action_net *tn = net_generic(net, gact_net_id); in gact_init_net() local
322 return tc_action_net_init(net, tn, &act_gact_ops); in gact_init_net()
Dact_nat.c40 struct tc_action_net *tn = net_generic(net, nat_net_id); in tcf_nat_init() local
61 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_nat_init()
63 ret = tcf_idr_create(tn, index, est, a, in tcf_nat_init()
66 tcf_idr_cleanup(tn, index); in tcf_nat_init()
297 struct tc_action_net *tn = net_generic(net, nat_net_id); in tcf_nat_walker() local
299 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_nat_walker()
304 struct tc_action_net *tn = net_generic(net, nat_net_id); in tcf_nat_search() local
306 return tcf_idr_search(tn, a, index); in tcf_nat_search()
323 struct tc_action_net *tn = net_generic(net, nat_net_id); in nat_init_net() local
325 return tc_action_net_init(net, tn, &act_nat_ops); in nat_init_net()
Dact_sample.c41 struct tc_action_net *tn = net_generic(net, sample_net_id); in tcf_sample_init() local
64 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_sample_init()
72 ret = tcf_idr_create(tn, index, est, a, in tcf_sample_init()
75 tcf_idr_cleanup(tn, index); in tcf_sample_init()
249 struct tc_action_net *tn = net_generic(net, sample_net_id); in tcf_sample_walker() local
251 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_sample_walker()
256 struct tc_action_net *tn = net_generic(net, sample_net_id); in tcf_sample_search() local
258 return tcf_idr_search(tn, a, index); in tcf_sample_search()
333 struct tc_action_net *tn = net_generic(net, sample_net_id); in sample_init_net() local
335 return tc_action_net_init(net, tn, &act_sample_ops); in sample_init_net()
Dact_ctinfo.c160 struct tc_action_net *tn = net_generic(net, ctinfo_net_id); in tcf_ctinfo_init() local
212 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_ctinfo_init()
214 ret = tcf_idr_create(tn, index, est, a, in tcf_ctinfo_init()
217 tcf_idr_cleanup(tn, index); in tcf_ctinfo_init()
350 struct tc_action_net *tn = net_generic(net, ctinfo_net_id); in tcf_ctinfo_walker() local
352 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_ctinfo_walker()
357 struct tc_action_net *tn = net_generic(net, ctinfo_net_id); in tcf_ctinfo_search() local
359 return tcf_idr_search(tn, a, index); in tcf_ctinfo_search()
387 struct tc_action_net *tn = net_generic(net, ctinfo_net_id); in ctinfo_init_net() local
389 return tc_action_net_init(net, tn, &act_ctinfo_ops); in ctinfo_init_net()
Dact_mirred.c97 struct tc_action_net *tn = net_generic(net, mirred_net_id); in tcf_mirred_init() local
122 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_mirred_init()
139 tcf_idr_cleanup(tn, index); in tcf_mirred_init()
146 tcf_idr_cleanup(tn, index); in tcf_mirred_init()
150 ret = tcf_idr_create_from_flags(tn, index, est, a, in tcf_mirred_init()
153 tcf_idr_cleanup(tn, index); in tcf_mirred_init()
381 struct tc_action_net *tn = net_generic(net, mirred_net_id); in tcf_mirred_walker() local
383 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_mirred_walker()
388 struct tc_action_net *tn = net_generic(net, mirred_net_id); in tcf_mirred_search() local
390 return tcf_idr_search(tn, a, index); in tcf_mirred_search()
[all …]
Dact_bpf.c283 struct tc_action_net *tn = net_generic(net, bpf_net_id); in tcf_bpf_init() local
307 ret = tcf_idr_check_alloc(tn, &index, act, bind); in tcf_bpf_init()
309 ret = tcf_idr_create(tn, index, est, act, in tcf_bpf_init()
312 tcf_idr_cleanup(tn, index); in tcf_bpf_init()
398 struct tc_action_net *tn = net_generic(net, bpf_net_id); in tcf_bpf_walker() local
400 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_bpf_walker()
405 struct tc_action_net *tn = net_generic(net, bpf_net_id); in tcf_bpf_search() local
407 return tcf_idr_search(tn, a, index); in tcf_bpf_search()
425 struct tc_action_net *tn = net_generic(net, bpf_net_id); in bpf_init_net() local
427 return tc_action_net_init(net, tn, &act_bpf_ops); in bpf_init_net()
/linux-5.19.10/fs/cifs/
Dcifs_debug.h110 const char *tn = ""; \
112 tn = tcon->treeName; \
115 __FILE__, tn, ##__VA_ARGS__); \
117 pr_err_ ## ratefunc("VFS: %s " fmt, tn, ##__VA_ARGS__); \
119 pr_debug_ ## ratefunc("%s " fmt, tn, ##__VA_ARGS__); \

123