Lines Matching full:bits

26  * @brief Store and manipulate bits in a bit array.
33 /* Number of bits */
39 /* Bundle of bits */
54 * @param total_bits Total number of bits in this bitarray object.
72 * @param total_bits Total number of bits in this bitarray object.
81 * @param total_bits Total number of bits in this bitarray object.
94 * the number of bits in bit array, etc.)
106 * the number of bits in bit array, etc.)
119 * the number of bits in bit array, etc.)
132 * the number of bits in bit array, etc.)
145 * the number of bits in bit array, etc.)
150 * Allocate bits in a bit array
152 * This finds a number of bits (@p num_bits) in a contiguous of
153 * previously unallocated region. If such a region exists, the bits are
158 * @param[in] num_bits Number of bits to allocate
163 * @retval -EINVAL Invalid argument (e.g. allocating more bits than
164 * the bitarray has, trying to allocate 0 bits, etc.)
178 * @param num_bits Number of bits in the region, must be larger than 0
183 * 0 bits, etc.)
190 * This counts the number of bits set (@p count) in a
198 * @param[in] num_bits Number of bits to check, must be larger than 0
204 * @retval -EINVAL Invalid argument (e.g. out-of-bounds access, trying to count 0 bits, etc.)
210 * Count bits set in a bit array region
212 * This counts the number of bits set (@p count) in a
216 * @param[in] num_bits Number of bits to check, must be larger than 0
218 * @param[out] count Number of bits set in the region if successful
221 * @retval -EINVAL Invalid argument (e.g. out-of-bounds access, trying to count 0 bits, etc.)
227 * Free bits in a bit array
229 * This marks the number of bits (@p num_bits) starting from @p offset
233 * @param num_bits Number of bits to free
237 * @retval -EINVAL Invalid argument (e.g. try to free more bits than
238 * the bitarray has, trying to free 0 bits, etc.)
239 * @retval -EFAULT The bits in the indicated region are not all allocated.
245 * Test if bits in a region is all set.
247 * This tests if the number of bits (@p num_bits) in region starting
251 * @param num_bits Number of bits to test
254 * @retval true All bits are set.
255 * @retval false Not all bits are set.
261 * Test if bits in a region is all cleared.
263 * This tests if the number of bits (@p num_bits) in region starting
267 * @param num_bits Number of bits to test
270 * @retval true All bits are cleared.
271 * @retval false Not all bits are cleared.
277 * Set all bits in a region.
279 * This sets the number of bits (@p num_bits) in region starting
283 * @param num_bits Number of bits to test
288 * the number of bits in bit array, etc.)
294 * Test if all bits in a region are cleared/set and set/clear them
297 * This checks if all the bits (@p num_bits) in region starting
304 * @param num_bits Number of bits to test and set
306 * @param to_set if true the region will be set if all bits are cleared
307 * if false the region will be cleard if all bits are set
311 * the number of bits in bit array, etc.)
319 * Clear all bits in a region.
321 * This clears the number of bits (@p num_bits) in region starting
325 * @param num_bits Number of bits to test
330 * the number of bits in bit array, etc.)