/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | mpfs.h | 44 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); \
|
H A D | vxlan.c | 48 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/mm/ |
H A D | mmu_notifier.c | 312 hlist_for_each_entry_rcu(subscription, &subscriptions->list, hlist, in mn_hlist_release() 326 struct mmu_notifier, hlist); in mn_hlist_release() 333 hlist_del_init_rcu(&subscription->hlist); in mn_hlist_release() 376 &mm->notifier_subscriptions->list, hlist, in __mmu_notifier_clear_flush_young() 396 &mm->notifier_subscriptions->list, hlist, in __mmu_notifier_clear_young() 415 &mm->notifier_subscriptions->list, hlist, in __mmu_notifier_test_young() 469 hlist_for_each_entry_rcu(subscription, &subscriptions->list, hlist, in mn_hlist_invalidate_range_start() 508 hlist, srcu_read_lock_held(&srcu)) { in mn_hlist_invalidate_range_start() 545 hlist_for_each_entry_rcu(subscription, &subscriptions->list, hlist, in mn_hlist_invalidate_end() 581 &mm->notifier_subscriptions->list, hlist, in __mmu_notifier_arch_invalidate_secondary_tlbs() [all …]
|
/linux/net/phonet/ |
H A D | socket.c | 44 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 …]
|
H A D | pep.c | 625 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() 829 newsk = pep_find_pipe(&pn->hlist, &dst, pipe_handle); in pep_sock_accept() 877 sk_add_node(newsk, &pn->hlist); in pep_sock_accept() 989 INIT_HLIST_HEAD(&pn->hlist); in pep_init() 1340 if (hlist_empty(&pn->hlist)) in pep_sock_unhash()
|
/linux/kernel/trace/ |
H A D | fprobe.c | 60 hlist_for_each_entry_rcu(node, head, hlist, in find_first_fprobe_node() 80 hlist_add_before_rcu(&node->hlist, &next->hlist); in insert_fprobe_node() 84 hlist_add_head_rcu(&node->hlist, head); in insert_fprobe_node() 93 hlist_del_rcu(&node->hlist); in delete_fprobe_node() 104 hlist_for_each_entry_rcu(fph, head, hlist, in is_fprobe_still_exist() 127 hlist_add_head_rcu(&fp->hlist_array->hlist, head); in add_fprobe_hash() 144 hlist_del_rcu(&fph->hlist); in del_fprobe_hash() 265 hlist_for_each_entry_from_rcu(node, hlist) { in fprobe_entry() 282 hlist_for_each_entry_from_rcu(node, hlist) { in fprobe_entry() 299 hlist_for_each_entry_from_rcu(node, hlist) { in fprobe_entry()
|
/linux/net/ipv4/ |
H A D | raw_diag.c | 60 struct hlist_head *hlist; in raw_sock_get() local 69 hlist = &hashinfo->ht[slot]; in raw_sock_get() 70 sk_for_each_rcu(sk, hlist) { in raw_sock_get() 145 struct hlist_head *hlist; in raw_diag_dump() local 161 hlist = &hashinfo->ht[slot]; in raw_diag_dump() 162 sk_for_each_rcu(sk, hlist) { in raw_diag_dump()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | vporttbl.c | 18 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 D | indir_table.c | 30 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 D | en_arfs.c | 89 struct hlist_node hlist; member 104 hlist_for_each_entry_safe(hn, tmp, &hash[j], hlist) 439 hlist_del_init(&arfs_rule->hlist); in arfs_may_expire_flow() 440 hlist_add_head(&arfs_rule->hlist, &del_list); in arfs_may_expire_flow() 446 hlist_for_each_entry_safe(arfs_rule, htmp, &del_list, hlist) { in arfs_may_expire_flow() 451 hlist_del(&arfs_rule->hlist); in arfs_may_expire_flow() 469 hlist_del_init(&rule->hlist); in arfs_del_rules() 470 hlist_add_head(&rule->hlist, &del_list); in arfs_del_rules() 474 hlist_for_each_entry_safe(rule, htmp, &del_list, hlist) { in arfs_del_rules() 478 hlist_del(&rule->hlist); in arfs_del_rules() [all …]
|
/linux/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_encap.c | 112 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/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | mod_hdr.c | 45 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()
|
H A D | tc_tun_encap.c | 64 struct hlist_node hlist; member 524 hash_del_rcu(&d->hlist); in mlx5e_decap_put() 584 hash_del_rcu(&d->hlist); in mlx5e_detach_decap() 684 hlist, hash_key) { in mlx5e_decap_get() 992 hash_add_rcu(esw->offloads.decap_tbl, &d->hlist, hash_key); in mlx5e_attach_decap() 1148 hash_del_rcu(&r->hlist); in mlx5e_route_put() 1162 hash_del_rcu(&r->hlist); in mlx5e_route_put_locked() 1173 hash_for_each_possible(encap->route_tbl, r, hlist, hash_key) { in mlx5e_route_get() 1224 hash_add(encap->route_tbl, &r->hlist, hash_key); in mlx5e_route_get_create() 1426 hash_del_rcu(&r->hlist); in mlx5e_detach_decap_route() [all …]
|
/linux/fs/smb/server/mgmt/ |
H A D | user_session.c | 167 hash_for_each_possible(sessions_table, sess, hlist, id) { in __session_lookup() 189 hash_del(&sess->hlist); in ksmbd_expire_session() 229 hash_for_each_safe(sessions_table, bkt, tmp, sess, hlist) { in ksmbd_sessions_deregister() 232 hash_del(&sess->hlist); in ksmbd_sessions_deregister() 251 hash_del(&sess->hlist); in ksmbd_sessions_deregister() 429 hash_add(sessions_table, &sess->hlist, sess->id); in __session_create()
|
H A D | share_config.c | 59 hash_del(&share->hlist); in ksmbd_share_config_del() 82 hash_for_each_possible(shares_table, share, hlist, key) { in __share_lookup() 214 hash_add(shares_table, &share->hlist, share_name_hash(name)); in share_config_request()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | sample.c | 35 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/drivers/net/vxlan/ |
H A D | vxlan_vnifilter.c | 49 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() 915 hlist_del_init_rcu(&v->hlist4.hlist); in vxlan_vnigroup_uninit() [all …]
|
/linux/fs/smb/client/ |
H A D | dfs_cache.c | 39 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/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
H A D | ipoib_vlan.c | 40 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 D | if_team.h | 30 struct hlist_node hlist; /* node in enabled ports hash list */ member 257 hlist_for_each_entry(port, head, hlist) in team_get_port_by_index() 278 hlist_for_each_entry_rcu(port, head, hlist) in team_get_port_by_index_rcu()
|
/linux/fs/dlm/ |
H A D | midcomms.c | 194 struct hlist_node hlist; member 278 hlist_for_each_entry_rcu(node, &node_hash[r], hlist) { in __find_node() 368 hlist_add_head_rcu(&node->hlist, &node_hash[r]); in dlm_midcomms_addr() 1168 hlist_for_each_entry_rcu(node, &node_hash[i], hlist) { in dlm_midcomms_exit() 1172 hlist_del_rcu(&node->hlist); in dlm_midcomms_exit() 1328 hlist_for_each_entry_rcu(node, &node_hash[i], hlist) { in dlm_midcomms_version_wait() 1399 hlist_for_each_entry_rcu(node, &node_hash[i], hlist) { in dlm_midcomms_shutdown() 1407 hlist_for_each_entry_rcu(node, &node_hash[i], hlist) { in dlm_midcomms_shutdown() 1445 hlist_del_rcu(&node->hlist); in dlm_midcomms_close()
|
/linux/drivers/md/persistent-data/ |
H A D | dm-transaction-manager.c | 80 struct hlist_node hlist; global() member
|
/linux/net/l2tp/ |
H A D | l2tp_core.c | 261 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() 501 if (!hash_hashed(&session2->hlist)) in l2tp_session_collision_add() 502 hash_add_rcu(pn->l2tp_v3_session_htable, &session2->hlist, in l2tp_session_collision_add() 506 hash_add_rcu(pn->l2tp_v3_session_htable, &session1->hlist, in l2tp_session_collision_add() 523 hash_del_rcu(&session->hlist); in l2tp_session_collision_del() 1360 if (hash_hashed(&session->hlist)) in l2tp_session_unhash() [all …]
|
/linux/drivers/net/ |
H A D | macvlan.c | 60 struct hlist_node hlist; member 130 hlist_for_each_entry_rcu(vlan, &port->vlan_hash[idx], hlist, in macvlan_hash_lookup() 146 hlist_for_each_entry_rcu(entry, h, hlist, lockdep_rtnl_is_held()) { in macvlan_hash_lookup_source() 172 hlist_add_head_rcu(&entry->hlist, h); in macvlan_hash_add_source() 184 hlist_add_head_rcu(&vlan->hlist, &port->vlan_hash[idx]); in macvlan_hash_add() 189 hlist_del_rcu(&entry->hlist); in macvlan_hash_del_source() 195 hlist_del_rcu(&vlan->hlist); in macvlan_hash_del() 277 hash_for_each_rcu(port->vlan_hash, i, vlan, hlist) { in macvlan_broadcast() 391 hash_for_each_safe(port->vlan_source_hash, i, next, entry, hlist) in macvlan_flush_sources() 433 hlist_for_each_entry_rcu(entry, h, hlist) { in macvlan_forward_source() [all …]
|
/linux/net/mctp/ |
H A D | route.c | 147 hlist_for_each_entry(key, &net->mctp.keys, hlist) { in mctp_lookup_key() 226 hlist_for_each_entry(tmp, &net->mctp.keys, hlist) { in mctp_key_add() 243 hlist_add_head(&key->hlist, &net->mctp.keys); in mctp_key_add() 278 if (!hlist_unhashed(&key->hlist)) { in __mctp_key_done_in() 279 hlist_del_init(&key->hlist); in __mctp_key_done_in() 661 hlist_add_head_rcu(&key->hlist, &mns->keys); in mctp_reserve_tag() 697 hlist_for_each_entry(tmp, &mns->keys, hlist) { in mctp_alloc_local_tag() 768 hlist_for_each_entry(tmp, &mns->keys, hlist) { in mctp_lookup_prealloc_tag()
|