Lines Matching refs:nr

55 static __inline__ void set_bit_cs(int nr, volatile void * addr)  in set_bit_cs()  argument
78 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in set_bit_cs()
85 static __inline__ void clear_bit_cs(int nr, volatile void * addr) in clear_bit_cs() argument
110 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) in clear_bit_cs()
117 static __inline__ void change_bit_cs(int nr, volatile void * addr) in change_bit_cs() argument
140 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in change_bit_cs()
147 static __inline__ int test_and_set_bit_cs(int nr, volatile void * addr) in test_and_set_bit_cs() argument
171 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in test_and_set_bit_cs()
173 return nr != 0; in test_and_set_bit_cs()
179 static __inline__ int test_and_clear_bit_cs(int nr, volatile void * addr) in test_and_clear_bit_cs() argument
206 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) in test_and_clear_bit_cs()
208 return nr; in test_and_clear_bit_cs()
214 static __inline__ int test_and_change_bit_cs(int nr, volatile void * addr) in test_and_change_bit_cs() argument
238 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in test_and_change_bit_cs()
240 return nr != 0; in test_and_change_bit_cs()
247 static __inline__ void __set_bit(int nr, volatile void * addr) in __set_bit() argument
260 : "r" (nr), "a" (addr), "a" (&_oi_bitmap) : "cc", "memory" ); in __set_bit()
264 __constant_set_bit(const int nr, volatile void * addr) in __constant_set_bit() argument
266 switch (nr&7) { in __constant_set_bit()
270 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_set_bit()
276 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_set_bit()
282 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_set_bit()
288 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_set_bit()
294 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_set_bit()
300 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_set_bit()
306 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_set_bit()
312 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_set_bit()
318 #define set_bit_simple(nr,addr) \ argument
319 (__builtin_constant_p((nr)) ? \
320 __constant_set_bit((nr),(addr)) : \
321 __set_bit((nr),(addr)) )
327 __clear_bit(int nr, volatile void * addr) in __clear_bit() argument
340 : "r" (nr), "a" (addr), "a" (&_ni_bitmap) : "cc", "memory" ); in __clear_bit()
344 __constant_clear_bit(const int nr, volatile void * addr) in __constant_clear_bit() argument
346 switch (nr&7) { in __constant_clear_bit()
350 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_clear_bit()
356 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_clear_bit()
362 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_clear_bit()
368 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_clear_bit()
374 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_clear_bit()
380 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_clear_bit()
386 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_clear_bit()
392 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_clear_bit()
398 #define clear_bit_simple(nr,addr) \ argument
399 (__builtin_constant_p((nr)) ? \
400 __constant_clear_bit((nr),(addr)) : \
401 __clear_bit((nr),(addr)) )
406 static __inline__ void __change_bit(int nr, volatile void * addr) in __change_bit() argument
419 : "r" (nr), "a" (addr), "a" (&_oi_bitmap) : "cc", "memory" ); in __change_bit()
423 __constant_change_bit(const int nr, volatile void * addr) in __constant_change_bit() argument
425 switch (nr&7) { in __constant_change_bit()
429 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_change_bit()
435 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_change_bit()
441 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_change_bit()
447 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_change_bit()
453 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_change_bit()
459 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_change_bit()
465 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_change_bit()
471 : "=m" (*((volatile char *) addr + ((nr>>3)^3))) in __constant_change_bit()
477 #define change_bit_simple(nr,addr) \ argument
478 (__builtin_constant_p((nr)) ? \
479 __constant_change_bit((nr),(addr)) : \
480 __change_bit((nr),(addr)) )
485 static __inline__ int test_and_set_bit_simple(int nr, volatile void * addr) in test_and_set_bit_simple() argument
501 : "r" (nr), "a" (addr), "a" (&_oi_bitmap) : "cc", "memory" ); in test_and_set_bit_simple()
509 static __inline__ int test_and_clear_bit_simple(int nr, volatile void * addr) in test_and_clear_bit_simple() argument
526 : "r" (nr), "a" (addr), "a" (&_ni_bitmap) : "cc", "memory" ); in test_and_clear_bit_simple()
534 static __inline__ int test_and_change_bit_simple(int nr, volatile void * addr) in test_and_change_bit_simple() argument
551 : "r" (nr), "a" (addr), "a" (&_oi_bitmap) : "cc", "memory" ); in test_and_change_bit_simple()
577 static __inline__ int __test_bit(int nr, volatile void * addr) in __test_bit() argument
591 : "r" (nr), "a" (addr) : "cc" ); in __test_bit()
595 static __inline__ int __constant_test_bit(int nr, volatile void * addr) { in __constant_test_bit() argument
596 return (((volatile char *) addr)[(nr>>3)^3] & (1<<(nr&7))) != 0; in __constant_test_bit()
599 #define test_bit(nr,addr) \ argument
600 (__builtin_constant_p((nr)) ? \
601 __constant_test_bit((nr),(addr)) : \
602 __test_bit((nr),(addr)) )
769 #define ext2_set_bit(nr, addr) test_and_set_bit((nr)^24, addr) argument
770 #define ext2_clear_bit(nr, addr) test_and_clear_bit((nr)^24, addr) argument
771 #define ext2_test_bit(nr, addr) test_bit((nr)^24, addr) argument
856 #define minix_test_and_set_bit(nr,addr) test_and_set_bit(nr,addr) argument
857 #define minix_set_bit(nr,addr) set_bit(nr,addr) argument
858 #define minix_test_and_clear_bit(nr,addr) test_and_clear_bit(nr,addr) argument
859 #define minix_test_bit(nr,addr) test_bit(nr,addr) argument