• Home
  • Raw
  • Download

Lines Matching refs:nr

65 set_bit(int nr, volatile void *addr)  in set_bit()  argument
67 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in set_bit()
76 : "ir" (1UL << (nr & 0x1f)), "m" (*m)); in set_bit()
88 static __inline__ void __set_bit(int nr, volatile void * addr) in __set_bit() argument
90 unsigned long * m = ((unsigned long *) addr) + (nr >> 5); in __set_bit()
92 *m |= 1UL << (nr & 31); in __set_bit()
107 clear_bit(int nr, volatile void *addr) in clear_bit() argument
109 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in clear_bit()
118 : "ir" (~(1UL << (nr & 0x1f))), "m" (*m)); in clear_bit()
131 change_bit(int nr, volatile void *addr) in change_bit() argument
133 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in change_bit()
142 : "ir" (1UL << (nr & 0x1f)), "m" (*m)); in change_bit()
154 static __inline__ void __change_bit(int nr, volatile void * addr) in __change_bit() argument
156 unsigned long * m = ((unsigned long *) addr) + (nr >> 5); in __change_bit()
158 *m ^= 1UL << (nr & 31); in __change_bit()
170 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()
184 : "r" (1UL << (nr & 0x1f)), "m" (*m) in test_and_set_bit()
199 static __inline__ int __test_and_set_bit(int nr, volatile void * addr) in __test_and_set_bit() argument
204 a += nr >> 5; in __test_and_set_bit()
205 mask = 1 << (nr & 0x1f); in __test_and_set_bit()
221 test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() argument
223 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in test_and_clear_bit()
236 : "r" (1UL << (nr & 0x1f)), "m" (*m) in test_and_clear_bit()
251 static __inline__ int __test_and_clear_bit(int nr, volatile void * addr) in __test_and_clear_bit() argument
256 a += nr >> 5; in __test_and_clear_bit()
257 mask = 1 << (nr & 0x1f); in __test_and_clear_bit()
273 test_and_change_bit(int nr, volatile void *addr) in test_and_change_bit() argument
275 unsigned long *m = ((unsigned long *) addr) + (nr >> 5); in test_and_change_bit()
287 : "r" (1UL << (nr & 0x1f)), "m" (*m) in test_and_change_bit()
302 static __inline__ int __test_and_change_bit(int nr, volatile void * addr) in __test_and_change_bit() argument
307 a += nr >> 5; in __test_and_change_bit()
308 mask = 1 << (nr & 0x1f); in __test_and_change_bit()
327 static __inline__ void set_bit(int nr, volatile void * addr) in set_bit() argument
333 a += nr >> 5; in set_bit()
334 mask = 1 << (nr & 0x1f); in set_bit()
349 static __inline__ void __set_bit(int nr, volatile void * addr) in __set_bit() argument
354 a += nr >> 5; in __set_bit()
355 mask = 1 << (nr & 0x1f); in __set_bit()
369 static __inline__ void clear_bit(int nr, volatile void * addr) in clear_bit() argument
375 a += nr >> 5; in clear_bit()
376 mask = 1 << (nr & 0x1f); in clear_bit()
391 static __inline__ void change_bit(int nr, volatile void * addr) in change_bit() argument
397 a += nr >> 5; in change_bit()
398 mask = 1 << (nr & 0x1f); in change_bit()
413 static __inline__ void __change_bit(int nr, volatile void * addr) in __change_bit() argument
415 unsigned long * m = ((unsigned long *) addr) + (nr >> 5); in __change_bit()
417 *m ^= 1UL << (nr & 31); in __change_bit()
428 static __inline__ int test_and_set_bit(int nr, volatile void * addr) in test_and_set_bit() argument
434 a += nr >> 5; in test_and_set_bit()
435 mask = 1 << (nr & 0x1f); in test_and_set_bit()
453 static __inline__ int __test_and_set_bit(int nr, volatile void * addr) in __test_and_set_bit() argument
458 a += nr >> 5; in __test_and_set_bit()
459 mask = 1 << (nr & 0x1f); in __test_and_set_bit()
474 static __inline__ int test_and_clear_bit(int nr, volatile void * addr) in test_and_clear_bit() argument
480 a += nr >> 5; in test_and_clear_bit()
481 mask = 1 << (nr & 0x1f); in test_and_clear_bit()
499 static __inline__ int __test_and_clear_bit(int nr, volatile void * addr) in __test_and_clear_bit() argument
504 a += nr >> 5; in __test_and_clear_bit()
505 mask = 1 << (nr & 0x1f); in __test_and_clear_bit()
520 static __inline__ int test_and_change_bit(int nr, volatile void * addr) in test_and_change_bit() argument
526 a += nr >> 5; in test_and_change_bit()
527 mask = 1 << (nr & 0x1f); in test_and_change_bit()
545 static __inline__ int __test_and_change_bit(int nr, volatile void * addr) in __test_and_change_bit() argument
550 a += nr >> 5; in __test_and_change_bit()
551 mask = 1 << (nr & 0x1f); in __test_and_change_bit()
570 static __inline__ int test_bit(int nr, const volatile void *addr) in test_bit() argument
572 return ((1UL << (nr & 31)) & (((const unsigned int *) addr)[nr >> 5])) != 0; in test_bit()
790 static __inline__ int ext2_set_bit(int nr, void * addr) in ext2_set_bit() argument
795 ADDR += nr >> 3; in ext2_set_bit()
796 mask = 1 << (nr & 0x07); in ext2_set_bit()
804 static __inline__ int ext2_clear_bit(int nr, void * addr) in ext2_clear_bit() argument
809 ADDR += nr >> 3; in ext2_clear_bit()
810 mask = 1 << (nr & 0x07); in ext2_clear_bit()
818 static __inline__ int ext2_test_bit(int nr, const void * addr) in ext2_test_bit() argument
823 ADDR += nr >> 3; in ext2_test_bit()
824 mask = 1 << (nr & 0x07); in ext2_test_bit()
883 #define ext2_set_bit(nr, addr) test_and_set_bit((nr), (addr)) argument
884 #define ext2_clear_bit(nr, addr) test_and_clear_bit((nr), (addr)) argument
885 #define ext2_test_bit(nr, addr) test_bit((nr), (addr)) argument
897 #define minix_test_and_set_bit(nr,addr) test_and_set_bit(nr,addr) argument
898 #define minix_set_bit(nr,addr) set_bit(nr,addr) argument
899 #define minix_test_and_clear_bit(nr,addr) test_and_clear_bit(nr,addr) argument
900 #define minix_test_bit(nr,addr) test_bit(nr,addr) argument