Searched refs:max_bits (Results 1 – 2 of 2) sorted by relevance
17 size_t max_bits; member21 struct bitfield * bitfield_alloc(size_t max_bits) in bitfield_alloc() argument25 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()
14 struct bitfield * bitfield_alloc(size_t max_bits);