/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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 | 327 struct rhash_lock_head __rcu **bkt) in rht_lock() argument 330 bit_spin_lock(0, (unsigned long *)bkt); in rht_lock() 344 struct rhash_lock_head __rcu **bkt) in rht_unlock() argument 347 bit_spin_unlock(0, (unsigned long *)bkt); in rht_unlock() 352 struct rhash_lock_head *p, struct rhash_lock_head __rcu *const *bkt) in __rht_ptr() argument 356 (unsigned long)RHT_NULLS_MARKER(bkt)); in __rht_ptr() 367 struct rhash_lock_head __rcu *const *bkt) in rht_ptr_rcu() argument 369 return __rht_ptr(rcu_dereference(*bkt), bkt); in rht_ptr_rcu() 373 struct rhash_lock_head __rcu *const *bkt, in rht_ptr() argument 377 return __rht_ptr(rht_dereference_bucket(*bkt, tbl, hash), bkt); in rht_ptr() [all …]
|
/kernel/linux/linux-5.10/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)
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | hashmap.h | 155 #define hashmap__for_each_entry(map, cur, bkt) \ argument 156 for (bkt = 0; bkt < map->cap; bkt++) \ 157 for (cur = map->buckets[bkt]; cur; cur = cur->next) 167 #define hashmap__for_each_entry_safe(map, cur, tmp, bkt) \ argument 168 for (bkt = 0; bkt < map->cap; bkt++) \ 169 for (cur = map->buckets[bkt]; \
|
D | hashmap.c | 66 size_t bkt; in hashmap__clear() local 68 hashmap__for_each_entry_safe(map, cur, tmp, bkt) { in hashmap__clear() 106 size_t h, bkt; in hashmap_grow() local 117 hashmap__for_each_entry_safe(map, cur, tmp, bkt) { in hashmap_grow()
|
D | expr.c | 186 size_t bkt; in expr__ctx_clear() local 188 hashmap__for_each_entry((&ctx->ids), cur, bkt) { in expr__ctx_clear()
|
D | metricgroup.c | 606 size_t bkt; in metricgroup__add_metric_weak_group() local 609 hashmap__for_each_entry((&ctx->ids), cur, bkt) { in metricgroup__add_metric_weak_group() 637 size_t bkt; in metricgroup__add_metric_non_group() local 640 hashmap__for_each_entry((&ctx->ids), cur, bkt) { in metricgroup__add_metric_non_group() 877 size_t bkt; in __resolve_metric() local 887 hashmap__for_each_entry((&m->pctx.ids), cur, bkt) { in __resolve_metric()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | hashmap.h | 155 #define hashmap__for_each_entry(map, cur, bkt) \ argument 156 for (bkt = 0; bkt < map->cap; bkt++) \ 157 for (cur = map->buckets[bkt]; cur; cur = cur->next) 167 #define hashmap__for_each_entry_safe(map, cur, tmp, bkt) \ argument 168 for (bkt = 0; bkt < map->cap; bkt++) \ 169 for (cur = map->buckets[bkt]; \
|
D | hashmap.c | 66 size_t bkt; in hashmap__clear() local 68 hashmap__for_each_entry_safe(map, cur, tmp, bkt) { in hashmap__clear() 106 size_t h, bkt; in hashmap_grow() local 117 hashmap__for_each_entry_safe(map, cur, tmp, bkt) { in hashmap_grow()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | hashmap.c | 46 int err, bkt, found_cnt, i; in test_hashmap_generic() local 94 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_generic() 142 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() 236 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_generic() 244 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_generic() 266 int err, bkt; in test_hashmap_multimap() local 304 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_multimap() 336 int bkt; in test_hashmap_empty() local 359 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_empty()
|
/kernel/linux/linux-5.10/lib/ |
D | rhashtable.c | 225 struct rhash_lock_head __rcu **bkt, in rhashtable_rehash_one() argument 240 rht_for_each_from(entry, rht_ptr(bkt, old_tbl, old_hash), in rhashtable_rehash_one() 268 rht_assign_locked(bkt, next); in rhashtable_rehash_one() 278 struct rhash_lock_head __rcu **bkt = rht_bucket_var(old_tbl, old_hash); in rhashtable_rehash_chain() local 281 if (!bkt) in rhashtable_rehash_chain() 283 rht_lock(old_tbl, bkt); in rhashtable_rehash_chain() 285 while (!(err = rhashtable_rehash_one(ht, bkt, old_hash))) in rhashtable_rehash_chain() 290 rht_unlock(old_tbl, bkt); in rhashtable_rehash_chain() 488 struct rhash_lock_head __rcu **bkt, in rhashtable_lookup_one() argument 501 rht_for_each_from(head, rht_ptr(bkt, tbl, hash), tbl, hash) { in rhashtable_lookup_one() [all …]
|
/kernel/linux/linux-5.10/drivers/s390/crypto/ |
D | ap_card.c | 80 int bkt; in request_count_store() local 85 hash_for_each(ap_queues, bkt, aq, hnode) in request_count_store() 99 int bkt; in requestq_count_show() local 106 hash_for_each(ap_queues, bkt, aq, hnode) in requestq_count_show() 118 int bkt; in pendingq_count_show() local 125 hash_for_each(ap_queues, bkt, aq, hnode) in pendingq_count_show()
|
D | ap_bus.c | 430 int bkt; in ap_tasklet_fn() local 442 hash_for_each(ap_queues, bkt, aq, hnode) { in ap_tasklet_fn() 454 int bkt; in ap_pending_requests() local 458 hash_for_each(ap_queues, bkt, aq, hnode) { in ap_pending_requests() 751 int bkt; in ap_get_qdev() local 755 hash_for_each(ap_queues, bkt, aq, hnode) { in ap_get_qdev()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | calipso.c | 203 u32 bkt; in calipso_cache_check() local 212 bkt = hash & (CALIPSO_CACHE_BUCKETS - 1); in calipso_cache_check() 213 spin_lock_bh(&calipso_cache[bkt].lock); in calipso_cache_check() 214 list_for_each_entry(entry, &calipso_cache[bkt].list, list) { in calipso_cache_check() 224 spin_unlock_bh(&calipso_cache[bkt].lock); in calipso_cache_check() 239 spin_unlock_bh(&calipso_cache[bkt].lock); in calipso_cache_check() 244 spin_unlock_bh(&calipso_cache[bkt].lock); in calipso_cache_check() 268 u32 bkt; in calipso_cache_add() local 291 bkt = entry->hash & (CALIPSO_CACHE_BUCKETS - 1); in calipso_cache_add() 292 spin_lock_bh(&calipso_cache[bkt].lock); in calipso_cache_add() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
D | pmu-events.c | 478 size_t bkt; in test_parsing() local 499 hashmap__for_each_entry((&ctx.ids), cur, bkt) in test_parsing() 502 hashmap__for_each_entry((&ctx.ids), cur, bkt) { in test_parsing() 537 size_t bkt; in metric_parse_fake() local 554 hashmap__for_each_entry((&ctx.ids), cur, bkt) in metric_parse_fake() 557 hashmap__for_each_entry((&ctx.ids), cur, bkt) { in metric_parse_fake()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | vxlan.c | 184 int bkt; in mlx5_vxlan_reset_to_default() local 189 hash_for_each_safe(vxlan->htable, bkt, tmp, vxlanp, hlist) { in mlx5_vxlan_reset_to_default()
|
/kernel/linux/linux-5.10/net/netlabel/ |
D | netlabel_domainhash.c | 140 u32 bkt; in netlbl_domhsh_search() local 145 bkt = netlbl_domhsh_hash(domain); in netlbl_domhsh_search() 146 bkt_list = &netlbl_domhsh_rcu_deref(netlbl_domhsh)->tbl[bkt]; in netlbl_domhsh_search() 436 u32 bkt = netlbl_domhsh_hash(entry->domain); in netlbl_domhsh_add() local 438 &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() 314 u32 bkt; in netlbl_unlhsh_add_iface() local 328 bkt = netlbl_unlhsh_hash(ifindex); in netlbl_unlhsh_add_iface() 332 &netlbl_unlhsh_rcu_deref(netlbl_unlhsh)->tbl[bkt]); in netlbl_unlhsh_add_iface()
|
/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
D | pids.c | 169 unsigned int bkt; in delete_obj_refs_table() local 171 hash_for_each_safe(table->table, bkt, tmp, refs, node) { in delete_obj_refs_table()
|
/kernel/linux/linux-5.10/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 …]
|