Lines Matching refs:bitmap
365 static inline int test_bit(__u8 *bitmap, unsigned int bit)
367 return bitmap[bit >> 3] & (1U << (bit & 0x7));
373 static inline void set_bit(__u8 *bitmap, unsigned int bit)
375 bitmap[bit >> 3] |= 1U << (bit & 0x7);
381 static inline void clear_bit(__u8 *bitmap, unsigned int bit)
383 bitmap[bit >> 3] &= ~(1U << (bit & 0x7));
387 * Find the first zero bit in a bitmap of size nr_bits.
390 static inline int find_first_zero_bit(__u8 *bitmap, unsigned int nr_bits)
392 __u64 *b = (__u64 *)bitmap;
402 if (!test_bit(bitmap, j))