Lines Matching refs:nr
36 static inline void set_bit(int nr, volatile void *addr)
42 a += nr >> 5;
43 mask = 1 << (nr & 0x1f);
49 static inline void __set_bit(int nr, volatile void *addr)
54 a += nr >> 5;
55 mask = 1 << (nr & 0x1f);
66 static inline void clear_bit(int nr, volatile void *addr)
72 a += nr >> 5;
73 mask = 1 << (nr & 0x1f);
79 #define __clear_bit(nr, addr) clear_bit(nr, addr)
82 static inline void change_bit(int nr, volatile void *addr)
88 ADDR += nr >> 5;
89 mask = 1 << (nr & 31);
95 static inline void __change_bit(int nr, volatile void *addr)
100 ADDR += nr >> 5;
101 mask = 1 << (nr & 31);
105 static inline int test_and_set_bit(int nr, volatile void *addr)
111 a += nr >> 5;
112 mask = 1 << (nr & 0x1f);
121 static inline int __test_and_set_bit(int nr, volatile void *addr)
126 a += nr >> 5;
127 mask = 1 << (nr & 0x1f);
133 static inline int test_and_clear_bit(int nr, volatile void *addr)
139 a += nr >> 5;
140 mask = 1 << (nr & 0x1f);
149 static inline int __test_and_clear_bit(int nr, volatile void *addr)
154 a += nr >> 5;
155 mask = 1 << (nr & 0x1f);
161 static inline int test_and_change_bit(int nr, volatile void *addr)
167 a += nr >> 5;
168 mask = 1 << (nr & 0x1f);
177 static inline int __test_and_change_bit(int nr, volatile void *addr)
182 a += nr >> 5;
183 mask = 1 << (nr & 0x1f);
192 static inline int __constant_test_bit(int nr, const volatile void *addr)
194 return ((1UL << (nr & 31)) & (((const volatile unsigned int *) addr)[nr >> 5])) != 0;
197 static inline int __test_bit(int nr, volatile void *addr)
202 a += nr >> 5;
203 mask = 1 << (nr & 0x1f);
207 #define test_bit(nr,addr) \
208 (__builtin_constant_p(nr) ? \
209 __constant_test_bit((nr),(addr)) : \
210 __test_bit((nr),(addr)))
261 static inline int ext2_set_bit(int nr, volatile void *addr)
267 ADDR += nr >> 3;
268 mask = 1 << (nr & 0x07);
276 static inline int ext2_clear_bit(int nr, volatile void *addr)
282 ADDR += nr >> 3;
283 mask = 1 << (nr & 0x07);
291 static inline int ext2_test_bit(int nr, const volatile void *addr)
296 ADDR += nr >> 3;
297 mask = 1 << (nr & 0x07);
356 #define minix_test_and_set_bit(nr,addr) test_and_set_bit(nr,addr)
357 #define minix_set_bit(nr,addr) set_bit(nr,addr)
358 #define minix_test_and_clear_bit(nr,addr) test_and_clear_bit(nr,addr)
359 #define minix_test_bit(nr,addr) test_bit(nr,addr)