Lines Matching refs:nr
29 static __inline__ void set_bit(int nr, volatile void * addr) in set_bit() argument
32 unsigned long mask = 1 << (nr & 0x1f); in set_bit()
33 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in set_bit()
49 static __inline__ void __set_bit(int nr, volatile void *addr) in __set_bit() argument
51 unsigned long mask = 1 << (nr & 0x1f); in __set_bit()
52 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in __set_bit()
63 static __inline__ void clear_bit(int nr, volatile void *addr) in clear_bit() argument
66 unsigned long mask = 1 << (nr & 0x1f); in clear_bit()
67 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in clear_bit()
83 static __inline__ void __clear_bit(int nr, volatile void *addr) in __clear_bit() argument
85 unsigned long mask = 1 << (nr & 0x1f); in __clear_bit()
86 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in __clear_bit()
91 static __inline__ void change_bit(int nr, volatile void *addr) in change_bit() argument
94 unsigned long mask = 1 << (nr & 0x1f); in change_bit()
95 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in change_bit()
111 static __inline__ void __change_bit(int nr, volatile void *addr) in __change_bit() argument
113 unsigned long mask = 1 << (nr & 0x1f); in __change_bit()
114 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in __change_bit()
122 static __inline__ int test_and_set_bit(int nr, volatile void *addr) in test_and_set_bit() argument
125 unsigned int mask = 1 << (nr & 0x1f); in test_and_set_bit()
126 volatile unsigned int *p = ((volatile unsigned int *)addr) + (nr >> 5); in test_and_set_bit()
145 static __inline__ int __test_and_set_bit(int nr, volatile void *addr) in __test_and_set_bit() argument
147 unsigned long mask = 1 << (nr & 0x1f); in __test_and_set_bit()
148 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in __test_and_set_bit()
155 static __inline__ int test_and_clear_bit(int nr, volatile void *addr) in test_and_clear_bit() argument
158 unsigned int mask = 1 << (nr & 0x1f); in test_and_clear_bit()
159 volatile unsigned int *p = ((volatile unsigned int *)addr) + (nr >> 5); in test_and_clear_bit()
178 static __inline__ int __test_and_clear_bit(int nr, volatile void *addr) in __test_and_clear_bit() argument
180 unsigned long mask = 1 << (nr & 0x1f); in __test_and_clear_bit()
181 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in __test_and_clear_bit()
188 static __inline__ int test_and_change_bit(int nr, volatile void *addr) in test_and_change_bit() argument
191 unsigned int mask = 1 << (nr & 0x1f); in test_and_change_bit()
192 volatile unsigned int *p = ((volatile unsigned int *)addr) + (nr >> 5); in test_and_change_bit()
211 static __inline__ int __test_and_change_bit(int nr, volatile void *addr) in __test_and_change_bit() argument
213 unsigned long mask = 1 << (nr & 0x1f); in __test_and_change_bit()
214 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in __test_and_change_bit()
221 static __inline__ int test_bit(int nr, __const__ volatile void *addr) in test_bit() argument
225 return ((p[nr >> 5] >> (nr & 0x1f)) & 1) != 0; in test_bit()
309 #define ext2_set_bit(nr, addr) __test_and_set_bit((nr) ^ 0x18, addr) argument
310 #define ext2_clear_bit(nr, addr) __test_and_clear_bit((nr) ^ 0x18, addr) argument
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()
366 #define minix_test_and_set_bit(nr,addr) ext2_set_bit(nr,addr) argument
367 #define minix_set_bit(nr,addr) ((void)ext2_set_bit(nr,addr)) argument
368 #define minix_test_and_clear_bit(nr,addr) ext2_clear_bit(nr,addr) argument
369 #define minix_test_bit(nr,addr) ext2_test_bit(nr,addr) argument