Home
last modified time | relevance | path

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

/hostap-3.6.0/src/utils/
Dbitfield.c17 size_t max_bits; member
21 struct bitfield * bitfield_alloc(size_t max_bits) in bitfield_alloc() argument
25 bf = os_zalloc(sizeof(*bf) + (max_bits + 7) / 8); in bitfield_alloc()
29 bf->max_bits = max_bits; in bitfield_alloc()
42 if (bit >= bf->max_bits) in bitfield_set()
50 if (bit >= bf->max_bits) in bitfield_clear()
58 if (bit >= bf->max_bits) in bitfield_is_set()
79 for (i = 0; i < (bf->max_bits + 7) / 8; i++) { in bitfield_get_first_zero()
83 if (i == (bf->max_bits + 7) / 8) in bitfield_get_first_zero()
86 if (i >= bf->max_bits) in bitfield_get_first_zero()
Dbitfield.h14 struct bitfield * bitfield_alloc(size_t max_bits);