/kernel/linux/linux-5.10/net/tipc/ |
D | core.c | 55 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 …]
|
D | addr.c | 57 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 = tmp[0] ^ tmp[1] ^ tmp[2] ^ tmp[3]; 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()
|
D | discover.c | 83 struct tipc_net *tn = tipc_net(net); in tipc_disc_init_msg() local 88 tipc_msg_init(tn->trial_addr, hdr, LINK_CONFIG, mtyp, in tipc_disc_init_msg() 92 msg_set_node_sig(hdr, tn->random); in tipc_disc_init_msg() 95 msg_set_bc_netid(hdr, tn->net_id); in tipc_disc_init_msg() 97 msg_set_peer_net_hash(hdr, tipc_net_hash_mixes(net, tn->random)); in tipc_disc_init_msg() 149 struct tipc_net *tn = tipc_net(net); in tipc_disc_addr_trial_msg() local 151 bool trial = time_before(jiffies, tn->addr_trial_end) && !self; in tipc_disc_addr_trial_msg() 158 if (dst != tn->trial_addr) in tipc_disc_addr_trial_msg() 162 tn->trial_addr = sugg_addr; in tipc_disc_addr_trial_msg() 164 tn->addr_trial_end = jiffies + msecs_to_jiffies(1000); in tipc_disc_addr_trial_msg() [all …]
|
D | net.c | 128 struct tipc_net *tn = tipc_net(net); in tipc_net_finalize() local 130 if (cmpxchg(&tn->node_addr, 0, addr)) in tipc_net_finalize() 142 struct tipc_net *tn = container_of(work, struct tipc_net, work); in tipc_net_finalize_work() local 144 tipc_net_finalize(tipc_link_net(tn->bcl), tn->trial_addr); in tipc_net_finalize_work() 162 struct tipc_net *tn = net_generic(net, tipc_net_id); in __tipc_nl_add_net() local 163 u64 *w0 = (u64 *)&tn->node_id[0]; in __tipc_nl_add_net() 164 u64 *w1 = (u64 *)&tn->node_id[8]; in __tipc_nl_add_net() 177 if (nla_put_u32(msg->skb, TIPC_NLA_NET_ID, tn->net_id)) in __tipc_nl_add_net() 225 struct tipc_net *tn = tipc_net(net); in __tipc_nl_net_set() local 249 tn->net_id = val; in __tipc_nl_net_set() [all …]
|
D | name_distr.c | 201 struct tipc_net *tn = tipc_net(net); in tipc_named_node_up() local 206 spin_lock_bh(&tn->nametbl_lock); in tipc_named_node_up() 210 spin_unlock_bh(&tn->nametbl_lock); in tipc_named_node_up() 226 struct tipc_net *tn = tipc_net(net); in tipc_publ_purge() local 229 spin_lock_bh(&tn->nametbl_lock); in tipc_publ_purge() 234 spin_unlock_bh(&tn->nametbl_lock); in tipc_publ_purge() 252 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_dist_queue_purge() local 255 spin_lock_bh(&tn->nametbl_lock); in tipc_dist_queue_purge() 256 list_for_each_entry_safe(e, tmp, &tn->dist_queue, next) { in tipc_dist_queue_purge() 262 spin_unlock_bh(&tn->nametbl_lock); in tipc_dist_queue_purge() [all …]
|
D | bearer.c | 64 struct tipc_net *tn = tipc_net(net); in bearer_get() local 66 return rcu_dereference(tn->bearer_list[bearer_id]); in bearer_get() 175 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_bearer_find() local 180 b = rtnl_dereference(tn->bearer_list[i]); in tipc_bearer_find() 194 struct tipc_net *tn = tipc_net(net); in tipc_bearer_get_name() local 200 b = rtnl_dereference(tn->bearer_list[bearer_id]); in tipc_bearer_get_name() 210 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_bearer_add_dest() local 214 b = rcu_dereference(tn->bearer_list[bearer_id]); in tipc_bearer_add_dest() 222 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_bearer_remove_dest() local 226 b = rcu_dereference(tn->bearer_list[bearer_id]); in tipc_bearer_remove_dest() [all …]
|
D | node.c | 324 struct tipc_net *tn = tipc_net(net); in tipc_node_find() local 329 hlist_for_each_entry_rcu(node, &tn->node_htable[thash], hash) { in tipc_node_find() 346 struct tipc_net *tn = tipc_net(net); in tipc_node_find_by_id() local 351 list_for_each_entry_rcu(n, &tn->node_list, list) { in tipc_node_find_by_id() 458 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_node_create() local 465 spin_lock_bh(&tn->node_list_lock); in tipc_node_create() 489 &tn->node_htable[tipc_hashfn(addr)]); in tipc_node_create() 491 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_create() 514 tn->capabilities = TIPC_NODE_CAPABILITIES; in tipc_node_create() 515 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_create() [all …]
|
/kernel/linux/linux-5.10/fs/jffs2/ |
D | readinode.c | 31 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 …]
|
D | nodelist.h | 354 #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
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | fib_trie.c | 172 static struct key_vector *resize(struct trie *t, struct key_vector *tn); 193 #define node_parent(tn) rtnl_dereference(tn_info(tn)->parent) argument 194 #define get_child(tn, i) rtnl_dereference((tn)->tnode[i]) argument 197 #define node_parent_rcu(tn) rcu_dereference_rtnl(tn_info(tn)->parent) argument 198 #define get_child_rcu(tn, i) rcu_dereference_rtnl((tn)->tnode[i]) argument 212 static inline unsigned long child_length(const struct key_vector *tn) in child_length() argument 214 return (1ul << tn->bits) & ~(1ul); in child_length() 378 struct key_vector *tn; in tnode_new() local 396 tn = tnode->kv; in tnode_new() 397 tn->key = (shift < KEYLENGTH) ? (key >> shift) << shift : 0; in tnode_new() [all …]
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | xt_TEE.c | 65 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 …]
|
/kernel/linux/linux-5.10/include/net/ |
D | act_api.h | 124 int tc_action_net_init(struct net *net, struct tc_action_net *tn, in tc_action_net_init() argument 129 tn->idrinfo = kmalloc(sizeof(*tn->idrinfo), GFP_KERNEL); in tc_action_net_init() 130 if (!tn->idrinfo) in tc_action_net_init() 132 tn->ops = ops; in tc_action_net_init() 133 tn->idrinfo->net = net; in tc_action_net_init() 134 mutex_init(&tn->idrinfo->lock); in tc_action_net_init() 135 idr_init(&tn->idrinfo->action_idr); in tc_action_net_init() 149 struct tc_action_net *tn = net_generic(net, id); in tc_action_net_exit() local 151 tcf_idrinfo_destroy(tn->ops, tn->idrinfo); in tc_action_net_exit() 152 kfree(tn->idrinfo); in tc_action_net_exit() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/sym53c8xx_2/ |
D | sym_nvram.c | 84 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 …]
|
/kernel/linux/linux-5.10/net/sched/ |
D | act_ipt.c | 100 struct tc_action_net *tn = net_generic(net, id); in __tcf_ipt_init() local 121 err = tcf_idr_check_alloc(tn, &index, a, bind); in __tcf_ipt_init() 132 tcf_idr_cleanup(tn, index); in __tcf_ipt_init() 141 tcf_idr_cleanup(tn, index); in __tcf_ipt_init() 146 ret = tcf_idr_create(tn, index, est, a, ops, bind, in __tcf_ipt_init() 149 tcf_idr_cleanup(tn, index); in __tcf_ipt_init() 323 struct tc_action_net *tn = net_generic(net, ipt_net_id); in tcf_ipt_walker() local 325 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_ipt_walker() 330 struct tc_action_net *tn = net_generic(net, ipt_net_id); in tcf_ipt_search() local 332 return tcf_idr_search(tn, a, index); in tcf_ipt_search() [all …]
|
D | act_vlan.c | 121 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 …]
|
D | act_simple.c | 92 struct tc_action_net *tn = net_generic(net, simp_net_id); in tcf_simp_init() local 114 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_simp_init() 125 tcf_idr_cleanup(tn, index); in tcf_simp_init() 130 ret = tcf_idr_create(tn, index, est, a, in tcf_simp_init() 133 tcf_idr_cleanup(tn, index); in tcf_simp_init() 205 struct tc_action_net *tn = net_generic(net, simp_net_id); in tcf_simp_walker() local 207 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_simp_walker() 212 struct tc_action_net *tn = net_generic(net, simp_net_id); in tcf_simp_search() local 214 return tcf_idr_search(tn, a, index); in tcf_simp_search() 232 struct tc_action_net *tn = net_generic(net, simp_net_id); in simp_init_net() local [all …]
|
D | act_connmark.c | 103 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()
|
D | act_skbmod.c | 89 struct tc_action_net *tn = net_generic(net, skbmod_net_id); in tcf_skbmod_init() local 133 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbmod_init() 144 tcf_idr_cleanup(tn, index); in tcf_skbmod_init() 149 ret = tcf_idr_create(tn, index, est, a, in tcf_skbmod_init() 152 tcf_idr_cleanup(tn, index); in tcf_skbmod_init() 263 struct tc_action_net *tn = net_generic(net, skbmod_net_id); in tcf_skbmod_walker() local 265 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_skbmod_walker() 270 struct tc_action_net *tn = net_generic(net, skbmod_net_id); in tcf_skbmod_search() local 272 return tcf_idr_search(tn, a, index); in tcf_skbmod_search() 290 struct tc_action_net *tn = net_generic(net, skbmod_net_id); in skbmod_init_net() local [all …]
|
D | act_gact.c | 59 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() 271 struct tc_action_net *tn = net_generic(net, gact_net_id); in gact_init_net() local 273 return tc_action_net_init(net, tn, &act_gact_ops); in gact_init_net()
|
D | act_nat.c | 41 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()
|
D | act_sample.c | 41 struct tc_action_net *tn = net_generic(net, sample_net_id); in tcf_sample_init() local 63 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_sample_init() 71 ret = tcf_idr_create(tn, index, est, a, in tcf_sample_init() 74 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() 301 struct tc_action_net *tn = net_generic(net, sample_net_id); in sample_init_net() local 303 return tc_action_net_init(net, tn, &act_sample_ops); in sample_init_net()
|
D | act_skbedit.c | 103 struct tc_action_net *tn = net_generic(net, skbedit_net_id); in tcf_skbedit_init() local 162 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbedit_init() 173 tcf_idr_cleanup(tn, index); in tcf_skbedit_init() 178 ret = tcf_idr_create(tn, index, est, a, in tcf_skbedit_init() 181 tcf_idr_cleanup(tn, index); in tcf_skbedit_init() 307 struct tc_action_net *tn = net_generic(net, skbedit_net_id); in tcf_skbedit_walker() local 309 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_skbedit_walker() 314 struct tc_action_net *tn = net_generic(net, skbedit_net_id); in tcf_skbedit_search() local 316 return tcf_idr_search(tn, a, index); in tcf_skbedit_search() 347 struct tc_action_net *tn = net_generic(net, skbedit_net_id); in skbedit_init_net() local [all …]
|
D | act_mirred.c | 99 struct tc_action_net *tn = net_generic(net, mirred_net_id); in tcf_mirred_init() local 124 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_mirred_init() 141 tcf_idr_cleanup(tn, index); in tcf_mirred_init() 148 tcf_idr_cleanup(tn, index); in tcf_mirred_init() 152 ret = tcf_idr_create_from_flags(tn, index, est, a, in tcf_mirred_init() 155 tcf_idr_cleanup(tn, index); in tcf_mirred_init() 388 struct tc_action_net *tn = net_generic(net, mirred_net_id); in tcf_mirred_walker() local 390 return tcf_generic_walker(tn, skb, cb, type, ops, extack); in tcf_mirred_walker() 395 struct tc_action_net *tn = net_generic(net, mirred_net_id); in tcf_mirred_search() local 397 return tcf_idr_search(tn, a, index); in tcf_mirred_search() [all …]
|
D | act_ctinfo.c | 161 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_from_flags(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()
|
/kernel/linux/linux-5.10/fs/cifs/ |
D | cifs_debug.h | 110 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__); \
|