/Linux-v5.4/arch/mips/netlogic/xlr/ |
D | fmn-config.c | 50 int bkt; in print_credit_config() local 54 for (bkt = 0; bkt < 16; bkt++) in print_credit_config() 56 xlr_board_fmn_config.bucket_size[(bkt * 8) + 0], in print_credit_config() 57 xlr_board_fmn_config.bucket_size[(bkt * 8) + 1], in print_credit_config() 58 xlr_board_fmn_config.bucket_size[(bkt * 8) + 2], in print_credit_config() 59 xlr_board_fmn_config.bucket_size[(bkt * 8) + 3], in print_credit_config() 60 xlr_board_fmn_config.bucket_size[(bkt * 8) + 4], in print_credit_config() 61 xlr_board_fmn_config.bucket_size[(bkt * 8) + 5], in print_credit_config() 62 xlr_board_fmn_config.bucket_size[(bkt * 8) + 6], in print_credit_config() 63 xlr_board_fmn_config.bucket_size[(bkt * 8) + 7]); in print_credit_config() [all …]
|
/Linux-v5.4/include/linux/ |
D | hashtable.h | 126 #define hash_for_each(name, bkt, obj, member) \ argument 127 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ 128 (bkt)++)\ 129 hlist_for_each_entry(obj, &name[bkt], member) 138 #define hash_for_each_rcu(name, bkt, obj, member) \ argument 139 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ 140 (bkt)++)\ 141 hlist_for_each_entry_rcu(obj, &name[bkt], member) 152 #define hash_for_each_safe(name, bkt, tmp, obj, member) \ argument 153 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ [all …]
|
D | rhashtable.h | 328 struct rhash_lock_head **bkt) in rht_lock() argument 331 bit_spin_lock(0, (unsigned long *)bkt); in rht_lock() 345 struct rhash_lock_head **bkt) in rht_unlock() argument 348 bit_spin_unlock(0, (unsigned long *)bkt); in rht_unlock() 353 struct rhash_lock_head *const *bkt) in __rht_ptr() argument 356 ((unsigned long)*bkt & ~BIT(0) ?: in __rht_ptr() 357 (unsigned long)RHT_NULLS_MARKER(bkt)); in __rht_ptr() 368 struct rhash_lock_head *const *bkt) in rht_ptr_rcu() argument 370 struct rhash_head __rcu *p = __rht_ptr(bkt); in rht_ptr_rcu() 376 struct rhash_lock_head *const *bkt, in rht_ptr() argument [all …]
|
/Linux-v5.4/tools/lib/bpf/ |
D | hashmap.h | 138 #define hashmap__for_each_entry(map, cur, bkt) \ argument 139 for (bkt = 0; bkt < map->cap; bkt++) \ 140 for (cur = map->buckets[bkt]; cur; cur = cur->next) 150 #define hashmap__for_each_entry_safe(map, cur, tmp, bkt) \ argument 151 for (bkt = 0; bkt < map->cap; bkt++) \ 152 for (cur = map->buckets[bkt]; \ 163 for (cur = ({ size_t bkt = hash_bits(map->hash_fn((_key), map->ctx),\ 165 map->buckets ? map->buckets[bkt] : NULL; }); \ 171 for (cur = ({ size_t bkt = hash_bits(map->hash_fn((_key), map->ctx),\ 173 cur = map->buckets ? map->buckets[bkt] : NULL; }); \
|
D | hashmap.c | 94 int bkt; in hashmap_grow() local 105 hashmap__for_each_entry_safe(map, cur, tmp, bkt) { in hashmap_grow()
|
/Linux-v5.4/tools/include/linux/ |
D | hashtable.h | 105 #define hash_for_each(name, bkt, obj, member) \ argument 106 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ 107 (bkt)++)\ 108 hlist_for_each_entry(obj, &name[bkt], member) 119 #define hash_for_each_safe(name, bkt, tmp, obj, member) \ argument 120 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ 121 (bkt)++)\ 122 hlist_for_each_entry_safe(obj, tmp, &name[bkt], member)
|
/Linux-v5.4/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_internal.h | 280 #define vnic_hash_for_each_safe(name, bkt, tmp, obj, member) \ argument 281 for ((bkt) = 0, obj = NULL; \ 282 !obj && (bkt) < OPA_VNIC_MAC_TBL_SIZE; (bkt)++) \ 283 hlist_for_each_entry_safe(obj, tmp, &name[bkt], member) 289 #define vnic_hash_for_each(name, bkt, obj, member) \ argument 290 for ((bkt) = 0, obj = NULL; \ 291 !obj && (bkt) < OPA_VNIC_MAC_TBL_SIZE; (bkt)++) \ 292 hlist_for_each_entry(obj, &name[bkt], member)
|
D | opa_vnic_encap.c | 107 int bkt; in opa_vnic_free_mac_tbl() local 112 vnic_hash_for_each_safe(mactbl, bkt, tmp, node, hlist) { in opa_vnic_free_mac_tbl() 157 int bkt; in opa_vnic_query_mac_tbl() local 168 vnic_hash_for_each(mactbl, bkt, node, hlist) { in opa_vnic_query_mac_tbl() 209 int i, bkt, rc = 0; in opa_vnic_update_mac_tbl() local 263 vnic_hash_for_each(old_mactbl, bkt, node, hlist) { in opa_vnic_update_mac_tbl()
|
/Linux-v5.4/tools/testing/selftests/bpf/ |
D | test_hashmap.c | 55 int err, bkt, found_cnt, i; in test_hashmap_generic() local 101 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_generic() 144 hashmap__for_each_entry_safe(map, entry, tmp, bkt) { in test_hashmap_generic() 201 hashmap__for_each_entry_safe(map, entry, tmp, bkt) { in test_hashmap_generic() 235 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_generic() 242 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_generic() 263 int err, bkt; in test_hashmap_multimap() local 303 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_multimap() 335 int bkt; in test_hashmap_empty() local 357 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_empty()
|
/Linux-v5.4/lib/ |
D | rhashtable.c | 216 struct rhash_lock_head **bkt, in rhashtable_rehash_one() argument 231 rht_for_each_from(entry, rht_ptr(bkt, old_tbl, old_hash), in rhashtable_rehash_one() 259 rht_assign_locked(bkt, next); in rhashtable_rehash_one() 269 struct rhash_lock_head **bkt = rht_bucket_var(old_tbl, old_hash); in rhashtable_rehash_chain() local 272 if (!bkt) in rhashtable_rehash_chain() 274 rht_lock(old_tbl, bkt); in rhashtable_rehash_chain() 276 while (!(err = rhashtable_rehash_one(ht, bkt, old_hash))) in rhashtable_rehash_chain() 281 rht_unlock(old_tbl, bkt); in rhashtable_rehash_chain() 479 struct rhash_lock_head **bkt, in rhashtable_lookup_one() argument 492 rht_for_each_from(head, rht_ptr(bkt, tbl, hash), tbl, hash) { in rhashtable_lookup_one() [all …]
|
/Linux-v5.4/net/ipv6/ |
D | calipso.c | 200 u32 bkt; in calipso_cache_check() local 209 bkt = hash & (CALIPSO_CACHE_BUCKETS - 1); in calipso_cache_check() 210 spin_lock_bh(&calipso_cache[bkt].lock); in calipso_cache_check() 211 list_for_each_entry(entry, &calipso_cache[bkt].list, list) { in calipso_cache_check() 221 spin_unlock_bh(&calipso_cache[bkt].lock); in calipso_cache_check() 236 spin_unlock_bh(&calipso_cache[bkt].lock); in calipso_cache_check() 241 spin_unlock_bh(&calipso_cache[bkt].lock); in calipso_cache_check() 265 u32 bkt; in calipso_cache_add() local 288 bkt = entry->hash & (CALIPSO_CACHE_BUCKETS - 1); in calipso_cache_add() 289 spin_lock_bh(&calipso_cache[bkt].lock); in calipso_cache_add() [all …]
|
/Linux-v5.4/net/ipv4/ |
D | cipso_ipv4.c | 238 u32 bkt; in cipso_v4_cache_check() local 247 bkt = hash & (CIPSO_V4_CACHE_BUCKETS - 1); in cipso_v4_cache_check() 248 spin_lock_bh(&cipso_v4_cache[bkt].lock); in cipso_v4_cache_check() 249 list_for_each_entry(entry, &cipso_v4_cache[bkt].list, list) { in cipso_v4_cache_check() 259 spin_unlock_bh(&cipso_v4_cache[bkt].lock); in cipso_v4_cache_check() 274 spin_unlock_bh(&cipso_v4_cache[bkt].lock); in cipso_v4_cache_check() 279 spin_unlock_bh(&cipso_v4_cache[bkt].lock); in cipso_v4_cache_check() 301 u32 bkt; in cipso_v4_cache_add() local 324 bkt = entry->hash & (CIPSO_V4_CACHE_BUCKETS - 1); in cipso_v4_cache_add() 325 spin_lock_bh(&cipso_v4_cache[bkt].lock); in cipso_v4_cache_add() [all …]
|
/Linux-v5.4/net/sched/ |
D | cls_route.c | 54 struct route4_bucket *bkt; member 326 b = f->bkt; in route4_delete() 454 f->bkt = b; in route4_set_parms() 508 f->bkt = fold->bkt; in route4_change() 518 fp = &f->bkt->ht[h]; in route4_change()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | vxlan.c | 219 int bkt; in mlx5_vxlan_destroy() local 225 hash_for_each_safe(vxlan->htable, bkt, tmp, vxlanp, hlist) { in mlx5_vxlan_destroy()
|
/Linux-v5.4/net/netlabel/ |
D | netlabel_domainhash.c | 139 u32 bkt; in netlbl_domhsh_search() local 144 bkt = netlbl_domhsh_hash(domain); in netlbl_domhsh_search() 145 bkt_list = &netlbl_domhsh_rcu_deref(netlbl_domhsh)->tbl[bkt]; in netlbl_domhsh_search() 434 u32 bkt = netlbl_domhsh_hash(entry->domain); in netlbl_domhsh_add() local 436 &rcu_dereference(netlbl_domhsh)->tbl[bkt]); in netlbl_domhsh_add()
|
D | netlabel_unlabeled.c | 204 u32 bkt; in netlbl_unlhsh_search_iface() local 208 bkt = netlbl_unlhsh_hash(ifindex); in netlbl_unlhsh_search_iface() 209 bkt_list = &netlbl_unlhsh_rcu_deref(netlbl_unlhsh)->tbl[bkt]; in netlbl_unlhsh_search_iface() 313 u32 bkt; in netlbl_unlhsh_add_iface() local 327 bkt = netlbl_unlhsh_hash(ifindex); in netlbl_unlhsh_add_iface() 331 &netlbl_unlhsh_rcu_deref(netlbl_unlhsh)->tbl[bkt]); in netlbl_unlhsh_add_iface()
|
/Linux-v5.4/drivers/net/ethernet/rocker/ |
D | rocker_ofdpa.c | 1952 int bkt; in ofdpa_port_fdb_flush() local 1963 hash_for_each_safe(ofdpa->fdb_tbl, bkt, tmp, found, entry) { in ofdpa_port_fdb_flush() 1993 int bkt; in ofdpa_fdb_cleanup() local 1997 hash_for_each_safe(ofdpa->fdb_tbl, bkt, tmp, entry, entry) { in ofdpa_fdb_cleanup() 2386 int bkt; in ofdpa_fini() local 2392 hash_for_each_safe(ofdpa->flow_tbl, bkt, tmp, flow_entry, entry) in ofdpa_fini() 2397 hash_for_each_safe(ofdpa->group_tbl, bkt, tmp, group_entry, entry) in ofdpa_fini() 2402 hash_for_each_safe(ofdpa->fdb_tbl, bkt, tmp, fdb_entry, entry) in ofdpa_fini() 2407 hash_for_each_safe(ofdpa->internal_vlan_tbl, bkt, in ofdpa_fini() 2413 hash_for_each_safe(ofdpa->neigh_tbl, bkt, tmp, neigh_entry, entry) in ofdpa_fini() [all …]
|
/Linux-v5.4/tools/bpf/bpftool/ |
D | common.c | 427 unsigned int bkt; in delete_pinned_obj_table() local 429 hash_for_each_safe(tab->table, bkt, tmp, obj, hash) { in delete_pinned_obj_table()
|
D | btf.c | 568 unsigned int bkt; in delete_btf_table() local 570 hash_for_each_safe(tab->table, bkt, tmp, obj, hash) { in delete_btf_table()
|
/Linux-v5.4/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.c | 1132 int bkt; in i40e_config_vf_promiscuous_mode() local 1169 hash_for_each(vsi->mac_filter_hash, bkt, f, hlist) { in i40e_config_vf_promiscuous_mode() 1985 int num_vlans = 0, bkt; in i40e_getnum_vf_vsi_vlan_filters() local 1987 hash_for_each(vsi->mac_filter_hash, bkt, f, hlist) { in i40e_getnum_vf_vsi_vlan_filters() 3121 int bkt; in i40e_validate_cloud_filter() local 3159 hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, in i40e_validate_cloud_filter() 3951 int bkt; in i40e_ndo_set_vf_mac() local 4007 hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist) in i40e_ndo_set_vf_mac()
|
D | i40e_main.c | 1235 int bkt, new_vlan; in i40e_correct_mac_vlan_filters() local 1262 hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist) { in i40e_correct_mac_vlan_filters() 1474 int bkt; in i40e_add_mac_filter() local 1483 hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist) { in i40e_add_mac_filter() 1509 int bkt; in i40e_del_mac_filter() local 1512 hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist) { in i40e_del_mac_filter() 2279 int bkt; in i40e_sync_vsi_filters() local 2309 hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist) { in i40e_sync_vsi_filters() 2486 hash_for_each(vsi->mac_filter_hash, bkt, f, hlist) { in i40e_sync_vsi_filters() 2765 int bkt; in i40e_add_vlan_all_mac() local [all …]
|
D | i40e_debugfs.c | 114 int i, bkt; in i40e_dbg_dump_vsi_seid() local 147 hash_for_each(vsi->mac_filter_hash, bkt, f, hlist) { in i40e_dbg_dump_vsi_seid()
|
/Linux-v5.4/kernel/ |
D | workqueue.c | 4636 int bkt; in show_pwq() local 4644 hash_for_each(pool->busy_hash, bkt, worker, hentry) { in show_pwq() 4654 hash_for_each(pool->busy_hash, bkt, worker, hentry) { in show_pwq() 5950 int cpu, bkt; in workqueue_init() local 5988 hash_for_each(unbound_pool_hash, bkt, pool, hash_node) in workqueue_init()
|
/Linux-v5.4/drivers/staging/netlogic/ |
D | xlr_net.c | 96 static void xlr_net_fmn_handler(int bkt, int src_stnid, int size, int code, in xlr_net_fmn_handler() argument
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_tc.c | 4042 int bkt; in mlx5e_tc_hairpin_update_dead_peer() local 4050 hash_for_each(priv->fs.tc.hairpin_tbl, bkt, hpe, hairpin_hlist) in mlx5e_tc_hairpin_update_dead_peer()
|