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,
81 * @nr: the bit to set
86 * Note that @nr may be almost arbitrarily large; this function is not
89 static inline void set_bit(unsigned long nr, volatile unsigned long *addr)
91 volatile unsigned long *m = &addr[BIT_WORD(nr)];
92 int bit = nr % BITS_PER_LONG;
95 __mips_set_bit(nr, addr);
109 * @nr: Bit to clear
117 static inline void clear_bit(unsigned long nr, volatile unsigned long *addr)
119 volatile unsigned long *m = &addr[BIT_WORD(nr)];
120 int bit = nr % BITS_PER_LONG;
123 __mips_clear_bit(nr, addr);
137 * @nr: Bit to clear
143 static inline void clear_bit_unlock(unsigned long nr, volatile unsigned long *addr)
146 clear_bit(nr, addr);
151 * @nr: Bit to change
155 * Note that @nr may be almost arbitrarily large; this function is not
158 static inline void change_bit(unsigned long nr, volatile unsigned long *addr)
160 volatile unsigned long *m = &addr[BIT_WORD(nr)];
161 int bit = nr % BITS_PER_LONG;
164 __mips_change_bit(nr, addr);
173 * @nr: Bit to set
179 static inline int test_and_set_bit_lock(unsigned long nr,
182 volatile unsigned long *m = &addr[BIT_WORD(nr)];
183 int bit = nr % BITS_PER_LONG;
187 res = __mips_test_and_set_bit_lock(nr, addr);
202 * @nr: Bit to set
208 static inline int test_and_set_bit(unsigned long nr,
212 return test_and_set_bit_lock(nr, addr);
217 * @nr: Bit to clear
223 static inline int test_and_clear_bit(unsigned long nr,
226 volatile unsigned long *m = &addr[BIT_WORD(nr)];
227 int bit = nr % BITS_PER_LONG;
233 res = __mips_test_and_clear_bit(nr, addr);
234 } else if ((MIPS_ISA_REV >= 2) && __builtin_constant_p(nr)) {
254 * @nr: Bit to change
260 static inline int test_and_change_bit(unsigned long nr,
263 volatile unsigned long *m = &addr[BIT_WORD(nr)];
264 int bit = nr % BITS_PER_LONG;
270 res = __mips_test_and_change_bit(nr, addr);
312 * @nr: Bit to clear
319 static inline void __clear_bit_unlock(unsigned long nr, volatile unsigned long *addr)
322 __clear_bit(nr, addr);