Home
last modified time | relevance | path

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

/openbmc/linux/kernel/bpf/
H A Dbloom_filter.c97 u32 bitset_bytes, bitset_mask, nr_hash_funcs, nr_bits; in bloom_map_alloc() local
134 bitset_bytes = BITS_TO_BYTES(U32_MAX); in bloom_map_alloc()
141 bitset_bytes = BITS_TO_BYTES(nr_bits); in bloom_map_alloc()
145 bitset_bytes = roundup(bitset_bytes, sizeof(unsigned long)); in bloom_map_alloc()
146 bloom = bpf_map_area_alloc(sizeof(*bloom) + bitset_bytes, numa_node); in bloom_map_alloc()
195 u64 bitset_bytes; in bloom_map_mem_usage() local
198 bitset_bytes = BITS_TO_BYTES((u64)bloom->bitset_mask + 1); in bloom_map_mem_usage()
199 bitset_bytes = roundup(bitset_bytes, sizeof(unsigned long)); in bloom_map_mem_usage()
200 return sizeof(*bloom) + bitset_bytes; in bloom_map_mem_usage()