Home
last modified time | relevance | path

Searched refs:equal_fn (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/tools/lib/bpf/
H A Dhashmap.c39 hashmap_equal_fn equal_fn, void *ctx) in hashmap__init() argument
42 map->equal_fn = equal_fn; in hashmap__init()
52 hashmap_equal_fn equal_fn, in hashmap__new() argument
59 hashmap__init(map, hash_fn, equal_fn, ctx); in hashmap__new()
143 if (map->equal_fn(cur->key, key, map->ctx)) { in hashmap_find_entry()
H A Dhashmap.h74 hashmap_equal_fn equal_fn; member
84 hashmap_equal_fn equal_fn, void *ctx);
86 hashmap_equal_fn equal_fn,
198 if (map->equal_fn(cur->key, (_key), map->ctx))
206 if (map->equal_fn(cur->key, (_key), map->ctx))
/openbmc/linux/tools/perf/util/
H A Dhashmap.c39 hashmap_equal_fn equal_fn, void *ctx) in hashmap__init() argument
42 map->equal_fn = equal_fn; in hashmap__init()
52 hashmap_equal_fn equal_fn, in hashmap__new() argument
59 hashmap__init(map, hash_fn, equal_fn, ctx); in hashmap__new()
143 if (map->equal_fn(cur->key, key, map->ctx)) { in hashmap_find_entry()
H A Dhashmap.h74 hashmap_equal_fn equal_fn; member
84 hashmap_equal_fn equal_fn, void *ctx);
86 hashmap_equal_fn equal_fn,
198 if (map->equal_fn(cur->key, (_key), map->ctx))
206 if (map->equal_fn(cur->key, (_key), map->ctx))
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dhashmap.c19 static bool equal_fn(long a, long b, void *ctx) in equal_fn() function
51 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_generic()
348 map = hashmap__new(collision_hash_fn, equal_fn, NULL); in test_hashmap_multimap()
419 map = hashmap__new(hash_fn, equal_fn, NULL); in test_hashmap_empty()