/linux-6.3-rc2/tools/perf/util/ |
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(key, map->ctx), map->cap_bits); in hashmap_delete()
|
A D | hashmap.h | 73 hashmap_hash_fn hash_fn; member 83 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ argument 84 .hash_fn = (hash_fn), \ 93 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, 95 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, 204 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \ 212 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
|
/linux-6.3-rc2/tools/lib/bpf/ |
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(key, map->ctx), map->cap_bits); in hashmap_delete()
|
A D | hashmap.h | 73 hashmap_hash_fn hash_fn; member 83 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ argument 84 .hash_fn = (hash_fn), \ 93 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, 95 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, 204 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \ 212 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
|
A D | btf.c | 3220 hashmap_hash_fn hash_fn = btf_dedup_identity_hash_fn; in btf_dedup_new() local 3227 hash_fn = btf_dedup_collision_hash_fn; in btf_dedup_new() 3232 d->dedup_table = hashmap__new(hash_fn, btf_dedup_equal_fn, NULL); in btf_dedup_new()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
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()
|
/linux-6.3-rc2/include/linux/mlx4/ |
A D | qp.h | 130 u8 hash_fn; member
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/ |
A D | en_rx.c | 1258 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer() 1260 rss_context->hash_fn = MLX4_RSS_HASH_XOR; in mlx4_en_config_rss_steer() 1262 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer()
|
/linux-6.3-rc2/kernel/dma/ |
A D | debug.c | 236 static int hash_fn(struct dma_debug_entry *entry) in hash_fn() function 252 int idx = hash_fn(entry); in get_hash_bucket()
|
/linux-6.3-rc2/drivers/infiniband/hw/mlx4/ |
A D | qp.c | 2098 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in fill_qp_rss_context()
|