Searched refs:cap_bits (Results 1 - 7 of 7) sorted by relevance

/linux-master/tools/perf/util/
H A Dsharded_mutex.h16 /* mutexes array is 1<<cap_bits in size. */
17 unsigned int cap_bits; member in struct:sharded_mutex
26 return &sm->mutexes[hash_bits(hash, sm->cap_bits)];
H A Dsharded_mutex.c20 result->cap_bits = bits;
29 for (size_t i = 0; i < ((size_t)1 << sm->cap_bits); i++)
H A Dhashmap.c47 map->cap_bits = 0;
73 map->cap = map->cap_bits = map->sz = 0;
108 new_cap_bits = map->cap_bits + 1;
123 map->cap_bits = new_cap_bits;
167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
226 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
H A Dhashmap.h79 size_t cap_bits; member in struct:hashmap
194 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
202 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
/linux-master/tools/lib/bpf/
H A Dhashmap.c47 map->cap_bits = 0;
73 map->cap = map->cap_bits = map->sz = 0;
108 new_cap_bits = map->cap_bits + 1;
123 map->cap_bits = new_cap_bits;
167 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
191 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
211 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
226 h = hash_bits(map->hash_fn(key, map->ctx), map->cap_bits);
H A Dhashmap.h79 size_t cap_bits; member in struct:hashmap
194 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
202 ? map->buckets[hash_bits(map->hash_fn((_key), map->ctx), map->cap_bits)] \
/linux-master/drivers/hv/
H A Dhv_balloon.c131 } cap_bits; member in union:dm_caps
1830 cap_msg.caps.cap_bits.balloon = ballooning_enabled();
1831 cap_msg.caps.cap_bits.hot_add = hot_add_enabled();
1837 cap_msg.caps.cap_bits.hot_add_alignment = 7;

Completed in 161 milliseconds