Lines Matching refs:nr

31 static __inline__ void set_bit(int nr, volatile void * addr)  in set_bit()  argument
34 unsigned long mask = 1 << (nr & 0x1f); in set_bit()
35 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in set_bit()
48 static __inline__ void clear_bit(int nr, volatile void *addr) in clear_bit() argument
51 unsigned long mask = 1 << (nr & 0x1f); in clear_bit()
52 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in clear_bit()
65 static __inline__ void change_bit(int nr, volatile void *addr) in change_bit() argument
68 unsigned long mask = 1 << (nr & 0x1f); in change_bit()
69 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in change_bit()
82 static __inline__ int test_and_set_bit(int nr, volatile void *addr) in test_and_set_bit() argument
85 unsigned int mask = 1 << (nr & 0x1f); in test_and_set_bit()
86 volatile unsigned int *p = ((volatile unsigned int *)addr) + (nr >> 5); in test_and_set_bit()
101 static __inline__ int test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() argument
104 unsigned int mask = 1 << (nr & 0x1f); in test_and_clear_bit()
105 volatile unsigned int *p = ((volatile unsigned int *)addr) + (nr >> 5); in test_and_clear_bit()
120 static __inline__ int test_and_change_bit(int nr, volatile void *addr) in test_and_change_bit() argument
123 unsigned int mask = 1 << (nr & 0x1f); in test_and_change_bit()
124 volatile unsigned int *p = ((volatile unsigned int *)addr) + (nr >> 5); in test_and_change_bit()
140 static __inline__ int test_bit(int nr, __const__ volatile void *addr) in test_bit() argument
144 return ((p[nr >> 5] >> (nr & 0x1f)) & 1) != 0; in test_bit()
281 #define ext2_set_bit(nr, addr) test_and_set_bit((nr) ^ 0x18, addr) argument
282 #define ext2_clear_bit(nr, addr) test_and_clear_bit((nr) ^ 0x18, addr) argument
285 static __inline__ int ext2_set_bit(int nr, void * addr) in ext2_set_bit() argument
291 ADDR += nr >> 3; in ext2_set_bit()
292 mask = 1 << (nr & 0x07); in ext2_set_bit()
298 static __inline__ int ext2_clear_bit(int nr, void * addr) in ext2_clear_bit() argument
304 ADDR += nr >> 3; in ext2_clear_bit()
305 mask = 1 << (nr & 0x07); in ext2_clear_bit()
312 static __inline__ int ext2_test_bit(int nr, __const__ void * addr) in ext2_test_bit() argument
316 return (ADDR[nr >> 3] >> (nr & 7)) & 1; in ext2_test_bit()
364 #define minix_test_and_set_bit(nr,addr) ext2_set_bit(nr,addr) argument
365 #define minix_set_bit(nr,addr) ((void)ext2_set_bit(nr,addr)) argument
366 #define minix_test_and_clear_bit(nr,addr) ext2_clear_bit(nr,addr) argument
367 #define minix_test_bit(nr,addr) ext2_test_bit(nr,addr) argument