Searched refs:hash_fn (Results 1 – 8 of 8) sorted by relevance
| /Linux-v5.4/tools/lib/bpf/ |
| D | hashmap.c | 32 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, in hashmap__init() argument 35 map->hash_fn = hash_fn; in hashmap__init() 45 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, in hashmap__new() argument 53 hashmap__init(map, hash_fn, equal_fn, ctx); in hashmap__new() 106 h = hash_bits(map->hash_fn(cur->key, map->ctx), new_cap_bits); in hashmap_grow() 155 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert() 179 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__insert() 199 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__find() 214 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits); in hashmap__delete()
|
| D | hashmap.h | 36 hashmap_hash_fn hash_fn; member 46 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ argument 47 .hash_fn = (hash_fn), \ 56 void hashmap__init(struct hashmap *map, hashmap_hash_fn hash_fn, 58 struct hashmap *hashmap__new(hashmap_hash_fn hash_fn, 163 for (cur = ({ size_t bkt = hash_bits(map->hash_fn((_key), map->ctx),\ 171 for (cur = ({ size_t bkt = hash_bits(map->hash_fn((_key), map->ctx),\
|
| D | btf.c | 1390 hashmap_hash_fn hash_fn = btf_dedup_identity_hash_fn; in btf_dedup_new() local 1399 hash_fn = btf_dedup_collision_hash_fn; in btf_dedup_new() 1404 d->dedup_table = hashmap__new(hash_fn, btf_dedup_equal_fn, NULL); in btf_dedup_new()
|
| /Linux-v5.4/tools/testing/selftests/bpf/ |
| D | test_hashmap.c | 22 size_t hash_fn(const void *k, void *ctx) in hash_fn() function 61 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_generic() 342 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_empty()
|
| /Linux-v5.4/include/linux/mlx4/ |
| D | qp.h | 130 u8 hash_fn; member
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/ |
| D | en_rx.c | 1219 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer() 1221 rss_context->hash_fn = MLX4_RSS_HASH_XOR; in mlx4_en_config_rss_steer() 1223 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer()
|
| /Linux-v5.4/kernel/dma/ |
| D | debug.c | 230 static int hash_fn(struct dma_debug_entry *entry) in hash_fn() function 246 int idx = hash_fn(entry); in get_hash_bucket()
|
| /Linux-v5.4/drivers/infiniband/hw/mlx4/ |
| D | qp.c | 2125 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in fill_qp_rss_context()
|