Home
last modified time | relevance | path

Searched refs:bkt (Results 1 – 6 of 6) sorted by relevance

/tools/include/linux/
Dhashtable.h105 #define hash_for_each(name, bkt, obj, member) \ argument
106 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\
107 (bkt)++)\
108 hlist_for_each_entry(obj, &name[bkt], member)
119 #define hash_for_each_safe(name, bkt, tmp, obj, member) \ argument
120 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\
121 (bkt)++)\
122 hlist_for_each_entry_safe(obj, tmp, &name[bkt], member)
/tools/lib/bpf/
Dhashmap.h138 #define hashmap__for_each_entry(map, cur, bkt) \ argument
139 for (bkt = 0; bkt < map->cap; bkt++) \
140 for (cur = map->buckets[bkt]; cur; cur = cur->next)
150 #define hashmap__for_each_entry_safe(map, cur, tmp, bkt) \ argument
151 for (bkt = 0; bkt < map->cap; bkt++) \
152 for (cur = map->buckets[bkt]; \
163 for (cur = ({ size_t bkt = hash_bits(map->hash_fn((_key), map->ctx),\
165 map->buckets ? map->buckets[bkt] : NULL; }); \
171 for (cur = ({ size_t bkt = hash_bits(map->hash_fn((_key), map->ctx),\
173 cur = map->buckets ? map->buckets[bkt] : NULL; }); \
Dhashmap.c94 int bkt; in hashmap_grow() local
105 hashmap__for_each_entry_safe(map, cur, tmp, bkt) { in hashmap_grow()
/tools/testing/selftests/bpf/
Dtest_hashmap.c55 int err, bkt, found_cnt, i; in test_hashmap_generic() local
101 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_generic()
144 hashmap__for_each_entry_safe(map, entry, tmp, bkt) { in test_hashmap_generic()
201 hashmap__for_each_entry_safe(map, entry, tmp, bkt) { in test_hashmap_generic()
235 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_generic()
242 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_generic()
263 int err, bkt; in test_hashmap_multimap() local
303 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_multimap()
335 int bkt; in test_hashmap_empty() local
357 hashmap__for_each_entry(map, entry, bkt) { in test_hashmap_empty()
/tools/bpf/bpftool/
Dcommon.c427 unsigned int bkt; in delete_pinned_obj_table() local
429 hash_for_each_safe(tab->table, bkt, tmp, obj, hash) { in delete_pinned_obj_table()
Dbtf.c568 unsigned int bkt; in delete_btf_table() local
570 hash_for_each_safe(tab->table, bkt, tmp, obj, hash) { in delete_btf_table()