Lines Matching refs:bitmap
7 /* Every bitmap gets its own type */
10 static inline int test_bit(unsigned int nr, unsigned long *bitmap)
14 return (bitmap[offset] >> bit) & 1;
17 static inline void set_bit(unsigned int nr, unsigned long *bitmap)
21 bitmap[offset] |= 1UL << bit;
24 static inline void clear_bit(unsigned int nr, unsigned long *bitmap)
28 bitmap[offset] &= ~(1UL << bit);
31 static inline int test_and_set_bit(unsigned int nr, unsigned long *bitmap)
35 unsigned long old = bitmap[offset];
37 bitmap[offset] = old | mask;
41 static inline int test_and_clear_bit(unsigned int nr, unsigned long *bitmap)
45 unsigned long old = bitmap[offset];
47 bitmap[offset] = old & ~mask;