Lines Matching refs:addr
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()
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()
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()
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
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
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
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
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
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
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
601 __constant_test_bit((nr),(addr)) : \
602 __test_bit((nr),(addr)) )
607 static __inline__ int find_first_zero_bit(void * addr, unsigned size) in find_first_zero_bit() argument
641 : "a" (size), "a" (addr), "a" (&_zb_findmap) : "cc" ); in find_first_zero_bit()
645 static __inline__ int find_next_zero_bit (void * addr, int size, int offset) in find_next_zero_bit() argument
647 unsigned long * p = ((unsigned long *) addr) + (offset >> 5); in find_next_zero_bit()
679 res = find_first_zero_bit (p, size - 32 * (p - (unsigned long *) addr)); in find_next_zero_bit()
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
814 unsigned long *addr = vaddr; in ext2_find_next_zero_bit() local
815 unsigned long *p = addr + (offset >> 5); in ext2_find_next_zero_bit()
846 return (p - addr)*32 + res; in ext2_find_next_zero_bit()
850 res = ext2_find_first_zero_bit (p, size - 32 * (p - addr)); in ext2_find_next_zero_bit()
851 return (p - addr) * 32 + res; in ext2_find_next_zero_bit()
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
860 #define minix_find_first_zero_bit(addr,size) find_first_zero_bit(addr,size) argument