Lines Matching refs:nr
29 static inline void op##_bit(unsigned long nr, volatile unsigned long *m)\
33 m += nr >> 5; \
35 nr &= 0x1f; \
44 "ir"(nr) \
60 static inline int test_and_##op##_bit(unsigned long nr, volatile unsigned long *m)\
64 m += nr >> 5; \
66 nr &= 0x1f; \
80 : "r"(m), "ir"(nr) \
85 return (old & (1 << nr)) != 0; \
107 static inline void op##_bit(unsigned long nr, volatile unsigned long *m)\
110 m += nr >> 5; \
118 *m = temp c_op (1UL << (nr & 0x1f)); \
124 static inline int test_and_##op##_bit(unsigned long nr, volatile unsigned long *m)\
127 m += nr >> 5; \
132 *m = old c_op (1UL << (nr & 0x1f)); \
136 return (old & (1UL << (nr & 0x1f))) != 0; \
142 static inline void op##_bit(unsigned long nr, volatile unsigned long *m)\
144 m += nr >> 5; \
146 nr = (1UL << (nr & 0x1f)); \
148 nr = ~nr; \
155 : "r"(nr), "r"(m), "i"(asm_op) \
160 static inline int test_and_##op##_bit(unsigned long nr, volatile unsigned long *m)\
164 m += nr >> 5; \
166 nr = old = (1UL << (nr & 0x1f)); \
184 return (old & nr) != 0; \
194 static inline void __##op##_bit(unsigned long nr, volatile unsigned long *m) \
197 m += nr >> 5; \
200 *m = temp c_op (1UL << (nr & 0x1f)); \
204 static inline int __test_and_##op##_bit(unsigned long nr, volatile unsigned long *m)\
207 m += nr >> 5; \
210 *m = old c_op (1UL << (nr & 0x1f)); \
212 return (old & (1UL << (nr & 0x1f))) != 0; \
243 test_bit(unsigned int nr, const volatile unsigned long *addr) in test_bit() argument
247 addr += nr >> 5; in test_bit()
249 mask = 1UL << (nr & 0x1f); in test_bit()