/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | hashmap.c | 38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() argument 41 map->hash_fn = hash_fn; in hashmap__init() 51 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, in hashmap__new() argument 59 hashmap__init(map, hash_fn, equal_fn, ctx); in hashmap__new() 118 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); in hashmap_grow() 167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert() 191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert() 211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__find() 226 h = hash_bits(map->hash_fn(ke in hashmap__delete() [all...] |
H A D | hashmap.h | 53 hashmap_hash_fn hash_fn; member 63 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ 64 .hash_fn = (hash_fn), \ 73 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, 75 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, 181 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \ 189 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
|
H A D | btf.c | 2965 hashmap_hash_fn hash_fn = btf_dedup_identity_hash_fn; in btf_dedup_new() local 2974 hash_fn = btf_dedup_collision_hash_fn; in btf_dedup_new() 2979 d->dedup_table = hashmap__new(hash_fn, btf_dedup_equal_fn, NULL); in btf_dedup_new()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | hashmap.c | 38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() argument 41 map->hash_fn = hash_fn; in hashmap__init() 51 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, in hashmap__new() argument 59 hashmap__init(map, hash_fn, equal_fn, ctx); in hashmap__new() 118 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); in hashmap_grow() 167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert() 191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert() 211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__find() 226 h = hash_bits(map->hash_fn(ke in hashmap__delete() [all...] |
H A D | hashmap.h | 53 hashmap_hash_fn hash_fn; member 63 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ 64 .hash_fn = (hash_fn), \ 73 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, 75 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, 181 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \ 189 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | hashmap.c | 38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() argument 41 map->hash_fn = hash_fn; in hashmap__init() 51 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, in hashmap__new() argument 59 hashmap__init(map, hash_fn, equal_fn, ctx); in hashmap__new() 118 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); in hashmap_grow() 167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_insert() 191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_insert() 211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_find() 226 h = hash_bits(map->hash_fn(ke in hashmap_delete() [all...] |
H A D | hashmap.h | 73 hashmap_hash_fn hash_fn; member 83 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, 85 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, 194 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \ 202 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
|
H A D | btf.c | 3218 hashmap_hash_fn hash_fn = btf_dedup_identity_hash_fn; in btf_dedup_new() local 3225 hash_fn = btf_dedup_collision_hash_fn; in btf_dedup_new() 3230 d->dedup_table = hashmap__new(hash_fn, btf_dedup_equal_fn, NULL); in btf_dedup_new()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | hashmap.c | 38 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() argument 41 map->hash_fn = hash_fn; in hashmap__init() 51 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, in hashmap__new() argument 59 hashmap__init(map, hash_fn, equal_fn, ctx); in hashmap__new() 118 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); in hashmap_grow() 167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_insert() 191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_insert() 211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap_find() 226 h = hash_bits(map->hash_fn(ke in hashmap_delete() [all...] |
H A D | hashmap.h | 73 hashmap_hash_fn hash_fn; member 83 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, 85 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, 194 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \ 202 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | hashmap.c | 13 static size_t hash_fn(const void *k, void *ctx) in hash_fn() function 50 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_generic() 341 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_empty()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | hashmap.c | 14 static size_t hash_fn(long k, void *ctx) in hash_fn() function 51 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_generic() 419 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_empty()
|
/kernel/linux/linux-5.10/include/linux/mlx4/ |
H A D | qp.h | 130 u8 hash_fn; member
|
/kernel/linux/linux-6.6/include/linux/mlx4/ |
H A D | qp.h | 130 u8 hash_fn; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_rx.c | 1223 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer() 1225 rss_context->hash_fn = MLX4_RSS_HASH_XOR; in mlx4_en_config_rss_steer() 1227 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_rx.c | 1276 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer() 1278 rss_context->hash_fn = MLX4_RSS_HASH_XOR; in mlx4_en_config_rss_steer() 1280 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer()
|
/kernel/linux/linux-5.10/kernel/dma/ |
H A D | debug.c | 236 static int hash_fn(struct dma_debug_entry *entry) in hash_fn() function 252 int idx = hash_fn(entry);
|
/kernel/linux/linux-6.6/kernel/dma/ |
H A D | debug.c | 237 static int hash_fn(struct dma_debug_entry *entry) in hash_fn() function 253 int idx = hash_fn(entry);
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/ |
H A D | qp.c | 2069 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in fill_qp_rss_context()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx4/ |
H A D | qp.c | 2102 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in fill_qp_rss_context()
|