Lines Matching refs:addr
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()
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()
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()
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
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
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
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
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
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
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
608 __constant_test_bit((nr),(addr)) : \
609 __test_bit((nr),(addr)) )
615 find_first_zero_bit(void * addr, unsigned long size) in find_first_zero_bit() argument
652 : "a" (size), "a" (addr), "a" (&_zb_findmap) : "cc" ); in find_first_zero_bit()
657 find_next_zero_bit (void * addr, unsigned long size, unsigned long offset) in find_next_zero_bit() argument
659 unsigned long * p = ((unsigned long *) addr) + (offset >> 6); in find_next_zero_bit()
696 res = find_first_zero_bit (p, size - 64 * (p - (unsigned long *) addr)); in find_next_zero_bit()
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
839 unsigned long *addr = vaddr; in ext2_find_next_zero_bit() local
840 unsigned long *p = addr + (offset >> 6); in ext2_find_next_zero_bit()
876 return (p - addr)*64 + res; in ext2_find_next_zero_bit()
880 res = ext2_find_first_zero_bit (p, size - 64 * (p - addr)); in ext2_find_next_zero_bit()
881 return (p - addr) * 64 + res; in ext2_find_next_zero_bit()
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
890 #define minix_find_first_zero_bit(addr,size) find_first_zero_bit(addr,size) argument