Lines Matching refs:nr
15 static inline void __set_bit(int nr, volatile unsigned long *addr) in __set_bit() argument
17 unsigned long mask = BIT_MASK(nr); in __set_bit()
18 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __set_bit()
25 static inline void __clear_bit(int nr, volatile unsigned long *addr) in __clear_bit() argument
27 unsigned long mask = BIT_MASK(nr); in __clear_bit()
28 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __clear_bit()
44 static inline void __change_bit(int nr, volatile unsigned long *addr) in __change_bit() argument
46 unsigned long mask = BIT_MASK(nr); in __change_bit()
47 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __change_bit()
61 static inline int __test_and_set_bit(int nr, volatile unsigned long *addr) in __test_and_set_bit() argument
63 unsigned long mask = BIT_MASK(nr); in __test_and_set_bit()
64 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_set_bit()
80 static inline int __test_and_clear_bit(int nr, volatile unsigned long *addr) in __test_and_clear_bit() argument
82 unsigned long mask = BIT_MASK(nr); in __test_and_clear_bit()
83 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_clear_bit()
91 static inline int __test_and_change_bit(int nr, in __test_and_change_bit() argument
94 unsigned long mask = BIT_MASK(nr); in __test_and_change_bit()
95 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in __test_and_change_bit()
107 static inline int test_bit(int nr, const volatile unsigned long *addr) in test_bit() argument
109 return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); in test_bit()