Home
last modified time | relevance | path

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

123

/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dmpfs.h44 struct hlist_node hlist; member
50 hlist_for_each_entry_safe(hs, tmp, &(mpfs)->hash[i], node.hlist)
54 hlist_for_each_entry_safe(hn, tmp, &(hash)[i], hlist)
61 hlist_for_each_entry(ptr, &(hash)[ix], node.hlist) \
78 hlist_add_head(&ptr->node.hlist, &(hash)[ix]);\
84 hlist_del(&(ptr)->node.hlist); \
H A Dvxlan.c48 struct hlist_node hlist; member
81 hash_for_each_possible_rcu(vxlan->htable, vxlanp, hlist, port) in mlx5_vxlan_lookup_port()
95 hash_for_each_possible(vxlan->htable, vxlanp, hlist, port) in vxlan_lookup_port()
118 hash_add_rcu(vxlan->htable, &vxlanp->hlist, port); in mlx5_vxlan_add_port()
137 hash_del_rcu(&vxlanp->hlist); in mlx5_vxlan_del_port()
188 hash_for_each_safe(vxlan->htable, bkt, tmp, vxlanp, hlist) { in mlx5_vxlan_reset_to_default()
/linux/net/phonet/
H A Dsocket.c44 struct hlist_head hlist[PN_HASHSIZE]; member
53 INIT_HLIST_HEAD(pnsocks.hlist + i); in pn_sock_init()
59 return pnsocks.hlist + (obj & PN_HASHMASK); in pn_hash_list()
72 struct hlist_head *hlist = pn_hash_list(obj); in pn_find_sock_by_sa() local
75 sk_for_each_rcu(sknode, hlist) { in pn_find_sock_by_sa()
106 struct hlist_head *hlist = pnsocks.hlist; in pn_deliver_sock_broadcast() local
113 sk_for_each(sknode, hlist) { in pn_deliver_sock_broadcast()
127 hlist++; in pn_deliver_sock_broadcast()
134 struct hlist_head *hlist = pn_hash_list(pn_sk(sk)->sobject); in pn_sock_hash() local
137 sk_add_node_rcu(sk, hlist); in pn_sock_hash()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dvporttbl.c18 struct hlist_node hlist; member
73 hash_for_each_possible(esw->fdb_table.offloads.vports.table, e, hlist, key) in esw_vport_tbl_lookup()
119 hash_add(esw->fdb_table.offloads.vports.table, &e->hlist, hkey); in mlx5_esw_vporttbl_get()
145 hash_del(&e->hlist); in mlx5_esw_vporttbl_put()
H A Dindir_table.c30 struct hlist_node hlist; member
293 hash_add(esw->fdb_table.offloads.indir->table, &e->hlist, in mlx5_esw_indir_table_entry_create()
316 hash_for_each_possible(esw->fdb_table.offloads.indir->table, e, hlist, key) in mlx5_esw_indir_table_entry_lookup()
374 hash_del(&e->hlist); in mlx5_esw_indir_table_put()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_arfs.c89 struct hlist_node hlist; member
104 hlist_for_each_entry_safe(hn, tmp, &hash[j], hlist)
438 hlist_del_init(&arfs_rule->hlist); in arfs_may_expire_flow()
439 hlist_add_head(&arfs_rule->hlist, &del_list); in arfs_may_expire_flow()
445 hlist_for_each_entry_safe(arfs_rule, htmp, &del_list, hlist) { in arfs_may_expire_flow()
450 hlist_del(&arfs_rule->hlist); in arfs_may_expire_flow()
468 hlist_del_init(&rule->hlist); in arfs_del_rules()
469 hlist_add_head(&rule->hlist, &del_list); in arfs_del_rules()
473 hlist_for_each_entry_safe(rule, htmp, &del_list, hlist) { in arfs_del_rules()
477 hlist_del(&rule->hlist); in arfs_del_rules()
[all …]
/linux/kernel/trace/
H A Dfprobe.c72 .head_offset = offsetof(struct fprobe_hlist_node, hlist),
88 ret = rhltable_insert(&fprobe_ip_table, &node->hlist, fprobe_rht_params); in __insert_fprobe_node()
102 rhltable_remove(&fprobe_ip_table, &node->hlist, in __delete_fprobe_node()
114 hlist_for_each_entry_rcu(fph, head, hlist, in fprobe_registered()
134 hlist_add_head_rcu(&fp->hlist_array->hlist, head); in add_fprobe_hash()
151 hlist_del_rcu(&fph->hlist); in del_fprobe_hash()
333 rhl_for_each_entry_rcu(node, pos, head, hlist) { in fprobe_ftrace_entry()
450 rhl_for_each_entry_rcu(node, pos, head, hlist) { in fprobe_exists_on_hash()
524 rhl_for_each_entry_rcu(node, pos, head, hlist) { in fprobe_exists_on_hash()
565 rhl_for_each_entry_rcu(node, pos, head, hlist) { in fprobe_fgraph_entry()
[all …]
H A Dftrace.c1181 hlist_for_each_entry_rcu_notrace(entry, hhd, hlist) { in __ftrace_lookup_ip()
1214 hlist_add_head(&entry->hlist, hhd); in add_ftrace_hash_entry()
1244 hlist_del(&entry->hlist); in free_hash_entry()
1253 hlist_del_rcu(&entry->hlist); in remove_hash_entry()
1270 hlist_for_each_entry_safe(entry, tn, hhd, hlist) in ftrace_hash_remove()
1289 hlist_for_each_entry_safe(entry, tn, hhd, hlist) in ftrace_hash_clear()
1430 hlist_for_each_entry(entry, &hash->buckets[i], hlist) { in alloc_and_copy_ftrace_hash()
1483 hlist_for_each_entry_safe(entry, tn, hhd, hlist) { in __move_hash()
3321 hlist_for_each_entry(entry, &new_hash->buckets[i], hlist) { in append_hash()
3347 hlist_for_each_entry_safe(entry, tmp, &hash->buckets[i], hlist) { in remove_hash()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmod_hdr.c45 hash_init(tbl->hlist); in mlx5e_mod_hdr_tbl_init()
50 WARN_ON(!hash_empty(tbl->hlist)); in mlx5e_mod_hdr_tbl_destroy()
60 hash_for_each_possible(tbl->hlist, mh, mod_hdr_hlist, hash_key) { in mod_hdr_get()
115 hash_add(tbl->hlist, &mh->mod_hdr_hlist, hash_key); in mlx5e_mod_hdr_attach()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dsample.c35 struct hlist_node hlist; member
53 struct hlist_node hlist; member
181 hash_for_each_possible(tc_psample->hashtbl, sampler, hlist, hash_key) in sampler_get()
200 hash_add(tc_psample->hashtbl, &sampler->hlist, hash_key); in sampler_get()
219 hash_del(&sampler->hlist); in sampler_put()
272 hash_for_each_possible(tc_psample->restore_hashtbl, restore, hlist, obj_id) in sample_restore_get()
296 hash_add(tc_psample->restore_hashtbl, &restore->hlist, obj_id); in sample_restore_get()
316 hash_del(&restore->hlist); in sample_restore_put()
H A Dmeter.h33 struct hlist_node hlist; member
/linux/drivers/net/vxlan/
H A Dvxlan_vnifilter.c49 if (!hlist_unhashed(&v->hlist4.hlist)) in vxlan_vs_add_del_vninode()
50 hlist_del_init_rcu(&v->hlist4.hlist); in vxlan_vs_add_del_vninode()
52 if (!hlist_unhashed(&v->hlist6.hlist)) in vxlan_vs_add_del_vninode()
53 hlist_del_init_rcu(&v->hlist6.hlist); in vxlan_vs_add_del_vninode()
62 hlist_add_head_rcu(&node->hlist, vni_head(vs, v->vni)); in vxlan_vs_add_del_vninode()
68 hlist_add_head_rcu(&node->hlist, vni_head(vs, v->vni)); in vxlan_vs_add_del_vninode()
93 hlist_add_head_rcu(&node->hlist, vni_head(vs, v->vni)); in vxlan_vs_add_vnigrp()
108 hlist_del_init_rcu(&v->hlist4.hlist); in vxlan_vs_del_vnigrp()
110 hlist_del_init_rcu(&v->hlist6.hlist); in vxlan_vs_del_vnigrp()
908 hlist_del_init_rcu(&v->hlist4.hlist); in vxlan_vnigroup_uninit()
[all …]
/linux/net/ipv4/
H A Draw.c94 struct hlist_head *hlist; in raw_hash_sk() local
96 hlist = &h->ht[raw_hashfunc(sock_net(sk), inet_sk(sk)->inet_num)]; in raw_hash_sk()
99 sk_add_node_rcu(sk, hlist); in raw_hash_sk()
173 struct hlist_head *hlist; in raw_v4_input() local
178 hlist = &raw_v4_hashinfo.ht[hash]; in raw_v4_input()
180 sk_for_each_rcu(sk, hlist) { in raw_v4_input()
283 struct hlist_head *hlist; in raw_icmp_error() local
289 hlist = &raw_v4_hashinfo.ht[hash]; in raw_icmp_error()
292 sk_for_each_rcu(sk, hlist) { in raw_icmp_error()
981 struct hlist_head *hlist; in raw_get_first() local
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
H A Dipoib_vlan.c40 struct hlist_node hlist; member
77 hlist_for_each_entry(node, h, hlist) { in mlx5i_find_qpn_to_netdev_node()
99 hlist_add_head(&new_node->hlist, &ht->buckets[key]); in mlx5i_pkey_add_qpn()
119 hlist_del_init(&node->hlist); in mlx5i_pkey_del_qpn()
/linux/include/linux/
H A Dfprobe.h30 struct rhlist_head hlist; member
45 struct hlist_node hlist; member
/linux/fs/smb/client/
H A Ddfs_cache.c39 struct hlist_node hlist; member
130 hlist_del_init(&ce->hlist); in flush_cache_ent()
146 hlist_for_each_entry_safe(ce, n, l, hlist) { in flush_cache_ents()
147 if (!hlist_unhashed(&ce->hlist)) in flush_cache_ents()
168 hlist_for_each_entry(ce, l, hlist) { in dfscache_proc_show()
169 if (hlist_unhashed(&ce->hlist)) in dfscache_proc_show()
433 INIT_HLIST_NODE(&ce->hlist); in alloc_cache_entry()
456 hlist_for_each_entry_safe(ce, n, l, hlist) { in purge_cache()
457 if (hlist_unhashed(&ce->hlist)) in purge_cache()
499 hlist_add_head(&ce->hlist, &cache_htable[hash]); in add_cache_entry_locked()
[all …]
/linux/kernel/
H A Dkprobes.c386 hlist_for_each_entry_rcu(p, head, hlist, in get_kprobe()
588 hlist_del_rcu(&op->kp.hlist); in do_unoptimize_kprobes()
965 hlist_for_each_entry(p, head, hlist) in optimize_all_kprobes()
989 hlist_for_each_entry(p, head, hlist) { in unoptimize_all_kprobes()
1355 INIT_HLIST_NODE(&ap->hlist); in init_aggr_kprobe()
1358 hlist_replace_rcu(&p->hlist, &ap->hlist); in init_aggr_kprobe()
1691 INIT_HLIST_NODE(&p->hlist); in __register_kprobe()
1692 hlist_add_head_rcu(&p->hlist, in __register_kprobe()
1698 hlist_del_rcu(&p->hlist); in __register_kprobe()
1828 hlist_del_rcu(&ap->hlist); in __unregister_kprobe_top()
[all …]
/linux/net/l2tp/
H A Dl2tp_core.c261 if (session && !hash_hashed(&session->hlist) && in l2tp_v3_session_get()
275 hlist, key) { in l2tp_v3_session_get()
373 if (session && !hash_hashed(&session->hlist)) { in l2tp_v3_session_get_next()
391 if (session && hash_hashed(&session->hlist)) { in l2tp_v3_session_get_next()
396 hlist, hkey) { in l2tp_v3_session_get_next()
502 if (!hash_hashed(&session2->hlist)) in l2tp_session_collision_add()
503 hash_add_rcu(pn->l2tp_v3_session_htable, &session2->hlist, in l2tp_session_collision_add()
507 hash_add_rcu(pn->l2tp_v3_session_htable, &session1->hlist, in l2tp_session_collision_add()
524 hash_del_rcu(&session->hlist); in l2tp_session_collision_del()
1368 if (hash_hashed(&session->hlist)) in l2tp_session_unhash()
[all …]
/linux/net/sched/
H A Dcls_u32.c87 struct tc_u_hnode __rcu *hlist; member
269 for (ht = rtnl_dereference(tp_c->hlist); in u32_lookup_ht()
393 RCU_INIT_POINTER(root_ht->next, tp_c->hlist); in u32_init()
394 rcu_assign_pointer(tp_c->hlist, root_ht); in u32_init()
617 hn = &tp_c->hlist; in u32_destroy_hnode()
650 while ((ht = rtnl_dereference(tp_c->hlist)) != NULL) { in u32_destroy()
652 RCU_INIT_POINTER(tp_c->hlist, ht->next); in u32_destroy()
1011 RCU_INIT_POINTER(ht->next, tp_c->hlist); in u32_change()
1012 rcu_assign_pointer(tp_c->hlist, ht); in u32_change()
1223 for (ht = rtnl_dereference(tp_c->hlist); in u32_walk()
[all …]
/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dipsec.h18 struct hlist_node hlist; member
/linux/drivers/net/
H A Dmacvlan.c61 struct hlist_node hlist; member
131 hlist_for_each_entry_rcu(vlan, &port->vlan_hash[idx], hlist, in macvlan_hash_lookup()
147 hlist_for_each_entry_rcu(entry, h, hlist, lockdep_rtnl_is_held()) { in macvlan_hash_lookup_source()
173 hlist_add_head_rcu(&entry->hlist, h); in macvlan_hash_add_source()
185 hlist_add_head_rcu(&vlan->hlist, &port->vlan_hash[idx]); in macvlan_hash_add()
191 hlist_del_rcu(&entry->hlist); in macvlan_hash_del_source()
197 hlist_del_rcu(&vlan->hlist); in macvlan_hash_del()
279 hash_for_each_rcu(port->vlan_hash, i, vlan, hlist) { in macvlan_broadcast()
401 hash_for_each_safe(port->vlan_source_hash, i, next, entry, hlist) in macvlan_flush_sources()
443 hlist_for_each_entry_rcu(entry, h, hlist) { in macvlan_forward_source()
[all …]
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ipsec.h32 struct hlist_node hlist; member
/linux/Documentation/translations/zh_CN/mm/
H A Dksm.rst55 树副本排队进入稳定节点chain->hlist)和更高的数据去重系数,但代价是在交换、压
/linux/net/netfilter/
H A Dnfnetlink_log.c61 struct hlist_node hlist; /* global list of instances */ member
112 hlist_for_each_entry_rcu(inst, head, hlist) { in __instance_lookup()
194 INIT_HLIST_NODE(&inst->hlist); in instance_create()
212 hlist_add_head_rcu(&inst->hlist, in instance_create()
232 hlist_del_rcu(&inst->hlist); in __instance_destroy()
873 hlist_for_each_entry_safe(inst, t2, head, hlist) { in nfulnl_rcv_nl_event()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dqos.h56 struct hlist_node hlist; member

123