Lines Matching refs:nr
44 static __inline__ int test_bit(unsigned long nr, __const__ volatile void *addr) in test_bit() argument
46 return (1UL & (((__const__ long *) addr)[nr >> 6] >> (nr & 63))); in test_bit()
49 static __inline__ void set_bit(unsigned long nr, volatile void *addr) in set_bit() argument
52 unsigned long mask = 1UL << (nr & 0x3f); in set_bit()
53 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in set_bit()
65 static __inline__ void clear_bit(unsigned long nr, volatile void *addr) in clear_bit() argument
68 unsigned long mask = 1UL << (nr & 0x3f); in clear_bit()
69 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in clear_bit()
81 static __inline__ void change_bit(unsigned long nr, volatile void *addr) in change_bit() argument
84 unsigned long mask = 1UL << (nr & 0x3f); in change_bit()
85 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in change_bit()
97 static __inline__ int test_and_set_bit(unsigned long nr, volatile void *addr) in test_and_set_bit() argument
100 unsigned long mask = 1UL << (nr & 0x3f); in test_and_set_bit()
101 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in test_and_set_bit()
117 static __inline__ int test_and_clear_bit(unsigned long nr, volatile void *addr) in test_and_clear_bit() argument
120 unsigned long mask = 1UL << (nr & 0x3f); in test_and_clear_bit()
121 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in test_and_clear_bit()
137 static __inline__ int test_and_change_bit(unsigned long nr, volatile void *addr) in test_and_change_bit() argument
140 unsigned long mask = 1UL << (nr & 0x3f); in test_and_change_bit()
141 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in test_and_change_bit()
160 static __inline__ void __set_bit(unsigned long nr, volatile void *addr) in __set_bit() argument
162 unsigned long mask = 1UL << (nr & 0x3f); in __set_bit()
163 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in __set_bit()
168 static __inline__ void __clear_bit(unsigned long nr, volatile void *addr) in __clear_bit() argument
170 unsigned long mask = 1UL << (nr & 0x3f); in __clear_bit()
171 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in __clear_bit()
176 static __inline__ void __change_bit(unsigned long nr, volatile void *addr) in __change_bit() argument
178 unsigned long mask = 1UL << (nr & 0x3f); in __change_bit()
179 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in __change_bit()
184 static __inline__ int __test_and_set_bit(unsigned long nr, volatile void *addr) in __test_and_set_bit() argument
186 unsigned long mask = 1UL << (nr & 0x3f); in __test_and_set_bit()
187 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in __test_and_set_bit()
194 static __inline__ int __test_and_clear_bit(unsigned long nr, volatile void *addr) in __test_and_clear_bit() argument
196 unsigned long mask = 1UL << (nr & 0x3f); in __test_and_clear_bit()
197 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in __test_and_clear_bit()
204 static __inline__ int __test_and_change_bit(unsigned long nr, volatile void *addr) in __test_and_change_bit() argument
206 unsigned long mask = 1UL << (nr & 0x3f); in __test_and_change_bit()
207 unsigned long *p = ((unsigned long *)addr) + (nr >> 6); in __test_and_change_bit()
308 static __inline__ int test_le_bit(unsigned long nr, __const__ unsigned long * addr) in test_le_bit() argument
311 return (ADDR[nr >> 3] >> (nr & 7)) & 1; in test_le_bit()
317 static __inline__ void __set_le_bit(unsigned long nr, unsigned long *addr) in __set_le_bit() argument
321 ADDR += nr >> 3; in __set_le_bit()
322 *ADDR |= 1 << (nr & 0x07); in __set_le_bit()
325 static __inline__ void __clear_le_bit(unsigned long nr, unsigned long *addr) in __clear_le_bit() argument
329 ADDR += nr >> 3; in __clear_le_bit()
330 *ADDR &= ~(1 << (nr & 0x07)); in __clear_le_bit()
333 static __inline__ int __test_and_set_le_bit(unsigned long nr, unsigned long *addr) in __test_and_set_le_bit() argument
338 ADDR += nr >> 3; in __test_and_set_le_bit()
339 mask = 1 << (nr & 0x07); in __test_and_set_le_bit()
345 static __inline__ int __test_and_clear_le_bit(unsigned long nr, unsigned long *addr) in __test_and_clear_le_bit() argument
350 ADDR += nr >> 3; in __test_and_clear_le_bit()
351 mask = 1 << (nr & 0x07); in __test_and_clear_le_bit()
357 #define ext2_set_bit(nr,addr) \ argument
358 __test_and_set_le_bit((nr),(unsigned long*)addr)
359 #define ext2_clear_bit(nr, addr) \ argument
360 __test_and_clear_le_bit((nr),(unsigned long*)addr)
361 #define ext2_test_bit(nr, addr) test_le_bit((nr),(unsigned long*)addr) argument
367 #define minix_test_and_set_bit(nr,addr) test_and_set_bit(nr,addr) argument
368 #define minix_set_bit(nr,addr) set_bit(nr,addr) argument
369 #define minix_test_and_clear_bit(nr,addr) test_and_clear_bit(nr,addr) argument
370 #define minix_test_bit(nr,addr) test_bit(nr,addr) argument