Lines Matching refs:nr

24 static inline int test_and_set_bit(unsigned long nr, volatile void *addr)  in test_and_set_bit()  argument
33 ADDR = ((unsigned long *) addr) + (nr >> 5); in test_and_set_bit()
34 mask = 1 << (nr & 31); in test_and_set_bit()
47 static inline void set_bit(unsigned long nr, volatile void *addr) in set_bit() argument
56 ADDR = ((unsigned long *) addr) + (nr >> 5); in set_bit()
57 mask = 1 << (nr & 31); in set_bit()
68 static inline int test_and_clear_bit(unsigned long nr, volatile void *addr) in test_and_clear_bit() argument
77 ADDR = ((unsigned long *) addr) + (nr >> 5); in test_and_clear_bit()
78 mask = 1 << (nr & 31); in test_and_clear_bit()
91 static inline void clear_bit(unsigned long nr, volatile void *addr) in clear_bit() argument
100 ADDR = ((unsigned long *) addr) + (nr >> 5); in clear_bit()
101 mask = 1 << (nr & 31); in clear_bit()
112 static inline int test_and_change_bit(unsigned long nr, volatile void *addr) in test_and_change_bit() argument
121 ADDR = ((unsigned long *) addr) + (nr >> 5); in test_and_change_bit()
122 mask = 1 << (nr & 31); in test_and_change_bit()
135 static inline void change_bit(unsigned long nr, volatile void *addr) in change_bit() argument
144 ADDR = ((unsigned long *) addr) + (nr >> 5); in change_bit()
145 mask = 1 << (nr & 31); in change_bit()
159 static inline void __set_bit(int nr, volatile void *addr) in __set_bit() argument
161 unsigned long mask = 1UL << (nr & 0x1f); in __set_bit()
162 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in __set_bit()
167 static inline void __clear_bit(int nr, volatile void *addr) in __clear_bit() argument
169 unsigned long mask = 1UL << (nr & 0x1f); in __clear_bit()
170 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in __clear_bit()
175 static inline void __change_bit(int nr, volatile void *addr) in __change_bit() argument
177 unsigned long mask = 1UL << (nr & 0x1f); in __change_bit()
178 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in __change_bit()
183 static inline int __test_and_set_bit(int nr, volatile void *addr) in __test_and_set_bit() argument
185 unsigned long mask = 1UL << (nr & 0x1f); in __test_and_set_bit()
186 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in __test_and_set_bit()
193 static inline int __test_and_clear_bit(int nr, volatile void *addr) in __test_and_clear_bit() argument
195 unsigned long mask = 1UL << (nr & 0x1f); in __test_and_clear_bit()
196 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in __test_and_clear_bit()
203 static inline int __test_and_change_bit(int nr, volatile void *addr) in __test_and_change_bit() argument
205 unsigned long mask = 1UL << (nr & 0x1f); in __test_and_change_bit()
206 unsigned long *p = ((unsigned long *)addr) + (nr >> 5); in __test_and_change_bit()
217 static inline int test_bit(int nr, __const__ void *addr) in test_bit() argument
219 return (1 & (((__const__ unsigned int *) addr)[nr >> 5] >> (nr & 31))) != 0; in test_bit()
299 static inline int test_le_bit(int nr, __const__ void * addr) in test_le_bit() argument
302 return (ADDR[nr >> 3] >> (nr & 7)) & 1; in test_le_bit()
308 static inline void __set_le_bit(int nr, void *addr) in __set_le_bit() argument
312 ADDR += nr >> 3; in __set_le_bit()
313 *ADDR |= 1 << (nr & 0x07); in __set_le_bit()
316 static inline void __clear_le_bit(int nr, void *addr) in __clear_le_bit() argument
320 ADDR += nr >> 3; in __clear_le_bit()
321 *ADDR &= ~(1 << (nr & 0x07)); in __clear_le_bit()
324 static inline int __test_and_set_le_bit(int nr, void *addr) in __test_and_set_le_bit() argument
329 ADDR += nr >> 3; in __test_and_set_le_bit()
330 mask = 1 << (nr & 0x07); in __test_and_set_le_bit()
336 static inline int __test_and_clear_le_bit(int nr, void *addr) in __test_and_clear_le_bit() argument
341 ADDR += nr >> 3; in __test_and_clear_le_bit()
342 mask = 1 << (nr & 0x07); in __test_and_clear_le_bit()
398 #define minix_test_and_set_bit(nr,addr) test_and_set_bit(nr,addr) argument
399 #define minix_set_bit(nr,addr) set_bit(nr,addr) argument
400 #define minix_test_and_clear_bit(nr,addr) test_and_clear_bit(nr,addr) argument
401 #define minix_test_bit(nr,addr) test_bit(nr,addr) argument