Home
last modified time | relevance | path

Searched refs:hash_fn (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/tools/lib/bpf/
Dhashmap.c32 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()
Dhashmap.h36 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),\
Dbtf.c1390 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/
Dtest_hashmap.c22 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/
Dqp.h130 u8 hash_fn; member
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Den_rx.c1219 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/
Ddebug.c230 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/
Dqp.c2125 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in fill_qp_rss_context()