Lines Matching refs:nr

69 static __inline__ void set_bit(int nr, volatile void *addr)  in set_bit()  argument
71 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in set_bit()
80 : "ir" (1UL << (nr & 0x1f)), "m" (*m)); in set_bit()
92 static __inline__ void __set_bit(int nr, volatile void * addr) in __set_bit() argument
94 unsigned long * m = ((unsigned long *) addr) + (nr >> 5); in __set_bit()
96 *m |= 1UL << (nr & 31); in __set_bit()
109 static __inline__ void clear_bit(int nr, volatile void *addr) in clear_bit() argument
111 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in clear_bit()
120 : "ir" (~(1UL << (nr & 0x1f))), "m" (*m)); in clear_bit()
132 static __inline__ void change_bit(int nr, volatile void *addr) in change_bit() argument
134 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in change_bit()
143 : "ir" (1UL << (nr & 0x1f)), "m" (*m)); in change_bit()
155 static __inline__ void __change_bit(int nr, volatile void * addr) in __change_bit() argument
157 unsigned long * m = ((unsigned long *) addr) + (nr >> 5); in __change_bit()
159 *m ^= 1UL << (nr & 31); in __change_bit()
170 static __inline__ int test_and_set_bit(int nr, volatile void *addr) in test_and_set_bit() argument
172 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in test_and_set_bit()
188 : "r" (1UL << (nr & 0x1f)), "m" (*m) in test_and_set_bit()
203 static __inline__ int __test_and_set_bit(int nr, volatile void * addr) in __test_and_set_bit() argument
209 a += nr >> 5; in __test_and_set_bit()
210 mask = 1 << (nr & 0x1f); in __test_and_set_bit()
225 static __inline__ int test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() argument
227 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in test_and_clear_bit()
243 : "r" (1UL << (nr & 0x1f)), "m" (*m) in test_and_clear_bit()
258 static __inline__ int __test_and_clear_bit(int nr, volatile void * addr) in __test_and_clear_bit() argument
263 a += nr >> 5; in __test_and_clear_bit()
264 mask = 1 << (nr & 0x1f); in __test_and_clear_bit()
279 static __inline__ int test_and_change_bit(int nr, volatile void *addr) in test_and_change_bit() argument
281 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in test_and_change_bit()
296 : "r" (1UL << (nr & 0x1f)), "m" (*m) in test_and_change_bit()
311 static __inline__ int __test_and_change_bit(int nr, volatile void * addr) in __test_and_change_bit() argument
317 a += nr >> 5; in __test_and_change_bit()
318 mask = 1 << (nr & 0x1f); in __test_and_change_bit()
337 static __inline__ void set_bit(int nr, volatile void * addr) in set_bit() argument
343 a += nr >> 5; in set_bit()
344 mask = 1 << (nr & 0x1f); in set_bit()
359 static __inline__ void __set_bit(int nr, volatile void * addr) in __set_bit() argument
364 a += nr >> 5; in __set_bit()
365 mask = 1 << (nr & 0x1f); in __set_bit()
379 static __inline__ void clear_bit(int nr, volatile void * addr) in clear_bit() argument
385 a += nr >> 5; in clear_bit()
386 mask = 1 << (nr & 0x1f); in clear_bit()
401 static __inline__ void change_bit(int nr, volatile void * addr) in change_bit() argument
407 a += nr >> 5; in change_bit()
408 mask = 1 << (nr & 0x1f); in change_bit()
423 static __inline__ void __change_bit(int nr, volatile void * addr) in __change_bit() argument
425 unsigned long * m = ((unsigned long *) addr) + (nr >> 5); in __change_bit()
427 *m ^= 1UL << (nr & 31); in __change_bit()
438 static __inline__ int test_and_set_bit(int nr, volatile void * addr) in test_and_set_bit() argument
445 a += nr >> 5; in test_and_set_bit()
446 mask = 1 << (nr & 0x1f); in test_and_set_bit()
464 static __inline__ int __test_and_set_bit(int nr, volatile void * addr) in __test_and_set_bit() argument
470 a += nr >> 5; in __test_and_set_bit()
471 mask = 1 << (nr & 0x1f); in __test_and_set_bit()
486 static __inline__ int test_and_clear_bit(int nr, volatile void * addr) in test_and_clear_bit() argument
493 a += nr >> 5; in test_and_clear_bit()
494 mask = 1 << (nr & 0x1f); in test_and_clear_bit()
512 static __inline__ int __test_and_clear_bit(int nr, volatile void * addr) in __test_and_clear_bit() argument
518 a += nr >> 5; in __test_and_clear_bit()
519 mask = 1 << (nr & 0x1f); in __test_and_clear_bit()
534 static __inline__ int test_and_change_bit(int nr, volatile void * addr) in test_and_change_bit() argument
540 a += nr >> 5; in test_and_change_bit()
541 mask = 1 << (nr & 0x1f); in test_and_change_bit()
559 static __inline__ int __test_and_change_bit(int nr, volatile void * addr) in __test_and_change_bit() argument
565 a += nr >> 5; in __test_and_change_bit()
566 mask = 1 << (nr & 0x1f); in __test_and_change_bit()
585 static inline int test_bit(int nr, volatile void *addr) in test_bit() argument
587 return 1UL & (((const volatile unsigned long *) addr)[nr >> SZLONG_LOG] >> (nr & SZLONG_MASK)); in test_bit()
698 static __inline__ int __test_and_set_le_bit(int nr, void * addr) in __test_and_set_le_bit() argument
703 ADDR += nr >> 3; in __test_and_set_le_bit()
704 mask = 1 << (nr & 0x07); in __test_and_set_le_bit()
711 static __inline__ int __test_and_clear_le_bit(int nr, void * addr) in __test_and_clear_le_bit() argument
716 ADDR += nr >> 3; in __test_and_clear_le_bit()
717 mask = 1 << (nr & 0x07); in __test_and_clear_le_bit()
724 static __inline__ int test_le_bit(int nr, const void * addr) in test_le_bit() argument
729 ADDR += nr >> 3; in test_le_bit()
730 mask = 1 << (nr & 0x07); in test_le_bit()
805 #define minix_test_and_set_bit(nr,addr) test_and_set_bit(nr,addr) argument
806 #define minix_set_bit(nr,addr) set_bit(nr,addr) argument
807 #define minix_test_and_clear_bit(nr,addr) test_and_clear_bit(nr,addr) argument
808 #define minix_test_bit(nr,addr) test_bit(nr,addr) argument