Lines Matching refs:nr
32 static inline void op##_bit(unsigned long nr, volatile unsigned long *m)\
36 m += nr >> 5; \
38 nr &= 0x1f; \
47 "ir"(nr) \
63 static inline int test_and_##op##_bit(unsigned long nr, volatile unsigned long *m)\
67 m += nr >> 5; \
69 nr &= 0x1f; \
83 : "r"(m), "ir"(nr) \
88 return (old & (1 << nr)) != 0; \
110 static inline void op##_bit(unsigned long nr, volatile unsigned long *m)\
113 m += nr >> 5; \
121 *m = temp c_op (1UL << (nr & 0x1f)); \
127 static inline int test_and_##op##_bit(unsigned long nr, volatile unsigned long *m)\
130 m += nr >> 5; \
135 *m = old c_op (1UL << (nr & 0x1f)); \
139 return (old & (1UL << (nr & 0x1f))) != 0; \
145 static inline void op##_bit(unsigned long nr, volatile unsigned long *m)\
147 m += nr >> 5; \
149 nr = (1UL << (nr & 0x1f)); \
151 nr = ~nr; \
158 : "r"(nr), "r"(m), "i"(asm_op) \
163 static inline int test_and_##op##_bit(unsigned long nr, volatile unsigned long *m)\
167 m += nr >> 5; \
169 nr = old = (1UL << (nr & 0x1f)); \
187 return (old & nr) != 0; \
197 static inline void __##op##_bit(unsigned long nr, volatile unsigned long *m) \
200 m += nr >> 5; \
203 *m = temp c_op (1UL << (nr & 0x1f)); \
207 static inline int __test_and_##op##_bit(unsigned long nr, volatile unsigned long *m)\
210 m += nr >> 5; \
213 *m = old c_op (1UL << (nr & 0x1f)); \
215 return (old & (1UL << (nr & 0x1f))) != 0; \
246 test_bit(unsigned int nr, const volatile unsigned long *addr) in test_bit() argument
250 addr += nr >> 5; in test_bit()
252 mask = 1UL << (nr & 0x1f); in test_bit()