Home | History | Annotate | Download | only in asm

Lines Matching refs:nr

56  * @nr: the bit to set
61 * Note that @nr may be almost arbitrarily large; this function is not
65 set_bit(int nr, volatile void *addr)
67 unsigned long *m = ((unsigned long *) addr) + (nr >> 5);
76 : "ir" (1UL << (nr & 0x1f)), "m" (*m));
81 * @nr: the bit to set
88 static __inline__ void __set_bit(int nr, volatile void * addr)
90 unsigned long * m = ((unsigned long *) addr) + (nr >> 5);
92 *m |= 1UL << (nr & 31);
98 * @nr: Bit to clear
107 clear_bit(int nr, volatile void *addr)
109 unsigned long *m = ((unsigned long *) addr) + (nr >> 5);
118 : "ir" (~(1UL << (nr & 0x1f))), "m" (*m));
123 * @nr: Bit to clear
127 * Note that @nr may be almost arbitrarily large; this function is not
131 change_bit(int nr, volatile void *addr)
133 unsigned long *m = ((unsigned long *) addr) + (nr >> 5);
142 : "ir" (1UL << (nr & 0x1f)), "m" (*m));
147 * @nr: the bit to set
154 static __inline__ void __change_bit(int nr, volatile void * addr)
156 unsigned long * m = ((unsigned long *) addr) + (nr >> 5);
158 *m ^= 1UL << (nr & 31);
163 * @nr: Bit to set
170 test_and_set_bit(int nr, volatile void *addr)
172 unsigned long *m = ((unsigned long *) addr) + (nr >> 5);
184 : "r" (1UL << (nr & 0x1f)), "m" (*m)
192 * @nr: Bit to set
199 static __inline__ int __test_and_set_bit(int nr, volatile void * addr)
204 a += nr >> 5;
205 mask = 1 << (nr & 0x1f);
214 * @nr: Bit to set
221 test_and_clear_bit(int nr, volatile void *addr)
223 unsigned long *m = ((unsigned long *) addr) + (nr >> 5);
236 : "r" (1UL << (nr & 0x1f)), "m" (*m)
244 * @nr: Bit to set
251 static __inline__ int __test_and_clear_bit(int nr, volatile void * addr)
256 a += nr >> 5;
257 mask = 1 << (nr & 0x1f);
266 * @nr: Bit to set
273 test_and_change_bit(int nr, volatile void *addr)
275 unsigned long *m = ((unsigned long *) addr) + (nr >> 5);
287 : "r" (1UL << (nr & 0x1f)), "m" (*m)
295 * @nr: Bit to set
302 static __inline__ int __test_and_change_bit(int nr, volatile void * addr)
307 a += nr >> 5;
308 mask = 1 << (nr & 0x1f);
319 * @nr: the bit to set
324 * Note that @nr may be almost arbitrarily large; this function is not
327 static __inline__ void set_bit(int nr, volatile void * addr)
333 a += nr >> 5;
334 mask = 1 << (nr & 0x1f);
342 * @nr: the bit to set
349 static __inline__ void __set_bit(int nr, volatile void * addr)
354 a += nr >> 5;
355 mask = 1 << (nr & 0x1f);
361 * @nr: Bit to clear
369 static __inline__ void clear_bit(int nr, volatile void * addr)
375 a += nr >> 5;
376 mask = 1 << (nr & 0x1f);
384 * @nr: Bit to clear
388 * Note that @nr may be almost arbitrarily large; this function is not
391 static __inline__ void change_bit(int nr, volatile void * addr)
397 a += nr >> 5;
398 mask = 1 << (nr & 0x1f);
406 * @nr: the bit to set
413 static __inline__ void __change_bit(int nr, volatile void * addr)
415 unsigned long * m = ((unsigned long *) addr) + (nr >> 5);
417 *m ^= 1UL << (nr & 31);
422 * @nr: Bit to set
428 static __inline__ int test_and_set_bit(int nr, volatile void * addr)
434 a += nr >> 5;
435 mask = 1 << (nr & 0x1f);
446 * @nr: Bit to set
453 static __inline__ int __test_and_set_bit(int nr, volatile void * addr)
458 a += nr >> 5;
459 mask = 1 << (nr & 0x1f);
468 * @nr: Bit to set
474 static __inline__ int test_and_clear_bit(int nr, volatile void * addr)
480 a += nr >> 5;
481 mask = 1 << (nr & 0x1f);
492 * @nr: Bit to set
499 static __inline__ int __test_and_clear_bit(int nr, volatile void * addr)
504 a += nr >> 5;
505 mask = 1 << (nr & 0x1f);
514 * @nr: Bit to set
520 static __inline__ int test_and_change_bit(int nr, volatile void * addr)
526 a += nr >> 5;
527 mask = 1 << (nr & 0x1f);
538 * @nr: Bit to set
545 static __inline__ int __test_and_change_bit(int nr, volatile void * addr)
550 a += nr >> 5;
551 mask = 1 << (nr & 0x1f);
567 * @nr: bit number to test
570 static __inline__ int test_bit(int nr, const volatile void *addr)
572 return ((1UL << (nr & 31)) & (((const unsigned int *) addr)[nr >> 5])) != 0;
790 static __inline__ int ext2_set_bit(int nr, void * addr)
795 ADDR += nr >> 3;
796 mask = 1 << (nr & 0x07);
804 static __inline__ int ext2_clear_bit(int nr, void * addr)
809 ADDR += nr >> 3;
810 mask = 1 << (nr & 0x07);
818 static __inline__ int ext2_test_bit(int nr, const void * addr)
823 ADDR += nr >> 3;
824 mask = 1 << (nr & 0x07);
883 #define ext2_set_bit(nr, addr) test_and_set_bit((nr), (addr))
884 #define ext2_clear_bit(nr, addr) test_and_clear_bit((nr), (addr))
885 #define ext2_test_bit(nr, addr) test_bit((nr), (addr))
897 #define minix_test_and_set_bit(nr,addr) test_and_set_bit(nr,addr)
898 #define minix_set_bit(nr,addr) set_bit(nr,addr)
899 #define minix_test_and_clear_bit(nr,addr) test_and_clear_bit(nr,addr)
900 #define minix_test_bit(nr,addr) test_bit(nr,addr)