/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_icm_pool.c | 43 struct mlx5dr_icm_bucket *buckets; member 335 hot_size += pool->buckets[chunk_order].hot_list_count * in dr_icm_hot_mem_size() 376 bool buckets[DR_CHUNK_SIZE_MAX]) in dr_icm_chill_buckets_start() 382 bucket = &pool->buckets[i]; in dr_icm_chill_buckets_start() 393 buckets[i] = true; in dr_icm_chill_buckets_start() 400 bool buckets[DR_CHUNK_SIZE_MAX]) in dr_icm_chill_buckets_end() 406 bucket = &pool->buckets[i]; in dr_icm_chill_buckets_end() 412 if (!buckets[i]) in dr_icm_chill_buckets_end() 422 bool buckets[DR_CHUNK_SIZE_MAX]) in dr_icm_chill_buckets_abort() 428 bucket = &pool->buckets[ in dr_icm_chill_buckets_abort() 374 dr_icm_chill_buckets_start(struct mlx5dr_icm_pool *pool, struct mlx5dr_icm_bucket *cb, bool buckets[DR_CHUNK_SIZE_MAX]) dr_icm_chill_buckets_start() argument 398 dr_icm_chill_buckets_end(struct mlx5dr_icm_pool *pool, struct mlx5dr_icm_bucket *cb, bool buckets[DR_CHUNK_SIZE_MAX]) dr_icm_chill_buckets_end() argument 420 dr_icm_chill_buckets_abort(struct mlx5dr_icm_pool *pool, struct mlx5dr_icm_bucket *cb, bool buckets[DR_CHUNK_SIZE_MAX]) dr_icm_chill_buckets_abort() argument 450 bool buckets[DR_CHUNK_SIZE_MAX] = {}; mlx5dr_icm_alloc_chunk() local [all...] |
/kernel/linux/linux-5.10/drivers/s390/scsi/ |
H A D | zfcp_reqlist.h | 14 /* number of hash buckets */ 20 * @buckets: Array of hashbuckets, each is a list of requests in this bucket 24 struct list_head buckets[ZFCP_REQ_LIST_BUCKETS]; member 50 INIT_LIST_HEAD(&rl->buckets[i]); in zfcp_reqlist_alloc() 66 if (!list_empty(&rl->buckets[i])) in zfcp_reqlist_isempty() 90 list_for_each_entry(req, &rl->buckets[i], list) in _zfcp_reqlist_find() 163 list_add_tail(&req->list, &rl->buckets[i]); in zfcp_reqlist_add() 180 list_splice_init(&rl->buckets[i], list); in zfcp_reqlist_move() 207 list_for_each_entry(req, &rl->buckets[i], list) in zfcp_reqlist_apply_for_all()
|
/kernel/linux/linux-6.6/drivers/s390/scsi/ |
H A D | zfcp_reqlist.h | 16 /* number of hash buckets */ 22 * @buckets: Array of hashbuckets, each is a list of requests in this bucket 26 struct list_head buckets[ZFCP_REQ_LIST_BUCKETS]; member 52 INIT_LIST_HEAD(&rl->buckets[i]); in zfcp_reqlist_alloc() 68 if (!list_empty(&rl->buckets[i])) in zfcp_reqlist_isempty() 92 list_for_each_entry(req, &rl->buckets[i], list) in _zfcp_reqlist_find() 165 list_add_tail(&req->list, &rl->buckets[i]); in zfcp_reqlist_add() 182 list_splice_init(&rl->buckets[i], list); in zfcp_reqlist_move() 209 list_for_each_entry(req, &rl->buckets[i], list) in zfcp_reqlist_apply_for_all()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | hashmap.h | 57 struct hashmap_entry **buckets; member 67 .buckets = NULL, \ 157 for (cur = map->buckets[bkt]; cur; cur = cur->next) 169 for (cur = map->buckets[bkt]; \ 180 for (cur = map->buckets \ 181 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \ 188 for (cur = map->buckets \ 189 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
|
H A D | hashmap.c | 21 /* start with 4 buckets */ 45 map->buckets = NULL; in hashmap__init() 71 free(map->buckets); in hashmap__clear() 72 map->buckets = NULL; in hashmap__clear() 124 free(map->buckets); in hashmap_grow() 125 map->buckets = new_buckets; in hashmap_grow() 137 if (!map->buckets) in hashmap_find_entry() 140 for (prev_ptr = &map->buckets[hash], cur = *prev_ptr; in hashmap_find_entry() 200 hashmap_add_entry(&map->buckets[h], entry); in hashmap__insert()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | hashmap.h | 57 struct hashmap_entry **buckets; member 67 .buckets = NULL, \ 157 for (cur = map->buckets[bkt]; cur; cur = cur->next) 169 for (cur = map->buckets[bkt]; \ 180 for (cur = map->buckets \ 181 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \ 188 for (cur = map->buckets \ 189 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
|
H A D | hashmap.c | 21 /* start with 4 buckets */ 45 map->buckets = NULL; in hashmap__init() 71 free(map->buckets); in hashmap__clear() 72 map->buckets = NULL; in hashmap__clear() 124 free(map->buckets); in hashmap_grow() 125 map->buckets = new_buckets; in hashmap_grow() 137 if (!map->buckets) in hashmap_find_entry() 140 for (prev_ptr = &map->buckets[hash], cur = *prev_ptr; in hashmap_find_entry() 200 hashmap_add_entry(&map->buckets[h], entry); in hashmap__insert()
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | hashmap.h | 77 struct hashmap_entry **buckets; member 170 for (cur = map->buckets[bkt]; cur; cur = cur->next) 182 for (cur = map->buckets[bkt]; \ 193 for (cur = map->buckets \ 194 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \ 201 for (cur = map->buckets \ 202 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
|
H A D | hashmap.c | 21 /* start with 4 buckets */ 45 map->buckets = NULL; in hashmap__init() 71 free(map->buckets); in hashmap__clear() 72 map->buckets = NULL; in hashmap__clear() 124 free(map->buckets); in hashmap_grow() 125 map->buckets = new_buckets; in hashmap_grow() 137 if (!map->buckets) in hashmap_find_entry() 140 for (prev_ptr = &map->buckets[hash], cur = *prev_ptr; in hashmap_find_entry() 200 hashmap_add_entry(&map->buckets[h], entry); in hashmap_insert()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | hashmap.h | 77 struct hashmap_entry **buckets; member 170 for (cur = map->buckets[bkt]; cur; cur = cur->next) 182 for (cur = map->buckets[bkt]; \ 193 for (cur = map->buckets \ 194 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \ 201 for (cur = map->buckets \ 202 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
|
H A D | hashmap.c | 21 /* start with 4 buckets */ 45 map->buckets = NULL; in hashmap__init() 71 free(map->buckets); in hashmap__clear() 72 map->buckets = NULL; in hashmap__clear() 124 free(map->buckets); in hashmap_grow() 125 map->buckets = new_buckets; in hashmap_grow() 137 if (!map->buckets) in hashmap_find_entry() 140 for (prev_ptr = &map->buckets[hash], cur = *prev_ptr; in hashmap_find_entry() 200 hashmap_add_entry(&map->buckets[h], entry); in hashmap_insert()
|
/kernel/linux/linux-5.10/block/ |
H A D | blk-stat.c | 86 for (bucket = 0; bucket < cb->buckets; bucket++) in blk_stat_timer_fn() 93 for (bucket = 0; bucket < cb->buckets; bucket++) { in blk_stat_timer_fn() 105 unsigned int buckets, void *data) in blk_stat_alloc_callback() 113 cb->stat = kmalloc_array(buckets, sizeof(struct blk_rq_stat), in blk_stat_alloc_callback() 119 cb->cpu_stat = __alloc_percpu(buckets * sizeof(struct blk_rq_stat), in blk_stat_alloc_callback() 130 cb->buckets = buckets; in blk_stat_alloc_callback() 147 for (bucket = 0; bucket < cb->buckets; bucket++) in blk_stat_add_callback() 103 blk_stat_alloc_callback(void (*timer_fn)(struct blk_stat_callback *), int (*bucket_fn)(const struct request *), unsigned int buckets, void *data) blk_stat_alloc_callback() argument
|
/kernel/linux/linux-6.6/block/ |
H A D | blk-stat.c | 86 for (bucket = 0; bucket < cb->buckets; bucket++) in blk_stat_timer_fn() 93 for (bucket = 0; bucket < cb->buckets; bucket++) { in blk_stat_timer_fn() 105 unsigned int buckets, void *data) in blk_stat_alloc_callback() 113 cb->stat = kmalloc_array(buckets, sizeof(struct blk_rq_stat), in blk_stat_alloc_callback() 119 cb->cpu_stat = __alloc_percpu(buckets * sizeof(struct blk_rq_stat), in blk_stat_alloc_callback() 130 cb->buckets = buckets; in blk_stat_alloc_callback() 147 for (bucket = 0; bucket < cb->buckets; bucket++) in blk_stat_add_callback() 103 blk_stat_alloc_callback(void (*timer_fn)(struct blk_stat_callback *), int (*bucket_fn)(const struct request *), unsigned int buckets, void *data) blk_stat_alloc_callback() argument
|
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/netdevsim/ |
H A D | nexthop.sh | 213 $IP nexthop add id 10 group 1/2 type resilient buckets 4 214 nexthop_check "id 10" "id 10 group 1/2 type resilient buckets 4 idle_timer 120 unbalanced_timer 0 unbalanced_time 0 trap" 218 check_err $? "Wrong nexthop buckets count" 220 check_err $? "Wrong nexthop buckets count" 229 $IP nexthop add id 10 group 1,3/2,2 type resilient buckets 5 230 nexthop_check "id 10" "id 10 group 1,3/2,2 type resilient buckets 5 idle_timer 120 unbalanced_timer 0 unbalanced_time 0 trap" 234 check_err $? "Wrong nexthop buckets count" 236 check_err $? "Wrong nexthop buckets count" 259 $IP nexthop add id 10 group 1/2 type resilient buckets 4 &> /dev/null 325 $IP nexthop add id 10 group 1/2 type resilient buckets [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | hashtable_test.c | 189 int buckets[2]; in hashtable_test_hash_for_each_possible() local 219 /* Save the buckets for the different keys. */ in hashtable_test_hash_for_each_possible() 223 buckets[y->key] = bkt; in hashtable_test_hash_for_each_possible() 230 if (buckets[0] == buckets[1]) { in hashtable_test_hash_for_each_possible() 244 int buckets[2]; in hashtable_test_hash_for_each_possible_safe() local 277 /* Save the buckets for the different keys. */ in hashtable_test_hash_for_each_possible_safe() 281 buckets[y->key] = bkt; in hashtable_test_hash_for_each_possible_safe() 288 if (buckets[0] == buckets[ in hashtable_test_hash_for_each_possible_safe() [all...] |
/kernel/linux/linux-6.6/tools/perf/ |
H A D | builtin-ftrace.c | 685 static void make_histogram(int buckets[], char *buf, size_t len, char *linebuf, in make_histogram() argument 742 buckets[i]++; in make_histogram() 753 static void display_histogram(int buckets[], bool use_nsec) in display_histogram() argument 762 total += buckets[i]; in display_histogram() 772 bar_len = buckets[0] * bar_total / total; in display_histogram() 774 0, 1, "us", buckets[0], bar_len, bar, bar_total - bar_len, ""); in display_histogram() 786 bar_len = buckets[i] * bar_total / total; in display_histogram() 788 start, stop, unit, buckets[i], bar_len, bar, in display_histogram() 792 bar_len = buckets[NUM_BUCKET - 1] * bar_total / total; in display_histogram() 794 1, "...", use_nsec ? "ms" : " s", buckets[NUM_BUCKE in display_histogram() 861 read_func_latency(struct perf_ftrace *ftrace, int buckets[]) read_func_latency() argument 886 int buckets[NUM_BUCKET] = { }; __cmd_latency() local [all...] |
/kernel/linux/linux-5.10/net/ceph/crush/ |
H A D | crush.c | 110 /* buckets */ in crush_destroy() 111 if (map->buckets) { in crush_destroy() 114 if (map->buckets[b] == NULL) in crush_destroy() 116 crush_destroy_bucket(map->buckets[b]); in crush_destroy() 118 kfree(map->buckets); in crush_destroy()
|
/kernel/linux/linux-6.6/net/ceph/crush/ |
H A D | crush.c | 110 /* buckets */ in crush_destroy() 111 if (map->buckets) { in crush_destroy() 114 if (map->buckets[b] == NULL) in crush_destroy() 116 crush_destroy_bucket(map->buckets[b]); in crush_destroy() 118 kfree(map->buckets); in crush_destroy()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | bpf_local_storage.c | 21 return &smap->buckets[hash_ptr(selem, smap->bucket_log)]; in select_bucket() 501 b = &smap->buckets[i]; in bpf_local_storage_map_free() 528 kvfree(smap->buckets); in bpf_local_storage_map_free() 565 /* Use at least 2 buckets, select_bucket() is undefined behavior with 1 bucket */ in bpf_local_storage_map_alloc() 568 cost = sizeof(*smap->buckets) * nbuckets + sizeof(*smap); in bpf_local_storage_map_alloc() 576 smap->buckets = kvcalloc(sizeof(*smap->buckets), nbuckets, in bpf_local_storage_map_alloc() 578 if (!smap->buckets) { in bpf_local_storage_map_alloc() 585 INIT_HLIST_HEAD(&smap->buckets[i].list); in bpf_local_storage_map_alloc() 586 raw_spin_lock_init(&smap->buckets[ in bpf_local_storage_map_alloc() [all...] |
/kernel/linux/linux-5.10/net/netfilter/ipvs/ |
H A D | ip_vs_dh.c | 64 struct ip_vs_dh_bucket buckets[IP_VS_DH_TAB_SIZE]; member 90 return rcu_dereference(s->buckets[ip_vs_dh_hashkey(af, addr)].dest); in ip_vs_dh_get() 95 * Assign all the hash buckets of the specified table with the service. 106 b = &s->buckets[0]; in ip_vs_dh_reassign() 132 * Flush all the hash buckets of the specified table. 140 b = &s->buckets[0]; in ip_vs_dh_flush() 166 /* assign the hash buckets with current dests */ in ip_vs_dh_init_svc() 177 /* got to clean up hash buckets here */ in ip_vs_dh_done_svc() 192 /* assign the hash buckets with the updated service */ in ip_vs_dh_dest_changed()
|
H A D | ip_vs_sh.c | 70 struct ip_vs_sh_bucket buckets[IP_VS_SH_TAB_SIZE]; member 108 struct ip_vs_dest *dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get() 130 dest = rcu_dereference(s->buckets[ihash].dest); in ip_vs_sh_get_fallback() 145 dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get_fallback() 160 * Assign all the hash buckets of the specified table with the service. 172 b = &s->buckets[0]; in ip_vs_sh_reassign() 208 * Flush all the hash buckets of the specified table. 216 b = &s->buckets[0]; in ip_vs_sh_flush() 242 /* assign the hash buckets with current dests */ in ip_vs_sh_init_svc() 253 /* got to clean up hash buckets her in ip_vs_sh_done_svc() [all...] |
/kernel/linux/linux-6.6/net/netfilter/ipvs/ |
H A D | ip_vs_dh.c | 64 struct ip_vs_dh_bucket buckets[IP_VS_DH_TAB_SIZE]; member 90 return rcu_dereference(s->buckets[ip_vs_dh_hashkey(af, addr)].dest); in ip_vs_dh_get() 95 * Assign all the hash buckets of the specified table with the service. 106 b = &s->buckets[0]; in ip_vs_dh_reassign() 132 * Flush all the hash buckets of the specified table. 140 b = &s->buckets[0]; in ip_vs_dh_flush() 166 /* assign the hash buckets with current dests */ in ip_vs_dh_init_svc() 177 /* got to clean up hash buckets here */ in ip_vs_dh_done_svc() 192 /* assign the hash buckets with the updated service */ in ip_vs_dh_dest_changed()
|
H A D | ip_vs_sh.c | 70 struct ip_vs_sh_bucket buckets[IP_VS_SH_TAB_SIZE]; member 108 struct ip_vs_dest *dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get() 130 dest = rcu_dereference(s->buckets[ihash].dest); in ip_vs_sh_get_fallback() 145 dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get_fallback() 160 * Assign all the hash buckets of the specified table with the service. 172 b = &s->buckets[0]; in ip_vs_sh_reassign() 208 * Flush all the hash buckets of the specified table. 216 b = &s->buckets[0]; in ip_vs_sh_flush() 242 /* assign the hash buckets with current dests */ in ip_vs_sh_init_svc() 253 /* got to clean up hash buckets her in ip_vs_sh_done_svc() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
H A D | ipoib_vlan.c | 45 struct hlist_head buckets[1 << MLX5I_MAX_LOG_PKEY_SUP]; member 71 static struct qpn_to_netdev *mlx5i_find_qpn_to_netdev_node(struct hlist_head *buckets, in mlx5i_find_qpn_to_netdev_node() argument 74 struct hlist_head *h = &buckets[hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP)]; in mlx5i_find_qpn_to_netdev_node() 99 hlist_add_head(&new_node->hlist, &ht->buckets[key]); in mlx5i_pkey_add_qpn() 112 node = mlx5i_find_qpn_to_netdev_node(ht->buckets, qpn); in mlx5i_pkey_del_qpn() 131 node = mlx5i_find_qpn_to_netdev_node(ipriv->qpn_htbl->buckets, qpn); in mlx5i_pkey_get_netdev()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
H A D | ipoib_vlan.c | 45 struct hlist_head buckets[1 << MLX5I_MAX_LOG_PKEY_SUP]; member 71 static struct qpn_to_netdev *mlx5i_find_qpn_to_netdev_node(struct hlist_head *buckets, in mlx5i_find_qpn_to_netdev_node() argument 74 struct hlist_head *h = &buckets[hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP)]; in mlx5i_find_qpn_to_netdev_node() 99 hlist_add_head(&new_node->hlist, &ht->buckets[key]); in mlx5i_pkey_add_qpn() 112 node = mlx5i_find_qpn_to_netdev_node(ht->buckets, qpn); in mlx5i_pkey_del_qpn() 131 node = mlx5i_find_qpn_to_netdev_node(ipriv->qpn_htbl->buckets, qpn); in mlx5i_pkey_get_netdev()
|