Lines Matching refs:nr
67 void __mips_set_bit(unsigned long nr, volatile unsigned long *addr);
68 void __mips_clear_bit(unsigned long nr, volatile unsigned long *addr);
69 void __mips_change_bit(unsigned long nr, volatile unsigned long *addr);
70 int __mips_test_and_set_bit_lock(unsigned long nr,
72 int __mips_test_and_clear_bit(unsigned long nr,
74 int __mips_test_and_change_bit(unsigned long nr,
88 static inline void set_bit(unsigned long nr, volatile unsigned long *addr) in set_bit() argument
90 volatile unsigned long *m = &addr[BIT_WORD(nr)]; in set_bit()
91 int bit = nr % BITS_PER_LONG; in set_bit()
94 __mips_set_bit(nr, addr); in set_bit()
116 static inline void clear_bit(unsigned long nr, volatile unsigned long *addr) in clear_bit() argument
118 volatile unsigned long *m = &addr[BIT_WORD(nr)]; in clear_bit()
119 int bit = nr % BITS_PER_LONG; in clear_bit()
122 __mips_clear_bit(nr, addr); in clear_bit()
142 static inline void clear_bit_unlock(unsigned long nr, volatile unsigned long *addr) in clear_bit_unlock() argument
145 clear_bit(nr, addr); in clear_bit_unlock()
157 static inline void change_bit(unsigned long nr, volatile unsigned long *addr) in change_bit() argument
159 volatile unsigned long *m = &addr[BIT_WORD(nr)]; in change_bit()
160 int bit = nr % BITS_PER_LONG; in change_bit()
163 __mips_change_bit(nr, addr); in change_bit()
178 static inline int test_and_set_bit_lock(unsigned long nr, in test_and_set_bit_lock() argument
181 volatile unsigned long *m = &addr[BIT_WORD(nr)]; in test_and_set_bit_lock()
182 int bit = nr % BITS_PER_LONG; in test_and_set_bit_lock()
186 res = __mips_test_and_set_bit_lock(nr, addr); in test_and_set_bit_lock()
207 static inline int test_and_set_bit(unsigned long nr, in test_and_set_bit() argument
211 return test_and_set_bit_lock(nr, addr); in test_and_set_bit()
222 static inline int test_and_clear_bit(unsigned long nr, in test_and_clear_bit() argument
225 volatile unsigned long *m = &addr[BIT_WORD(nr)]; in test_and_clear_bit()
226 int bit = nr % BITS_PER_LONG; in test_and_clear_bit()
232 res = __mips_test_and_clear_bit(nr, addr); in test_and_clear_bit()
233 } else if ((MIPS_ISA_REV >= 2) && __builtin_constant_p(nr)) { in test_and_clear_bit()
259 static inline int test_and_change_bit(unsigned long nr, in test_and_change_bit() argument
262 volatile unsigned long *m = &addr[BIT_WORD(nr)]; in test_and_change_bit()
263 int bit = nr % BITS_PER_LONG; in test_and_change_bit()
269 res = __mips_test_and_change_bit(nr, addr); in test_and_change_bit()
296 static inline void __clear_bit_unlock(unsigned long nr, volatile unsigned long *addr) in __clear_bit_unlock() argument
299 __clear_bit(nr, addr); in __clear_bit_unlock()