| /OK3568_Linux_fs/kernel/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 | 49 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()
|
| /OK3568_Linux_fs/kernel/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() 828 newsk = pep_find_pipe(&pn->hlist, &dst, pipe_handle); in pep_sock_accept() 876 sk_add_node(newsk, &pn->hlist); in pep_sock_accept() 966 INIT_HLIST_HEAD(&pn->hlist); in pep_init() 1317 if (hlist_empty(&pn->hlist)) in pep_sock_unhash()
|
| /OK3568_Linux_fs/kernel/mm/ |
| H A D | mmu_notifier.c | 316 hlist_for_each_entry_rcu(subscription, &subscriptions->list, hlist, in mn_hlist_release() 330 struct mmu_notifier, hlist); in mn_hlist_release() 337 hlist_del_init_rcu(&subscription->hlist); in mn_hlist_release() 380 &mm->notifier_subscriptions->list, hlist, in __mmu_notifier_clear_flush_young() 400 &mm->notifier_subscriptions->list, hlist, in __mmu_notifier_clear_young() 419 &mm->notifier_subscriptions->list, hlist, in __mmu_notifier_test_young() 441 &mm->notifier_subscriptions->list, hlist, in __mmu_notifier_change_pte() 490 hlist_for_each_entry_rcu(subscription, &subscriptions->list, hlist, in mn_hlist_invalidate_range_start() 529 hlist, srcu_read_lock_held(&srcu)) { in mn_hlist_invalidate_range_start() 566 hlist_for_each_entry_rcu(subscription, &subscriptions->list, hlist, in mn_hlist_invalidate_end() [all …]
|
| H A D | ksm.c | 166 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() 930 &stable_node->hlist, hlist_dup) { in remove_stable_node_chain() 935 BUG_ON(!hlist_empty(&stable_node->hlist)); in remove_stable_node_chain() [all …]
|
| /OK3568_Linux_fs/kernel/kernel/ |
| H A D | kprobes.c | 370 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() 889 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_arfs.c | 58 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 …]
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | mod_hdr.c | 45 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()
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/drivers/md/persistent-data/ |
| H A D | dm-transaction-manager.c | 78 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()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | if_team.h | 30 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()
|
| /OK3568_Linux_fs/kernel/fs/cifs/ |
| H A D | dfs_cache.c | 37 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 …]
|
| /OK3568_Linux_fs/kernel/net/sched/ |
| H A D | cls_u32.c | 86 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() 971 RCU_INIT_POINTER(ht->next, tp_c->hlist); in u32_change() 972 rcu_assign_pointer(tp_c->hlist, ht); in u32_change() [all …]
|
| /OK3568_Linux_fs/kernel/fs/nfs/ |
| H A D | nfs42xattr.c | 63 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/ |
| H A D | macvlan.c | 57 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, lockdep_rtnl_is_held()) { 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ipsec.c | 67 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()
|
| /OK3568_Linux_fs/kernel/kernel/bpf/ |
| H A D | trampoline.c | 70 hlist_for_each_entry(tr, head, hlist) { in bpf_trampoline_lookup() 81 INIT_HLIST_NODE(&tr->hlist); in bpf_trampoline_lookup() 82 hlist_add_head(&tr->hlist, head); in bpf_trampoline_lookup() 495 hlist_del(&tr->hlist); in bpf_trampoline_put()
|
| /OK3568_Linux_fs/kernel/net/decnet/ |
| H A D | dn_table.c | 509 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()
|
| /OK3568_Linux_fs/kernel/net/l2tp/ |
| H A D | l2tp_core.c | 254 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() 1174 hlist_del_init(&session->hlist); in l2tp_session_unhash() 1203 session = hlist_entry(walk, struct l2tp_session, hlist); in l2tp_tunnel_closeall() 1204 hlist_del_init(&session->hlist); in l2tp_tunnel_closeall() 1608 INIT_HLIST_NODE(&session->hlist); in l2tp_session_create()
|
| /OK3568_Linux_fs/external/rknpu2/examples/librknn_api_android_demo/include/stb/ |
| H A D | stb_image_write.h | 889 unsigned char **hlist = hash_table[h]; in stbi_zlib_compress() 890 int n = stbiw__sbcount(hlist); in stbi_zlib_compress() 892 if (hlist[j]-data > i-32768) { // if entry lies within window in stbi_zlib_compress() 893 int d = stbiw__zlib_countm(hlist[j], data+i, data_len-i); in stbi_zlib_compress() 894 if (d >= best) { best=d; bestloc=hlist[j]; } in stbi_zlib_compress() 907 hlist = hash_table[h]; in stbi_zlib_compress() 908 n = stbiw__sbcount(hlist); in stbi_zlib_compress() 910 if (hlist[j]-data > i-32767) { in stbi_zlib_compress() 911 int e = stbiw__zlib_countm(hlist[j], data+i+1, data_len-i-1); in stbi_zlib_compress()
|
| /OK3568_Linux_fs/external/rknpu2/examples/3rdparty/stb/ |
| H A D | stb_image_write.h | 889 unsigned char **hlist = hash_table[h]; in stbi_zlib_compress() 890 int n = stbiw__sbcount(hlist); in stbi_zlib_compress() 892 if (hlist[j]-data > i-32768) { // if entry lies within window in stbi_zlib_compress() 893 int d = stbiw__zlib_countm(hlist[j], data+i, data_len-i); in stbi_zlib_compress() 894 if (d >= best) { best=d; bestloc=hlist[j]; } in stbi_zlib_compress() 907 hlist = hash_table[h]; in stbi_zlib_compress() 908 n = stbiw__sbcount(hlist); in stbi_zlib_compress() 910 if (hlist[j]-data > i-32767) { in stbi_zlib_compress() 911 int e = stbiw__zlib_countm(hlist[j], data+i+1, data_len-i-1); in stbi_zlib_compress()
|
| /OK3568_Linux_fs/kernel/net/netfilter/ |
| H A D | nfnetlink_log.c | 57 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() 829 hlist_for_each_entry_safe(inst, t2, head, hlist) { in nfulnl_rcv_nl_event()
|
| /OK3568_Linux_fs/kernel/net/ipv4/ |
| H A D | ping.c | 80 struct hlist_nulls_head *hlist; in ping_get_port() local 93 hlist = ping_hashslot(&ping_table, sock_net(sk), in ping_get_port() 95 ping_portaddr_for_each_entry(sk2, node, hlist) { in ping_get_port() 111 hlist = ping_hashslot(&ping_table, sock_net(sk), ident); in ping_get_port() 112 ping_portaddr_for_each_entry(sk2, node, hlist) { in ping_get_port() 131 hlist_nulls_add_head(&sk->sk_nulls_node, hlist); in ping_get_port()
|