Home
last modified time | relevance | path

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

/net/ipv4/
Dfib_trie.c151 static struct key_vector *resize(struct trie *t, struct key_vector *tn);
170 #define node_parent(tn) rtnl_dereference(tn_info(tn)->parent) argument
171 #define get_child(tn, i) rtnl_dereference((tn)->tnode[i]) argument
174 #define node_parent_rcu(tn) rcu_dereference_rtnl(tn_info(tn)->parent) argument
175 #define get_child_rcu(tn, i) rcu_dereference_rtnl((tn)->tnode[i]) argument
189 static inline unsigned long child_length(const struct key_vector *tn) in child_length() argument
191 return (1ul << tn->bits) & ~(1ul); in child_length()
353 struct key_vector *tn; in tnode_new() local
371 tn = tnode->kv; in tnode_new()
372 tn->key = (shift < KEYLENGTH) ? (key >> shift) << shift : 0; in tnode_new()
[all …]
/net/tipc/
Dnet.c114 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_net_start() local
117 tn->own_addr = addr; in tipc_net_start()
122 tipc_nametbl_publish(net, TIPC_CFG_SRV, tn->own_addr, tn->own_addr, in tipc_net_start()
123 TIPC_ZONE_SCOPE, 0, tn->own_addr); in tipc_net_start()
127 tipc_addr_string_fill(addr_string, tn->own_addr), in tipc_net_start()
128 tn->net_id); in tipc_net_start()
134 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_net_stop() local
136 if (!tn->own_addr) in tipc_net_stop()
139 tipc_nametbl_withdraw(net, TIPC_CFG_SRV, tn->own_addr, 0, in tipc_net_stop()
140 tn->own_addr); in tipc_net_stop()
[all …]
Dname_distr.c71 struct tipc_net *tn = net_generic(net, tipc_net_id); in named_prepare_buf() local
77 tipc_msg_init(tn->own_addr, msg, NAME_DISTRIBUTOR, type, in named_prepare_buf()
86 struct tipc_net *tn = net_generic(net, tipc_net_id); in named_cluster_distribute() local
92 list_for_each_entry_rcu(node, &tn->node_list, list) { in named_cluster_distribute()
114 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_named_publish() local
119 &tn->nametbl->publ_list[publ->scope]); in tipc_named_publish()
211 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_named_node_up() local
218 &tn->nametbl->publ_list[TIPC_CLUSTER_SCOPE]); in tipc_named_node_up()
220 &tn->nametbl->publ_list[TIPC_ZONE_SCOPE]); in tipc_named_node_up()
270 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_publ_purge() local
[all …]
Daddr.c51 struct tipc_net *tn = net_generic(net, tipc_net_id); in in_own_cluster_exact() local
53 return !((addr ^ tn->own_addr) >> 12); in in_own_cluster_exact()
61 struct tipc_net *tn = net_generic(net, tipc_net_id); in in_own_node() local
63 return (addr == tn->own_addr) || !addr; in in_own_node()
74 struct tipc_net *tn = net_generic(net, tipc_net_id); in addr_domain() local
77 return tn->own_addr; in addr_domain()
79 return tipc_cluster_mask(tn->own_addr); in addr_domain()
80 return tipc_zone_mask(tn->own_addr); in addr_domain()
Dname_table.c447 struct tipc_net *tn = net_generic(net, tipc_net_id); in nametbl_find_seq() local
451 seq_head = &tn->nametbl->seq_hlist[hash(type)]; in nametbl_find_seq()
464 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_insert_publ() local
477 seq = tipc_nameseq_create(type, &tn->nametbl->seq_hlist[index]); in tipc_nametbl_insert_publ()
527 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_translate() local
535 if (!tipc_in_scope(*destnode, tn->own_addr)) in tipc_nametbl_translate()
572 else if (*destnode == tn->own_addr) { in tipc_nametbl_translate()
659 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_publish() local
661 spin_lock_bh(&tn->nametbl_lock); in tipc_nametbl_publish()
662 if (tn->nametbl->local_publ_count >= TIPC_MAX_PUBLICATIONS) { in tipc_nametbl_publish()
[all …]
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->own_addr = 0; in tipc_init_net()
60 get_random_bytes(&tn->random, sizeof(int)); in tipc_init_net()
61 INIT_LIST_HEAD(&tn->node_list); in tipc_init_net()
62 spin_lock_init(&tn->node_list_lock); in tipc_init_net()
72 INIT_LIST_HEAD(&tn->dist_queue); in tipc_init_net()
Dsubscr.c74 struct tipc_net *tn = net_generic(sub->net, tipc_net_id); in tipc_subscrp_send_event() local
85 tipc_conn_sendmsg(tn->topsrv, subscriber->conid, NULL, in tipc_subscrp_send_event()
191 struct tipc_net *tn = net_generic(sub->net, tipc_net_id); in tipc_subscrp_delete() local
196 atomic_dec(&tn->subscription_count); in tipc_subscrp_delete()
223 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_subscrp_create() local
238 if (atomic_read(&tn->subscription_count) >= TIPC_MAX_SUBSCRIPTIONS) { in tipc_subscrp_create()
271 atomic_inc(&tn->subscription_count); in tipc_subscrp_create()
294 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_subscrb_rcv_cb() local
297 return tipc_conn_terminate(tn->topsrv, subscrb->conid); in tipc_subscrb_rcv_cb()
311 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_topsrv_start() local
[all …]
Dbearer.c177 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_bearer_find() local
182 b_ptr = rtnl_dereference(tn->bearer_list[i]); in tipc_bearer_find()
191 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_bearer_add_dest() local
195 b_ptr = rcu_dereference_rtnl(tn->bearer_list[bearer_id]); in tipc_bearer_add_dest()
203 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_bearer_remove_dest() local
207 b_ptr = rcu_dereference_rtnl(tn->bearer_list[bearer_id]); in tipc_bearer_remove_dest()
220 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_enable_bearer() local
230 if (!tn->own_addr) { in tipc_enable_bearer()
240 (disc_domain != tn->own_addr)) { in tipc_enable_bearer()
241 if (tipc_in_scope(disc_domain, tn->own_addr)) { in tipc_enable_bearer()
[all …]
Ddiscover.c83 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_disc_init_msg() local
88 tipc_msg_init(tn->own_addr, msg, LINK_CONFIG, type, in tipc_disc_init_msg()
91 msg_set_node_sig(msg, tn->random); in tipc_disc_init_msg()
94 msg_set_bc_netid(msg, tn->net_id); in tipc_disc_init_msg()
126 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_disc_rcv() local
143 if (net_id != tn->net_id) in tipc_disc_rcv()
154 disc_dupl_alert(bearer, tn->own_addr, &maddr); in tipc_disc_rcv()
157 if (!tipc_in_scope(ddom, tn->own_addr)) in tipc_disc_rcv()
Dbcast.c392 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nl_add_bc_link() local
393 struct tipc_link *bcl = tn->bcl; in tipc_nl_add_bc_link()
454 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_bclink_reset_stats() local
455 struct tipc_link *bcl = tn->bcl; in tipc_bclink_reset_stats()
505 struct tipc_net *tn = tipc_net(net); in tipc_bcast_init() local
512 tn->bcbase = bb; in tipc_bcast_init()
525 tn->bcl = l; in tipc_bcast_init()
542 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_bcast_stop() local
545 kfree(tn->bcbase); in tipc_bcast_stop()
546 kfree(tn->bcl); in tipc_bcast_stop()
Dsocket.c288 struct tipc_net *tn = net_generic(sock_net(&tsk->sk), tipc_net_id); in tsk_peer_msg() local
305 if (!orig_node && (peer_node == tn->own_addr)) in tsk_peer_msg()
308 if (!peer_node && (orig_node == tn->own_addr)) in tsk_peer_msg()
329 struct tipc_net *tn; in tipc_sk_create() local
367 tn = net_generic(sock_net(sk), tipc_net_id); in tipc_sk_create()
368 tipc_msg_init(tn->own_addr, msg, TIPC_LOW_IMPORTANCE, TIPC_NAMED_MSG, in tipc_sk_create()
563 struct tipc_net *tn = net_generic(sock_net(sock->sk), tipc_net_id); in tipc_getname() local
574 addr->addr.id.node = tn->own_addr; in tipc_getname()
2275 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_sk_reinit() local
2283 tbl = rht_dereference_rcu((&tn->sk_rht)->tbl, &tn->sk_rht); in tipc_sk_reinit()
[all …]
Dnode.c126 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_node_find() local
133 hlist_for_each_entry_rcu(node, &tn->node_htable[tipc_hashfn(addr)], in tipc_node_find()
147 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_node_create() local
150 spin_lock_bh(&tn->node_list_lock); in tipc_node_create()
191 hlist_add_head_rcu(&n_ptr->hash, &tn->node_htable[tipc_hashfn(addr)]); in tipc_node_create()
192 list_for_each_entry_rcu(temp_node, &tn->node_list, list) { in tipc_node_create()
198 spin_unlock_bh(&tn->node_list_lock); in tipc_node_create()
228 struct tipc_net *tn = tipc_net(net); in tipc_node_stop() local
231 spin_lock_bh(&tn->node_list_lock); in tipc_node_stop()
232 list_for_each_entry_safe(node, t_node, &tn->node_list, list) in tipc_node_stop()
[all …]
Daddr.h51 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_own_addr() local
53 return tn->own_addr; in tipc_own_addr()
Dlink.c1524 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_link_find_owner() local
1532 list_for_each_entry_rcu(n_ptr, &tn->node_list, list) { in tipc_link_find_owner()
1766 struct tipc_net *tn = net_generic(net, tipc_net_id); in __tipc_nl_add_link() local
1780 tipc_cluster_mask(tn->own_addr))) in __tipc_nl_add_link()
1855 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nl_link_dump() local
1885 list_for_each_entry_continue_rcu(node, &tn->node_list, in tipc_nl_link_dump()
1901 list_for_each_entry_rcu(node, &tn->node_list, list) { in tipc_nl_link_dump()
/net/netfilter/
Dnf_conntrack_proto_tcp.c514 struct nf_tcp_net *tn = tcp_pernet(net); in tcp_in_window() local
717 tn->tcp_be_liberal) in tcp_in_window()
825 struct nf_tcp_net *tn = tcp_pernet(net); in tcp_packet() local
1062 if (ct->proto.tcp.retrans >= tn->tcp_max_retrans && in tcp_packet()
1114 struct nf_tcp_net *tn = tcp_pernet(net); in tcp_new() local
1143 } else if (tn->tcp_loose == 0) { in tcp_new()
1305 struct nf_tcp_net *tn = tcp_pernet(net); in tcp_timeout_nlattr_to_obj() local
1310 timeouts[i] = tn->timeouts[i]; in tcp_timeout_nlattr_to_obj()
1577 struct nf_tcp_net *tn) in tcp_kmemdup_sysctl_table() argument
1589 pn->ctl_table[0].data = &tn->timeouts[TCP_CONNTRACK_SYN_SENT]; in tcp_kmemdup_sysctl_table()
[all …]
Dxt_qtaguid_print.c114 char *pp_tag_node(struct tag_node *tn) in pp_tag_node() argument
119 if (!tn) { in pp_tag_node()
124 tag_str = pp_tag_t(&tn->tag); in pp_tag_node()
127 tn, tag_str); in pp_tag_node()
143 tn_str = pp_tag_node(&tr->tn); in pp_tag_ref()
164 tn_str = pp_tag_node(&ts->tn); in pp_tag_stat()
414 tn.node); in prdebug_tag_ref_tree()
486 ts_entry = rb_entry(node, struct tag_stat, tn.node); in prdebug_tag_stat_tree()
Dxt_qtaguid.c229 tag_node_tree_insert(&data->tn, root); in tag_stat_tree_insert()
237 return rb_entry(&node->node, struct tag_stat, tn.node); in tag_stat_tree_search()
243 tag_node_tree_insert(&data->tn, root); in tag_counter_set_tree_insert()
252 return rb_entry(&node->node, struct tag_counter_set, tn.node); in tag_counter_set_tree_search()
258 tag_node_tree_insert(&data->tn, root); in tag_ref_tree_insert()
266 return rb_entry(&node->node, struct tag_ref, tn.node); in tag_ref_tree_search()
474 tr_entry->tn.tag = new_tag; in new_tag_ref()
567 tr_entry, tr_entry->tn.tag, in free_tag_ref_from_utd_entry()
568 get_uid_from_tag(tr_entry->tn.tag)); in free_tag_ref_from_utd_entry()
572 rb_erase(&tr_entry->tn.node, &utd_entry->tag_ref_tree); in free_tag_ref_from_utd_entry()
[all …]
Dxt_qtaguid_internal.h208 struct tag_node tn; member
300 struct tag_node tn; member
327 struct tag_node tn; member
Dxt_qtaguid_print.h19 char *pp_tag_node(struct tag_node *tn);
53 static inline char *pp_tag_node(struct tag_node *tn) in pp_tag_node() argument