Home
last modified time | relevance | path

Searched refs:hlist (Results 1 – 15 of 15) sorted by relevance

/net/phonet/
Dsocket.c57 struct hlist_head hlist[PN_HASHSIZE]; member
66 INIT_HLIST_HEAD(pnsocks.hlist + i); in pn_sock_init()
72 return pnsocks.hlist + (obj & PN_HASHMASK); in pn_hash_list()
85 struct hlist_head *hlist = pn_hash_list(obj); in pn_find_sock_by_sa() local
88 sk_for_each_rcu(sknode, hlist) { in pn_find_sock_by_sa()
119 struct hlist_head *hlist = pnsocks.hlist; in pn_deliver_sock_broadcast() local
126 sk_for_each(sknode, hlist) { in pn_deliver_sock_broadcast()
140 hlist++; in pn_deliver_sock_broadcast()
147 struct hlist_head *hlist = pn_hash_list(pn_sk(sk)->sobject); in pn_sock_hash() local
150 sk_add_node_rcu(sk, hlist); in pn_sock_hash()
[all …]
Dpep.c638 static struct sock *pep_find_pipe(const struct hlist_head *hlist, in pep_find_pipe() argument
645 sk_for_each(sknode, hlist) { in pep_find_pipe()
686 sknode = pep_find_pipe(&pn->hlist, &dst, pipe_handle); in pep_do_rcv()
841 newsk = pep_find_pipe(&pn->hlist, &dst, pipe_handle); in pep_sock_accept()
888 sk_add_node(newsk, &pn->hlist); in pep_sock_accept()
976 INIT_HLIST_HEAD(&pn->hlist); in pep_init()
1327 if (hlist_empty(&pn->hlist)) in pep_sock_unhash()
/net/bridge/
Dbr_fdb.c95 hlist_for_each_entry_rcu(f, head, hlist) in fdb_find_rcu()
180 hlist_del_init_rcu(&f->hlist); in fdb_delete()
249 f = hlist_entry(h, struct net_bridge_fdb_entry, hlist); in br_fdb_changeaddr()
332 hlist_for_each_entry_safe(f, n, &br->hash[i], hlist) { in br_fdb_cleanup()
363 hlist_for_each_entry_safe(f, n, &br->hash[i], hlist) { in br_fdb_flush()
388 = hlist_entry(h, struct net_bridge_fdb_entry, hlist); in br_fdb_delete_by_port()
444 hlist_for_each_entry_rcu(f, &br->hash[i], hlist) { in br_fdb_fillbuf()
501 hlist_add_head_rcu(&fdb->hlist, head); in fdb_create()
729 hlist_for_each_entry_rcu(f, &br->hash[i], hlist) { in br_fdb_dump()
1022 hlist_for_each_entry(fdb, &br->hash[i], hlist) { in br_fdb_sync_static()
[all …]
Dbr_multicast.c111 hlist_for_each_entry_rcu(mp, &mdb->mhash[hash], hlist[mdb->ver]) { in __br_mdb_ip_get()
207 hlist_for_each_entry(mp, &old->mhash[i], hlist[old->ver]) in br_mdb_copy()
208 hlist_add_head(&mp->hlist[new->ver], in br_mdb_copy()
217 hlist_for_each_entry(mp, &new->mhash[i], hlist[new->ver]) in br_mdb_copy()
259 hlist_del_rcu(&mp->hlist[mdb->ver]); in br_multicast_group_expired()
603 hlist_for_each_entry(mp, &mdb->mhash[hash], hlist[mdb->ver]) { in br_multicast_get_group()
707 hlist_add_head_rcu(&mp->hlist[mdb->ver], &mdb->mhash[hash]); in br_multicast_new_group()
2023 hlist[ver]) { in br_multicast_dev_del()
Dbr_private.h165 struct hlist_node hlist; member
199 struct hlist_node hlist[2]; member
Dbr_mdb.c104 hlist_for_each_entry_rcu(mp, &mdb->mhash[i], hlist[mdb->ver]) { in br_mdb_fill_info()
/net/sched/
Dcls_u32.c96 struct tc_u_hnode __rcu *hlist; member
270 for (ht = rtnl_dereference(tp_c->hlist); in u32_lookup_ht()
389 RCU_INIT_POINTER(root_ht->next, tp_c->hlist); in u32_init()
390 rcu_assign_pointer(tp_c->hlist, root_ht); in u32_init()
613 hn = &tp_c->hlist; in u32_destroy_hnode()
654 while ((ht = rtnl_dereference(tp_c->hlist)) != NULL) { in u32_destroy()
656 RCU_INIT_POINTER(tp_c->hlist, ht->next); in u32_destroy()
720 for (ht = rtnl_dereference(tp_c->hlist); in u32_delete()
992 RCU_INIT_POINTER(ht->next, tp_c->hlist); in u32_change()
993 rcu_assign_pointer(tp_c->hlist, ht); in u32_change()
[all …]
/net/decnet/
Ddn_table.c507 hlist_for_each_entry(tb, &dn_fib_table_hash[h], hlist) { in dn_fib_dump()
847 hlist_for_each_entry_rcu(t, &dn_fib_table_hash[h], hlist) { in dn_fib_get_table()
874 hlist_add_head_rcu(&t->hlist, &dn_fib_table_hash[h]); in dn_fib_get_table()
896 hlist_for_each_entry(tb, &dn_fib_table_hash[h], hlist) in dn_fib_flush()
921 hlist) { in dn_fib_table_cleanup()
922 hlist_del(&t->hlist); in dn_fib_table_cleanup()
/net/netfilter/
Dnfnetlink_log.c60 struct hlist_node hlist; /* global list of instances */ member
110 hlist_for_each_entry_rcu(inst, head, hlist) { in __instance_lookup()
182 INIT_HLIST_NODE(&inst->hlist); in instance_create()
200 hlist_add_head_rcu(&inst->hlist, in instance_create()
220 hlist_del_rcu(&inst->hlist); in __instance_destroy()
782 hlist_for_each_entry_safe(inst, t2, head, hlist) { in nfulnl_rcv_nl_event()
Dnfnetlink_queue.c59 struct hlist_node hlist; /* global list of queues */ member
109 hlist_for_each_entry_rcu(inst, head, hlist) { in instance_lookup()
149 hlist_add_head_rcu(&inst->hlist, &q->instance_table[h]); in instance_create()
179 hlist_del_rcu(&inst->hlist); in __instance_destroy()
921 hlist_for_each_entry_rcu(inst, head, hlist) in nfqnl_dev_drop()
954 hlist_for_each_entry_rcu(inst, head, hlist) { in nfqnl_nf_hook_drop()
980 hlist_for_each_entry_safe(inst, t2, head, hlist) { in nfqnl_rcv_nl_event()
/net/l2tp/
Dl2tp_core.c258 hlist_for_each_entry(session, session_list, hlist) { in l2tp_session_get()
283 hlist_for_each_entry(session, &tunnel->session_hlist[hash], hlist) { in l2tp_session_get_nth()
348 hlist_for_each_entry(session_walk, head, hlist) in l2tp_session_add_to_tunnel()
382 hlist_add_head(&session->hlist, head); in l2tp_session_add_to_tunnel()
1318 session = hlist_entry(walk, struct l2tp_session, hlist); in l2tp_tunnel_closeall()
1323 hlist_del_init(&session->hlist); in l2tp_tunnel_closeall()
1728 hlist_del_init(&session->hlist); in __l2tp_session_unhash()
1811 INIT_HLIST_NODE(&session->hlist); in l2tp_session_create()
Dl2tp_core.h99 struct hlist_node hlist; /* Hash list node */ member
Dl2tp_debugfs.c115 session = hlist_entry(walk, struct l2tp_session, hlist); in l2tp_dfs_seq_tunnel_show()
/net/ipv4/
Dping.c85 struct hlist_nulls_head *hlist; in ping_get_port() local
98 hlist = ping_hashslot(&ping_table, sock_net(sk), in ping_get_port()
100 ping_portaddr_for_each_entry(sk2, node, hlist) { in ping_get_port()
116 hlist = ping_hashslot(&ping_table, sock_net(sk), ident); in ping_get_port()
117 ping_portaddr_for_each_entry(sk2, node, hlist) { in ping_get_port()
136 hlist_nulls_add_head(&sk->sk_nulls_node, hlist); in ping_get_port()
/net/8021q/
Dvlan.h24 struct hlist_node hlist; /* linked list */ member