Home
last modified time | relevance | path

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

12345

/linux-6.1.9/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.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-6.1.9/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()
523 hlist, srcu_read_lock_held(&srcu)) { in mn_hlist_invalidate_range_start()
560 hlist_for_each_entry_rcu(subscription, &subscriptions->list, hlist, in mn_hlist_invalidate_end()
[all …]
Dksm.c164 struct hlist_head hlist; member
208 struct hlist_node hlist; member
350 hlist_add_head(&dup->hlist_dup, &chain->hlist); in stable_node_chain_add_dup()
565 INIT_HLIST_HEAD(&chain->hlist); in alloc_stable_node_chain()
607 hlist_for_each_entry(rmap_item, &stable_node->hlist, hlist) { in remove_node_from_stable_tree()
608 if (rmap_item->hlist.next) in remove_node_from_stable_tree()
754 hlist_del(&rmap_item->hlist); in remove_rmap_item_from_tree()
758 if (!hlist_empty(&stable_node->hlist)) in remove_rmap_item_from_tree()
907 &stable_node->hlist, hlist_dup) { in remove_stable_node_chain()
912 BUG_ON(!hlist_empty(&stable_node->hlist)); in remove_stable_node_chain()
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/net/ipv4/
Draw_diag.c60 struct hlist_nulls_head *hlist; in raw_sock_get() local
70 hlist = &hashinfo->ht[slot]; in raw_sock_get()
71 sk_nulls_for_each(sk, hnode, hlist) { in raw_sock_get()
145 struct hlist_nulls_head *hlist; in raw_diag_dump() local
163 hlist = &hashinfo->ht[slot]; in raw_diag_dump()
164 sk_nulls_for_each(sk, hnode, hlist) { in raw_diag_dump()
Draw.c94 struct hlist_nulls_head *hlist; in raw_hash_sk() local
96 hlist = &h->ht[inet_sk(sk)->inet_num & (RAW_HTABLE_SIZE - 1)]; in raw_hash_sk()
99 __sk_nulls_add_node_rcu(sk, hlist); in raw_hash_sk()
166 struct hlist_nulls_head *hlist; in raw_v4_input() local
173 hlist = &raw_v4_hashinfo.ht[hash]; in raw_v4_input()
175 sk_nulls_for_each(sk, hnode, hlist) { in raw_v4_input()
266 struct hlist_nulls_head *hlist; in raw_icmp_error() local
275 hlist = &raw_v4_hashinfo.ht[hash]; in raw_icmp_error()
278 sk_nulls_for_each(sk, hnode, hlist) { in raw_icmp_error()
950 struct hlist_nulls_head *hlist; in raw_get_first() local
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dvporttbl.c18 struct hlist_node hlist; member
65 hash_for_each_possible(esw->fdb_table.offloads.vports.table, e, hlist, key) in esw_vport_tbl_lookup()
110 hash_add(esw->fdb_table.offloads.vports.table, &e->hlist, hkey); in mlx5_esw_vporttbl_get()
135 hash_del(&e->hlist); in mlx5_esw_vporttbl_put()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_arfs.c84 struct hlist_node hlist; member
99 hlist_for_each_entry_safe(hn, tmp, &hash[j], hlist)
419 hlist_del_init(&arfs_rule->hlist); in arfs_may_expire_flow()
420 hlist_add_head(&arfs_rule->hlist, &del_list); in arfs_may_expire_flow()
426 hlist_for_each_entry_safe(arfs_rule, htmp, &del_list, hlist) { in arfs_may_expire_flow()
429 hlist_del(&arfs_rule->hlist); in arfs_may_expire_flow()
445 hlist_del_init(&rule->hlist); in arfs_del_rules()
446 hlist_add_head(&rule->hlist, &del_list); in arfs_del_rules()
450 hlist_for_each_entry_safe(rule, htmp, &del_list, hlist) { in arfs_del_rules()
454 hlist_del(&rule->hlist); in arfs_del_rules()
[all …]
/linux-6.1.9/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-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
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()
/linux-6.1.9/drivers/net/vxlan/
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()
95 hlist_add_head_rcu(&node->hlist, vni_head(vs, v->vni)); in vxlan_vs_add_vnigrp()
111 hlist_del_init_rcu(&v->hlist4.hlist); in vxlan_vs_del_vnigrp()
113 hlist_del_init_rcu(&v->hlist6.hlist); in vxlan_vs_del_vnigrp()
905 hlist_del_init_rcu(&v->hlist4.hlist); in vxlan_vnigroup_uninit()
[all …]
/linux-6.1.9/fs/ksmbd/mgmt/
Dshare_config.c58 hash_del(&share->hlist); in ksmbd_share_config_del()
81 hash_for_each_possible(shares_table, share, hlist, key) { in __share_lookup()
196 hash_add(shares_table, &share->hlist, share_name_hash(name)); in share_config_request()
Duser_session.c157 hash_del(&sess->hlist); in ksmbd_session_destroy()
176 hash_for_each_possible(sessions_table, sess, hlist, id) { in __session_lookup()
218 hash_for_each(sessions_table, bkt, sess, hlist) { in ksmbd_sessions_deregister()
353 hash_add(sessions_table, &sess->hlist, sess->id); in __session_create()
/linux-6.1.9/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-6.1.9/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-6.1.9/fs/cifs/
Ddfs_cache.c39 struct hlist_node hlist; member
241 hlist_del_init(&ce->hlist); in flush_cache_ent()
257 hlist_for_each_entry_safe(ce, n, l, hlist) { in flush_cache_ents()
258 if (!hlist_unhashed(&ce->hlist)) in flush_cache_ents()
279 hlist_for_each_entry(ce, l, hlist) { in dfscache_proc_show()
280 if (hlist_unhashed(&ce->hlist)) in dfscache_proc_show()
539 INIT_HLIST_NODE(&ce->hlist); in alloc_cache_entry()
562 hlist_for_each_entry(ce, l, hlist) { in remove_oldest_entry_locked()
563 if (hlist_unhashed(&ce->hlist)) in remove_oldest_entry_locked()
613 hlist_add_head(&ce->hlist, &cache_htable[hash]); in add_cache_entry_locked()
[all …]
/linux-6.1.9/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-6.1.9/kernel/
Dkprobes.c382 hlist_for_each_entry_rcu(p, head, hlist, in get_kprobe()
576 hlist_del_rcu(&op->kp.hlist); in do_unoptimize_kprobes()
807 hlist_del_rcu(&op->kp.hlist); in kill_optimized_kprobe()
902 hlist_for_each_entry(p, head, hlist) in optimize_all_kprobes()
930 hlist_for_each_entry(p, head, hlist) { in unoptimize_all_kprobes()
1290 INIT_HLIST_NODE(&ap->hlist); in init_aggr_kprobe()
1293 hlist_replace_rcu(&p->hlist, &ap->hlist); in init_aggr_kprobe()
1652 INIT_HLIST_NODE(&p->hlist); in register_kprobe()
1653 hlist_add_head_rcu(&p->hlist, in register_kprobe()
1659 hlist_del_rcu(&p->hlist); in register_kprobe()
[all …]
/linux-6.1.9/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()
606 hn = &tp_c->hlist; in u32_destroy_hnode()
639 while ((ht = rtnl_dereference(tp_c->hlist)) != NULL) { in u32_destroy()
641 RCU_INIT_POINTER(tp_c->hlist, ht->next); in u32_destroy()
973 RCU_INIT_POINTER(ht->next, tp_c->hlist); in u32_change()
974 rcu_assign_pointer(tp_c->hlist, ht); in u32_change()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c55 hash_for_each_possible_rcu(ipsec->sadb_rx, sa_entry, hlist, handle) in mlx5e_ipsec_sadb_rx_lookup()
74 hash_for_each_possible_rcu(ipsec->sadb_rx, _sa_entry, hlist, handle) in mlx5e_ipsec_sadb_rx_add()
83 hash_add_rcu(ipsec->sadb_rx, &sa_entry->hlist, sa_entry->handle); in mlx5e_ipsec_sadb_rx_add()
95 hash_del_rcu(&sa_entry->hlist); in mlx5e_ipsec_sadb_rx_del()
/linux-6.1.9/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-6.1.9/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()
398 hlist_for_each_entry_safe(entry, n, &bucket->hlist, hnode) { in nfs4_xattr_discard_cache()
517 hlist_for_each_entry(entry, &bucket->hlist, hnode) { in nfs4_xattr_get_entry()
551 hlist_add_head(&entry->hnode, &bucket->hlist); in nfs4_xattr_hash_add()
/linux-6.1.9/drivers/net/
Dmacvlan.c58 struct hlist_node hlist; member
128 hlist_for_each_entry_rcu(vlan, &port->vlan_hash[idx], hlist, in macvlan_hash_lookup()
144 hlist_for_each_entry_rcu(entry, h, hlist, lockdep_rtnl_is_held()) { in macvlan_hash_lookup_source()
170 hlist_add_head_rcu(&entry->hlist, h); in macvlan_hash_add_source()
182 hlist_add_head_rcu(&vlan->hlist, &port->vlan_hash[idx]); in macvlan_hash_add()
187 hlist_del_rcu(&entry->hlist); in macvlan_hash_del_source()
193 hlist_del_rcu(&vlan->hlist); in macvlan_hash_del()
275 hash_for_each_rcu(port->vlan_hash, i, vlan, hlist) { in macvlan_broadcast()
384 hash_for_each_safe(port->vlan_source_hash, i, next, entry, hlist) in macvlan_flush_sources()
426 hlist_for_each_entry_rcu(entry, h, hlist) { in macvlan_forward_source()
[all …]
/linux-6.1.9/net/mctp/
Droute.c110 hlist_for_each_entry(key, &net->mctp.keys, hlist) { in mctp_lookup_key()
187 hlist_for_each_entry(tmp, &net->mctp.keys, hlist) { in mctp_key_add()
204 hlist_add_head(&key->hlist, &net->mctp.keys); in mctp_key_add()
239 if (!hlist_unhashed(&key->hlist)) { in __mctp_key_done_in()
240 hlist_del_init(&key->hlist); in __mctp_key_done_in()
594 hlist_add_head_rcu(&key->hlist, &mns->keys); in mctp_reserve_tag()
629 hlist_for_each_entry(tmp, &mns->keys, hlist) { in mctp_alloc_local_tag()
687 hlist_for_each_entry(tmp, &mns->keys, hlist) { in mctp_lookup_prealloc_tag()

12345