Lines Matching refs:nr
9 #define BIT(nr) (1UL << (nr)) argument
10 #define BIT_ULL(nr) (1ULL << (nr)) argument
11 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) argument
12 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) argument
13 #define BIT_ULL_MASK(nr) (1ULL << ((nr) % BITS_PER_LONG_LONG)) argument
14 #define BIT_ULL_WORD(nr) ((nr) / BITS_PER_LONG_LONG) argument
16 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) argument
186 static inline void generic_set_bit(int nr, volatile unsigned long *addr) in generic_set_bit() argument
188 unsigned long mask = BIT_MASK(nr); in generic_set_bit()
189 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic_set_bit()
194 static inline void generic_clear_bit(int nr, volatile unsigned long *addr) in generic_clear_bit() argument
196 unsigned long mask = BIT_MASK(nr); in generic_clear_bit()
197 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in generic_clear_bit()