Home
last modified time | relevance | path

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

/linux/tools/perf/util/
A Dhashmap.c38 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 Dhashmap.h53 hashmap_hash_fn hash_fn; member
63 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ argument
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)] \
/linux/tools/lib/bpf/
A Dhashmap.c38 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 Dhashmap.h53 hashmap_hash_fn hash_fn; member
63 #define HASHMAP_INIT(hash_fn, equal_fn, ctx) { \ argument
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)] \
A Dbtf.c3170 hashmap_hash_fn hash_fn = btf_dedup_identity_hash_fn; in btf_dedup_new() local
3179 hash_fn = btf_dedup_collision_hash_fn; in btf_dedup_new()
3184 d->dedup_table = hashmap__new(hash_fn, btf_dedup_equal_fn, NULL); in btf_dedup_new()
/linux/tools/testing/selftests/bpf/prog_tests/
A Dhashmap.c13 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()
339 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_empty()
/linux/include/linux/mlx4/
A Dqp.h130 u8 hash_fn; member
/linux/drivers/net/ethernet/mellanox/mlx4/
A Den_rx.c1224 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer()
1226 rss_context->hash_fn = MLX4_RSS_HASH_XOR; in mlx4_en_config_rss_steer()
1228 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer()
/linux/kernel/dma/
A Ddebug.c236 static int hash_fn(struct dma_debug_entry *entry) in hash_fn() function
252 int idx = hash_fn(entry); in get_hash_bucket()
/linux/drivers/infiniband/hw/mlx4/
A Dqp.c2063 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in fill_qp_rss_context()

Completed in 31 milliseconds