Lines Matching refs:nr
14 extern int test_and_set_bit(unsigned long nr, volatile void *addr);
15 extern int test_and_clear_bit(unsigned long nr, volatile void *addr);
16 extern int test_and_change_bit(unsigned long nr, volatile void *addr);
17 extern void set_bit(unsigned long nr, volatile void *addr);
18 extern void clear_bit(unsigned long nr, volatile void *addr);
19 extern void change_bit(unsigned long nr, volatile void *addr);
23 static __inline__ void __set_bit(int nr, volatile void *addr) in __set_bit() argument
27 m = ((unsigned long *)addr) + (nr >> 6); in __set_bit()
28 *m |= (1UL << (nr & 63)); in __set_bit()
31 static __inline__ void __clear_bit(int nr, volatile void *addr) in __clear_bit() argument
35 m = ((unsigned long *)addr) + (nr >> 6); in __clear_bit()
36 *m &= ~(1UL << (nr & 63)); in __clear_bit()
39 static __inline__ void __change_bit(int nr, volatile void *addr) in __change_bit() argument
43 m = ((unsigned long *)addr) + (nr >> 6); in __change_bit()
44 *m ^= (1UL << (nr & 63)); in __change_bit()
47 static __inline__ int __test_and_set_bit(int nr, volatile void *addr) in __test_and_set_bit() argument
49 unsigned long *m = ((unsigned long *)addr) + (nr >> 6); in __test_and_set_bit()
51 unsigned long mask = (1UL << (nr & 63)); in __test_and_set_bit()
57 static __inline__ int __test_and_clear_bit(int nr, volatile void *addr) in __test_and_clear_bit() argument
59 unsigned long *m = ((unsigned long *)addr) + (nr >> 6); in __test_and_clear_bit()
61 unsigned long mask = (1UL << (nr & 63)); in __test_and_clear_bit()
67 static __inline__ int __test_and_change_bit(int nr, volatile void *addr) in __test_and_change_bit() argument
69 unsigned long *m = ((unsigned long *)addr) + (nr >> 6); in __test_and_change_bit()
71 unsigned long mask = (1UL << (nr & 63)); in __test_and_change_bit()
85 static __inline__ int test_bit(int nr, __const__ volatile void *_addr) in test_bit() argument
91 return (1UL & ((addr)[nr >> 6] >> (nr & 63))) != 0UL; in test_bit()
239 #define test_and_set_le_bit(nr,addr) \ argument
240 test_and_set_bit((nr) ^ 0x38, (addr))
241 #define test_and_clear_le_bit(nr,addr) \ argument
242 test_and_clear_bit((nr) ^ 0x38, (addr))
244 static __inline__ int test_le_bit(int nr, __const__ void *addr) in test_le_bit() argument
249 ADDR += nr >> 3; in test_le_bit()
250 mask = 1 << (nr & 0x07); in test_le_bit()
296 #define __set_le_bit(nr, addr) \ argument
297 __set_bit((nr) ^ 0x38, (addr))
298 #define __clear_le_bit(nr, addr) \ argument
299 __clear_bit((nr) ^ 0x38, (addr))
300 #define __test_and_clear_le_bit(nr, addr) \ argument
301 __test_and_clear_bit((nr) ^ 0x38, (addr))
302 #define __test_and_set_le_bit(nr, addr) \ argument
303 __test_and_set_bit((nr) ^ 0x38, (addr))
305 #define ext2_set_bit(nr,addr) \ argument
306 __test_and_set_le_bit((nr),(unsigned long *)(addr))
307 #define ext2_set_bit_atomic(lock,nr,addr) \ argument
308 test_and_set_le_bit((nr),(unsigned long *)(addr))
309 #define ext2_clear_bit(nr,addr) \ argument
310 __test_and_clear_le_bit((nr),(unsigned long *)(addr))
311 #define ext2_clear_bit_atomic(lock,nr,addr) \ argument
312 test_and_clear_le_bit((nr),(unsigned long *)(addr))
313 #define ext2_test_bit(nr,addr) \ argument
314 test_le_bit((nr),(unsigned long *)(addr))
321 #define minix_test_and_set_bit(nr,addr) \ argument
322 test_and_set_bit((nr),(unsigned long *)(addr))
323 #define minix_set_bit(nr,addr) \ argument
324 set_bit((nr),(unsigned long *)(addr))
325 #define minix_test_and_clear_bit(nr,addr) \ argument
326 test_and_clear_bit((nr),(unsigned long *)(addr))
327 #define minix_test_bit(nr,addr) \ argument
328 test_bit((nr),(unsigned long *)(addr))