Home
last modified time | relevance | path

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

1234

/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dmpfs.h44 struct hlist_node hlist; member
50 hlist_for_each_entry_safe(hn, tmp, &(hash)[i], hlist)
57 hlist_for_each_entry(ptr, &(hash)[ix], node.hlist) \
74 hlist_add_head(&ptr->node.hlist, &(hash)[ix]);\
80 hlist_del(&(ptr)->node.hlist); \
Dvxlan.c49 struct hlist_node hlist; member
82 hash_for_each_possible_rcu(vxlan->htable, vxlanp, hlist, port) in mlx5_vxlan_lookup_port()
96 hash_for_each_possible(vxlan->htable, vxlanp, hlist, port) in vxlan_lookup_port()
119 hash_add_rcu(vxlan->htable, &vxlanp->hlist, port); in mlx5_vxlan_add_port()
138 hash_del_rcu(&vxlanp->hlist); in mlx5_vxlan_del_port()
189 hash_for_each_safe(vxlan->htable, bkt, tmp, vxlanp, hlist) { in mlx5_vxlan_reset_to_default()
/Linux-v5.10/net/phonet/
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 …]
Dpep.c625 static struct sock *pep_find_pipe(const struct hlist_head *hlist, in pep_find_pipe() argument
632 sk_for_each(sknode, hlist) { in pep_find_pipe()
673 sknode = pep_find_pipe(&pn->hlist, &dst, pipe_handle); in pep_do_rcv()
828 newsk = pep_find_pipe(&pn->hlist, &dst, pipe_handle); in pep_sock_accept()
875 sk_add_node(newsk, &pn->hlist); in pep_sock_accept()
963 INIT_HLIST_HEAD(&pn->hlist); in pep_init()
1314 if (hlist_empty(&pn->hlist)) in pep_sock_unhash()
/Linux-v5.10/mm/
Dmmu_notifier.c310 hlist_for_each_entry_rcu(subscription, &subscriptions->list, hlist, in mn_hlist_release()
324 struct mmu_notifier, hlist); in mn_hlist_release()
331 hlist_del_init_rcu(&subscription->hlist); in mn_hlist_release()
374 &mm->notifier_subscriptions->list, hlist, in __mmu_notifier_clear_flush_young()
394 &mm->notifier_subscriptions->list, hlist, in __mmu_notifier_clear_young()
413 &mm->notifier_subscriptions->list, hlist, in __mmu_notifier_test_young()
435 &mm->notifier_subscriptions->list, hlist, in __mmu_notifier_change_pte()
484 hlist_for_each_entry_rcu(subscription, &subscriptions->list, hlist, in mn_hlist_invalidate_range_start()
537 hlist_for_each_entry_rcu(subscription, &subscriptions->list, hlist, in mn_hlist_invalidate_end()
592 &mm->notifier_subscriptions->list, hlist, in __mmu_notifier_invalidate_range()
[all …]
Dksm.c166 struct hlist_head hlist; member
210 struct hlist_node hlist; member
354 hlist_add_head(&dup->hlist_dup, &chain->hlist); in stable_node_chain_add_dup()
597 INIT_HLIST_HEAD(&chain->hlist); in alloc_stable_node_chain()
639 hlist_for_each_entry(rmap_item, &stable_node->hlist, hlist) { in remove_node_from_stable_tree()
640 if (rmap_item->hlist.next) in remove_node_from_stable_tree()
785 hlist_del(&rmap_item->hlist); in remove_rmap_item_from_tree()
789 if (!hlist_empty(&stable_node->hlist)) in remove_rmap_item_from_tree()
929 &stable_node->hlist, hlist_dup) { in remove_stable_node_chain()
934 BUG_ON(!hlist_empty(&stable_node->hlist)); in remove_stable_node_chain()
[all …]
/Linux-v5.10/kernel/
Dkprobes.c370 hlist_for_each_entry_rcu(p, head, hlist, in get_kprobe()
566 hlist_del_rcu(&op->kp.hlist); in do_unoptimize_kprobes()
794 hlist_del_rcu(&op->kp.hlist); in kill_optimized_kprobe()
890 hlist_for_each_entry(p, head, hlist) in optimize_all_kprobes()
917 hlist_for_each_entry(p, head, hlist) { in unoptimize_all_kprobes()
1232 hlist_del(&ri->hlist); in recycle_rp_inst()
1233 INIT_HLIST_NODE(&ri->hlist); in recycle_rp_inst()
1236 hlist_add_head(&ri->hlist, &rp->free_instances); in recycle_rp_inst()
1340 hlist_for_each_entry_safe(ri, tmp, head, hlist) { in kprobe_flush_task()
1355 hlist_for_each_entry_safe(ri, next, &rp->free_instances, hlist) { in free_rp_inst()
[all …]
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_arfs.c58 struct hlist_node hlist; member
73 hlist_for_each_entry_safe(hn, tmp, &hash[j], hlist)
367 hlist_del_init(&arfs_rule->hlist); in arfs_may_expire_flow()
368 hlist_add_head(&arfs_rule->hlist, &del_list); in arfs_may_expire_flow()
374 hlist_for_each_entry_safe(arfs_rule, htmp, &del_list, hlist) { in arfs_may_expire_flow()
377 hlist_del(&arfs_rule->hlist); in arfs_may_expire_flow()
392 hlist_del_init(&rule->hlist); in arfs_del_rules()
393 hlist_add_head(&rule->hlist, &del_list); in arfs_del_rules()
397 hlist_for_each_entry_safe(rule, htmp, &del_list, hlist) { in arfs_del_rules()
401 hlist_del(&rule->hlist); in arfs_del_rules()
[all …]
/Linux-v5.10/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_encap.c112 vnic_hash_for_each_safe(mactbl, bkt, tmp, node, hlist) { in opa_vnic_free_mac_tbl()
113 hash_del(&node->hlist); in opa_vnic_free_mac_tbl()
168 vnic_hash_for_each(mactbl, bkt, node, hlist) { in opa_vnic_query_mac_tbl()
255 vnic_hash_add(new_mactbl, &node->hlist, key); in opa_vnic_update_mac_tbl()
263 vnic_hash_for_each(old_mactbl, bkt, node, hlist) { in opa_vnic_update_mac_tbl()
277 vnic_hash_add(new_mactbl, &new_node->hlist, key); in opa_vnic_update_mac_tbl()
312 vnic_hash_for_each_possible(mactbl, node, hlist, key) { in opa_vnic_chk_mac_tbl()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dmod_hdr.c45 hash_init(tbl->hlist); in mlx5e_mod_hdr_tbl_init()
59 hash_for_each_possible(tbl->hlist, mh, mod_hdr_hlist, hash_key) { in mod_hdr_get()
114 hash_add(tbl->hlist, &mh->mod_hdr_hlist, hash_key); in mlx5e_mod_hdr_attach()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
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-v5.10/drivers/md/persistent-data/
Ddm-transaction-manager.c78 struct hlist_node hlist; member
110 hlist_for_each_entry(si, tm->buckets + bucket, hlist) in is_shadow()
134 hlist_add_head(&si->hlist, tm->buckets + bucket); in insert_shadow()
149 hlist_for_each_entry_safe(si, tmp, bucket, hlist) in wipe_shadow_table()
/Linux-v5.10/include/linux/
Dif_team.h30 struct hlist_node hlist; /* node in enabled ports hash list */ member
254 hlist_for_each_entry(port, head, hlist) in team_get_port_by_index()
275 hlist_for_each_entry_rcu(port, head, hlist) in team_get_port_by_index_rcu()
/Linux-v5.10/kernel/bpf/
Dtrampoline.c77 hlist_for_each_entry(tr, head, hlist) { in bpf_trampoline_lookup()
96 INIT_HLIST_NODE(&tr->hlist); in bpf_trampoline_lookup()
97 hlist_add_head(&tr->hlist, head); in bpf_trampoline_lookup()
378 hlist_del(&tr->hlist); in bpf_trampoline_put()
/Linux-v5.10/fs/cifs/
Ddfs_cache.c37 struct hlist_node hlist; member
125 hlist_del_init(&ce->hlist); in flush_cache_ent()
141 hlist_for_each_entry_safe(ce, n, l, hlist) { in flush_cache_ents()
142 if (!hlist_unhashed(&ce->hlist)) in flush_cache_ents()
163 hlist_for_each_entry(ce, l, hlist) { in dfscache_proc_show()
164 if (hlist_unhashed(&ce->hlist)) in dfscache_proc_show()
426 INIT_HLIST_NODE(&ce->hlist); in alloc_cache_entry()
448 hlist_for_each_entry(ce, l, hlist) { in remove_oldest_entry()
449 if (hlist_unhashed(&ce->hlist)) in remove_oldest_entry()
488 hlist_add_head(&ce->hlist, &cache_htable[hash]); in add_cache_entry()
[all …]
/Linux-v5.10/net/sched/
Dcls_u32.c86 struct tc_u_hnode __rcu *hlist; member
258 for (ht = rtnl_dereference(tp_c->hlist); in u32_lookup_ht()
367 tp_c = kzalloc(struct_size(tp_c, hlist->ht, 1), GFP_KERNEL); in u32_init()
380 RCU_INIT_POINTER(root_ht->next, tp_c->hlist); in u32_init()
381 rcu_assign_pointer(tp_c->hlist, root_ht); in u32_init()
602 hn = &tp_c->hlist; in u32_destroy_hnode()
635 while ((ht = rtnl_dereference(tp_c->hlist)) != NULL) { in u32_destroy()
637 RCU_INIT_POINTER(tp_c->hlist, ht->next); in u32_destroy()
967 RCU_INIT_POINTER(ht->next, tp_c->hlist); in u32_change()
968 rcu_assign_pointer(tp_c->hlist, ht); in u32_change()
[all …]
/Linux-v5.10/fs/nfs/
Dnfs42xattr.c63 struct hlist_head hlist; member
111 INIT_HLIST_HEAD(&cache->buckets[i].hlist); in nfs4_xattr_hash_init()
276 if (WARN_ON(!hlist_empty(&cache->buckets[i].hlist))) in nfs4_xattr_free_cache_cb()
399 hlist_for_each_entry_safe(entry, n, &bucket->hlist, hnode) { in nfs4_xattr_discard_cache()
518 hlist_for_each_entry(entry, &bucket->hlist, hnode) { in nfs4_xattr_get_entry()
552 hlist_add_head(&entry->hnode, &bucket->hlist); in nfs4_xattr_hash_add()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c67 hash_for_each_possible_rcu(ipsec->sadb_rx, sa_entry, hlist, handle) in mlx5e_ipsec_sadb_rx_lookup()
86 hash_for_each_possible_rcu(ipsec->sadb_rx, _sa_entry, hlist, handle) in mlx5e_ipsec_sadb_rx_add()
95 hash_add_rcu(ipsec->sadb_rx, &sa_entry->hlist, sa_entry->handle); in mlx5e_ipsec_sadb_rx_add()
107 hash_del_rcu(&sa_entry->hlist); in mlx5e_ipsec_sadb_rx_del()
/Linux-v5.10/drivers/net/
Dmacvlan.c57 struct hlist_node hlist; member
126 hlist_for_each_entry_rcu(vlan, &port->vlan_hash[idx], hlist, in macvlan_hash_lookup()
142 hlist_for_each_entry_rcu(entry, h, hlist) { in macvlan_hash_lookup_source()
168 hlist_add_head_rcu(&entry->hlist, h); in macvlan_hash_add_source()
180 hlist_add_head_rcu(&vlan->hlist, &port->vlan_hash[idx]); in macvlan_hash_add()
185 hlist_del_rcu(&entry->hlist); in macvlan_hash_del_source()
191 hlist_del_rcu(&vlan->hlist); in macvlan_hash_del()
274 hlist_for_each_entry_rcu(vlan, &port->vlan_hash[i], hlist) { in macvlan_broadcast()
390 hlist); in macvlan_flush_sources()
432 hlist_for_each_entry_rcu(entry, h, hlist) { in macvlan_forward_source()
[all …]
/Linux-v5.10/drivers/net/ethernet/intel/ixgbevf/
Dipsec.h18 struct hlist_node hlist; member
/Linux-v5.10/net/decnet/
Ddn_table.c509 hlist_for_each_entry(tb, &dn_fib_table_hash[h], hlist) { in dn_fib_dump()
849 hlist_for_each_entry_rcu(t, &dn_fib_table_hash[h], hlist) { in dn_fib_get_table()
876 hlist_add_head_rcu(&t->hlist, &dn_fib_table_hash[h]); in dn_fib_get_table()
898 hlist_for_each_entry(tb, &dn_fib_table_hash[h], hlist) in dn_fib_flush()
923 hlist) { in dn_fib_table_cleanup()
924 hlist_del(&t->hlist); in dn_fib_table_cleanup()
/Linux-v5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.h32 struct hlist_node hlist; member
/Linux-v5.10/net/l2tp/
Dl2tp_core.c254 hlist_for_each_entry(session, session_list, hlist) in l2tp_tunnel_get_session()
296 hlist_for_each_entry(session, &tunnel->session_hlist[hash], hlist) { in l2tp_session_get_nth()
356 hlist_for_each_entry(session_walk, head, hlist) in l2tp_session_register()
387 hlist_add_head(&session->hlist, head); in l2tp_session_register()
1169 hlist_del_init(&session->hlist); in l2tp_session_unhash()
1198 session = hlist_entry(walk, struct l2tp_session, hlist); in l2tp_tunnel_closeall()
1199 hlist_del_init(&session->hlist); in l2tp_tunnel_closeall()
1603 INIT_HLIST_NODE(&session->hlist); in l2tp_session_create()
/Linux-v5.10/include/net/phonet/
Dpep.h18 struct hlist_head hlist; member
/Linux-v5.10/net/netfilter/
Dnfnetlink_log.c57 struct hlist_node hlist; /* global list of instances */ member
107 hlist_for_each_entry_rcu(inst, head, hlist) { in __instance_lookup()
179 INIT_HLIST_NODE(&inst->hlist); in instance_create()
197 hlist_add_head_rcu(&inst->hlist, in instance_create()
217 hlist_del_rcu(&inst->hlist); in __instance_destroy()
833 hlist_for_each_entry_safe(inst, t2, head, hlist) { in nfulnl_rcv_nl_event()

1234