Lines Matching refs:nr
58 static inline void set_bit(unsigned long nr, volatile unsigned long *addr) in set_bit() argument
60 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in set_bit()
61 unsigned short bit = nr & SZLONG_MASK; in set_bit()
105 a += nr >> SZLONG_LOG; in set_bit()
123 static inline void clear_bit(unsigned long nr, volatile unsigned long *addr) in clear_bit() argument
125 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in clear_bit()
126 unsigned short bit = nr & SZLONG_MASK; in clear_bit()
170 a += nr >> SZLONG_LOG; in clear_bit()
186 static inline void clear_bit_unlock(unsigned long nr, volatile unsigned long *addr) in clear_bit_unlock() argument
189 clear_bit(nr, addr); in clear_bit_unlock()
201 static inline void change_bit(unsigned long nr, volatile unsigned long *addr) in change_bit() argument
203 unsigned short bit = nr & SZLONG_MASK; in change_bit()
206 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in change_bit()
219 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in change_bit()
239 a += nr >> SZLONG_LOG; in change_bit()
255 static inline int test_and_set_bit(unsigned long nr, in test_and_set_bit() argument
258 unsigned short bit = nr & SZLONG_MASK; in test_and_set_bit()
264 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in test_and_set_bit()
279 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in test_and_set_bit()
304 a += nr >> SZLONG_LOG; in test_and_set_bit()
325 static inline int test_and_set_bit_lock(unsigned long nr, in test_and_set_bit_lock() argument
328 unsigned short bit = nr & SZLONG_MASK; in test_and_set_bit_lock()
332 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in test_and_set_bit_lock()
347 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in test_and_set_bit_lock()
372 a += nr >> SZLONG_LOG; in test_and_set_bit_lock()
392 static inline int test_and_clear_bit(unsigned long nr, in test_and_clear_bit() argument
395 unsigned short bit = nr & SZLONG_MASK; in test_and_clear_bit()
401 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in test_and_clear_bit()
417 } else if (__builtin_constant_p(nr)) { in test_and_clear_bit()
418 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in test_and_clear_bit()
435 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in test_and_clear_bit()
461 a += nr >> SZLONG_LOG; in test_and_clear_bit()
482 static inline int test_and_change_bit(unsigned long nr, in test_and_change_bit() argument
485 unsigned short bit = nr & SZLONG_MASK; in test_and_change_bit()
491 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in test_and_change_bit()
506 unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG); in test_and_change_bit()
531 a += nr >> SZLONG_LOG; in test_and_change_bit()
555 static inline void __clear_bit_unlock(unsigned long nr, volatile unsigned long *addr) in __clear_bit_unlock() argument
558 __clear_bit(nr, addr); in __clear_bit_unlock()