Lines Matching refs:nr

59 static __inline__ void set_bit_cs(unsigned long nr, volatile void * addr)  in set_bit_cs()  argument
82 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in set_bit_cs()
89 static __inline__ void clear_bit_cs(unsigned long nr, volatile void * addr) in clear_bit_cs() argument
113 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in clear_bit_cs()
120 static __inline__ void change_bit_cs(unsigned long nr, volatile void * addr) in change_bit_cs() argument
143 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in change_bit_cs()
151 test_and_set_bit_cs(unsigned long nr, volatile void * addr) in test_and_set_bit_cs() argument
175 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in test_and_set_bit_cs()
177 return nr != 0; in test_and_set_bit_cs()
184 test_and_clear_bit_cs(unsigned long nr, volatile void * addr) in test_and_clear_bit_cs() argument
208 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in test_and_clear_bit_cs()
210 return nr != 0; in test_and_clear_bit_cs()
217 test_and_change_bit_cs(unsigned long nr, volatile void * addr) in test_and_change_bit_cs() argument
241 : "+a" (nr), "+a" (addr), "=&a" (bits), "=&d" (mask) : in test_and_change_bit_cs()
243 return nr != 0; in test_and_change_bit_cs()
250 static __inline__ void __set_bit(unsigned long nr, volatile void * addr) in __set_bit() argument
263 : "a" (nr), "a" (addr), "a" (&_oi_bitmap) : "cc", "memory" ); in __set_bit()
267 __constant_set_bit(const unsigned long nr, volatile void * addr) in __constant_set_bit() argument
269 switch (nr&7) { in __constant_set_bit()
273 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_set_bit()
279 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_set_bit()
285 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_set_bit()
291 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_set_bit()
297 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_set_bit()
303 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_set_bit()
309 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_set_bit()
315 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_set_bit()
321 #define set_bit_simple(nr,addr) \ argument
322 (__builtin_constant_p((nr)) ? \
323 __constant_set_bit((nr),(addr)) : \
324 __set_bit((nr),(addr)) )
330 __clear_bit(unsigned long nr, volatile void * addr) in __clear_bit() argument
343 : "d" (nr), "a" (addr), "a" (&_ni_bitmap) : "cc", "memory" ); in __clear_bit()
347 __constant_clear_bit(const unsigned long nr, volatile void * addr) in __constant_clear_bit() argument
349 switch (nr&7) { in __constant_clear_bit()
353 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_clear_bit()
359 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_clear_bit()
365 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_clear_bit()
371 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_clear_bit()
377 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_clear_bit()
383 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_clear_bit()
389 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_clear_bit()
395 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_clear_bit()
401 #define clear_bit_simple(nr,addr) \ argument
402 (__builtin_constant_p((nr)) ? \
403 __constant_clear_bit((nr),(addr)) : \
404 __clear_bit((nr),(addr)) )
409 static __inline__ void __change_bit(unsigned long nr, volatile void * addr) in __change_bit() argument
422 : "d" (nr), "a" (addr), "a" (&_oi_bitmap) : "cc", "memory" ); in __change_bit()
426 __constant_change_bit(const unsigned long nr, volatile void * addr) in __constant_change_bit() argument
428 switch (nr&7) { in __constant_change_bit()
432 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_change_bit()
438 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_change_bit()
444 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_change_bit()
450 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_change_bit()
456 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_change_bit()
462 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_change_bit()
468 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_change_bit()
474 : "=m" (*((volatile char *) addr + ((nr>>3)^7))) in __constant_change_bit()
480 #define change_bit_simple(nr,addr) \ argument
481 (__builtin_constant_p((nr)) ? \
482 __constant_change_bit((nr),(addr)) : \
483 __change_bit((nr),(addr)) )
489 test_and_set_bit_simple(unsigned long nr, volatile void * addr) in test_and_set_bit_simple() argument
505 : "d" (nr), "a" (addr), "a" (&_oi_bitmap) : "cc", "memory" ); in test_and_set_bit_simple()
514 test_and_clear_bit_simple(unsigned long nr, volatile void * addr) in test_and_clear_bit_simple() argument
531 : "d" (nr), "a" (addr), "a" (&_ni_bitmap) : "cc", "memory" ); in test_and_clear_bit_simple()
540 test_and_change_bit_simple(unsigned long nr, volatile void * addr) in test_and_change_bit_simple() argument
557 : "d" (nr), "a" (addr), "a" (&_oi_bitmap) : "cc", "memory" ); in test_and_change_bit_simple()
583 static __inline__ int __test_bit(unsigned long nr, volatile void * addr) in __test_bit() argument
597 : "d" (nr), "a" (addr) : "cc" ); in __test_bit()
602 __constant_test_bit(unsigned long nr, volatile void * addr) { in __constant_test_bit() argument
603 return (((volatile char *) addr)[(nr>>3)^7] & (1<<(nr&7))) != 0; in __constant_test_bit()
606 #define test_bit(nr,addr) \ argument
607 (__builtin_constant_p((nr)) ? \
608 __constant_test_bit((nr),(addr)) : \
609 __test_bit((nr),(addr)) )
791 #define ext2_set_bit(nr, addr) test_and_set_bit((nr)^56, addr) argument
792 #define ext2_clear_bit(nr, addr) test_and_clear_bit((nr)^56, addr) argument
793 #define ext2_test_bit(nr, addr) test_bit((nr)^56, addr) argument
886 #define minix_test_and_set_bit(nr,addr) test_and_set_bit(nr,addr) argument
887 #define minix_set_bit(nr,addr) set_bit(nr,addr) argument
888 #define minix_test_and_clear_bit(nr,addr) test_and_clear_bit(nr,addr) argument
889 #define minix_test_bit(nr,addr) test_bit(nr,addr) argument