/linux-6.1.9/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 | 58 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()
|
D | discover.c | 84 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 152 bool trial = time_before(jiffies, tn->addr_trial_end) && !self; 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 …]
|
D | net.c | 128 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 …]
|
D | name_distr.c | 209 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() 237 struct tipc_net *tn = tipc_net(net); in tipc_publ_purge() local 243 spin_lock_bh(&tn->nametbl_lock); in tipc_publ_purge() 247 spin_unlock_bh(&tn->nametbl_lock); in tipc_publ_purge() 256 struct tipc_net *tn = tipc_net(net); in tipc_publ_notify() local 262 spin_lock_bh(&tn->nametbl_lock); in tipc_publ_notify() 265 spin_unlock_bh(&tn->nametbl_lock); in tipc_publ_notify() 367 struct tipc_net *tn = tipc_net(net); in tipc_named_rcv() local [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() 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 …]
|
D | node.c | 334 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 …]
|
D | name_table.c | 573 struct tipc_net *tn = tipc_net(net); in tipc_nametbl_lookup_anycast() local 574 bool legacy = tn->legacy_addr_format; in tipc_nametbl_lookup_anycast() 764 struct tipc_net *tn = tipc_net(net); in tipc_nametbl_publish() local 769 spin_lock_bh(&tn->nametbl_lock); in tipc_nametbl_publish() 783 spin_unlock_bh(&tn->nametbl_lock); in tipc_nametbl_publish() 802 struct tipc_net *tn = tipc_net(net); in tipc_nametbl_withdraw() local 807 spin_lock_bh(&tn->nametbl_lock); in tipc_nametbl_withdraw() 817 spin_unlock_bh(&tn->nametbl_lock); in tipc_nametbl_withdraw() 829 struct tipc_net *tn = tipc_net(sub->net); in tipc_nametbl_subscribe() local 837 spin_lock_bh(&tn->nametbl_lock); in tipc_nametbl_subscribe() [all …]
|
D | addr.h | 98 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-6.1.9/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
|
/linux-6.1.9/net/ipv4/ |
D | fib_trie.c | 173 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-6.1.9/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 …]
|
D | nf_conntrack_standalone.c | 981 struct nf_tcp_net *tn = nf_tcp_pernet(net); in nf_conntrack_standalone_init_tcp_sysctl() local 983 #define XASSIGN(XNAME, tn) \ in nf_conntrack_standalone_init_tcp_sysctl() argument 985 &(tn)->timeouts[TCP_CONNTRACK_ ## XNAME] in nf_conntrack_standalone_init_tcp_sysctl() 987 XASSIGN(SYN_SENT, tn); in nf_conntrack_standalone_init_tcp_sysctl() 988 XASSIGN(SYN_RECV, tn); in nf_conntrack_standalone_init_tcp_sysctl() 989 XASSIGN(ESTABLISHED, tn); in nf_conntrack_standalone_init_tcp_sysctl() 990 XASSIGN(FIN_WAIT, tn); in nf_conntrack_standalone_init_tcp_sysctl() 991 XASSIGN(CLOSE_WAIT, tn); in nf_conntrack_standalone_init_tcp_sysctl() 992 XASSIGN(LAST_ACK, tn); in nf_conntrack_standalone_init_tcp_sysctl() 993 XASSIGN(TIME_WAIT, tn); in nf_conntrack_standalone_init_tcp_sysctl() [all …]
|
D | nf_conntrack_proto_tcp.c | 489 const struct nf_tcp_net *tn = nf_tcp_pernet(nf_ct_net(ct)); in nf_tcp_log_invalid() local 494 be_liberal = sender->flags & IP_CT_TCP_FLAG_BE_LIBERAL || tn->tcp_be_liberal; in nf_tcp_log_invalid() 727 const struct nf_tcp_net *tn; in nf_tcp_handle_invalid() local 758 tn = nf_tcp_pernet(nf_ct_net(ct)); in nf_tcp_handle_invalid() 761 timeouts = tn->timeouts; in nf_tcp_handle_invalid() 842 const struct nf_tcp_net *tn = nf_tcp_pernet(net); in tcp_new() local 866 } else if (tn->tcp_loose == 0) { in tcp_new() 932 struct nf_tcp_net *tn = nf_tcp_pernet(net); in nf_conntrack_tcp_packet() local 1162 !tn->tcp_ignore_invalid_rst) { in nf_conntrack_tcp_packet() 1249 timeouts = tn->timeouts; in nf_conntrack_tcp_packet() [all …]
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/include/net/ |
D | act_api.h | 148 int tc_action_net_init(struct net *net, struct tc_action_net *tn, in tc_action_net_init() argument 153 tn->idrinfo = kmalloc(sizeof(*tn->idrinfo), GFP_KERNEL); in tc_action_net_init() 154 if (!tn->idrinfo) in tc_action_net_init() 156 tn->ops = ops; in tc_action_net_init() 157 tn->idrinfo->net = net; in tc_action_net_init() 158 mutex_init(&tn->idrinfo->lock); in tc_action_net_init() 159 idr_init(&tn->idrinfo->action_idr); in tc_action_net_init() 173 struct tc_action_net *tn = net_generic(net, id); in tc_action_net_exit() local 175 tcf_idrinfo_destroy(tn->ops, tn->idrinfo); in tc_action_net_exit() 176 kfree(tn->idrinfo); in tc_action_net_exit() [all …]
|
/linux-6.1.9/fs/cifs/ |
D | cifs_debug.h | 110 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-6.1.9/net/sched/ |
D | act_vlan.c | 119 struct tc_action_net *tn = net_generic(net, act_vlan_ops.net_id); in tcf_vlan_init() local 147 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_vlan_init() 163 tcf_idr_cleanup(tn, index); in tcf_vlan_init() 171 tcf_idr_cleanup(tn, index); in tcf_vlan_init() 185 tcf_idr_cleanup(tn, index); in tcf_vlan_init() 203 tcf_idr_cleanup(tn, index); in tcf_vlan_init() 211 tcf_idr_cleanup(tn, index); in tcf_vlan_init() 217 ret = tcf_idr_create_from_flags(tn, index, est, a, in tcf_vlan_init() 220 tcf_idr_cleanup(tn, index); in tcf_vlan_init() 431 struct tc_action_net *tn = net_generic(net, act_vlan_ops.net_id); in vlan_init_net() local [all …]
|
D | act_simple.c | 91 struct tc_action_net *tn = net_generic(net, act_simp_ops.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() 213 struct tc_action_net *tn = net_generic(net, act_simp_ops.net_id); in simp_init_net() local 215 return tc_action_net_init(net, tn, &act_simp_ops); in simp_init_net()
|
D | act_ipt.c | 97 struct tc_action_net *tn = net_generic(net, id); in __tcf_ipt_init() local 119 err = tcf_idr_check_alloc(tn, &index, a, bind); in __tcf_ipt_init() 130 tcf_idr_cleanup(tn, index); in __tcf_ipt_init() 139 tcf_idr_cleanup(tn, index); in __tcf_ipt_init() 144 ret = tcf_idr_create(tn, index, est, a, ops, bind, in __tcf_ipt_init() 147 tcf_idr_cleanup(tn, index); in __tcf_ipt_init() 329 struct tc_action_net *tn = net_generic(net, act_ipt_ops.net_id); in ipt_init_net() local 331 return tc_action_net_init(net, tn, &act_ipt_ops); in ipt_init_net() 359 struct tc_action_net *tn = net_generic(net, act_xt_ops.net_id); in xt_init_net() local 361 return tc_action_net_init(net, tn, &act_xt_ops); in xt_init_net()
|
D | act_connmark.c | 101 struct tc_action_net *tn = net_generic(net, act_connmark_ops.net_id); in tcf_connmark_init() local 123 ret = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_connmark_init() 125 ret = tcf_idr_create(tn, index, est, a, in tcf_connmark_init() 128 tcf_idr_cleanup(tn, index); in tcf_connmark_init() 214 struct tc_action_net *tn = net_generic(net, act_connmark_ops.net_id); in connmark_init_net() local 216 return tc_action_net_init(net, tn, &act_connmark_ops); in connmark_init_net()
|
D | act_skbmod.c | 105 struct tc_action_net *tn = net_generic(net, act_skbmod_ops.net_id); in tcf_skbmod_init() local 153 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_skbmod_init() 164 tcf_idr_cleanup(tn, index); in tcf_skbmod_init() 169 ret = tcf_idr_create(tn, index, est, a, in tcf_skbmod_init() 172 tcf_idr_cleanup(tn, index); in tcf_skbmod_init() 291 struct tc_action_net *tn = net_generic(net, act_skbmod_ops.net_id); in skbmod_init_net() local 293 return tc_action_net_init(net, tn, &act_skbmod_ops); in skbmod_init_net()
|
D | act_gact.c | 57 struct tc_action_net *tn = net_generic(net, act_gact_ops.net_id); in tcf_gact_init() local 99 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_gact_init() 101 ret = tcf_idr_create_from_flags(tn, index, est, a, in tcf_gact_init() 104 tcf_idr_cleanup(tn, index); in tcf_gact_init() 300 struct tc_action_net *tn = net_generic(net, act_gact_ops.net_id); in gact_init_net() local 302 return tc_action_net_init(net, tn, &act_gact_ops); in gact_init_net()
|
/linux-6.1.9/arch/powerpc/sysdev/ |
D | mpic_msgr.c | 148 struct device_node *tn; in mpic_msgr_block_number() local 152 tn = of_find_node_by_path(prop->value); in mpic_msgr_block_number() 153 if (node == tn) { in mpic_msgr_block_number() 154 of_node_put(tn); in mpic_msgr_block_number() 157 of_node_put(tn); in mpic_msgr_block_number()
|