Lines Matching refs:bit
92 int bit = nr % BITS_PER_LONG; in set_bit() local
99 if ((MIPS_ISA_REV >= 2) && __builtin_constant_p(bit) && (bit >= 16)) { in set_bit()
100 __bit_op(*m, __stringify(LONG_INS) " %0, %3, %2, 1", "i"(bit), "r"(~0)); in set_bit()
104 __bit_op(*m, "or\t%0, %2", "ir"(BIT(bit))); in set_bit()
120 int bit = nr % BITS_PER_LONG; in clear_bit() local
127 if ((MIPS_ISA_REV >= 2) && __builtin_constant_p(bit)) { in clear_bit()
128 __bit_op(*m, __stringify(LONG_INS) " %0, $0, %2, 1", "i"(bit)); in clear_bit()
132 __bit_op(*m, "and\t%0, %2", "ir"(~BIT(bit))); in clear_bit()
161 int bit = nr % BITS_PER_LONG; in change_bit() local
168 __bit_op(*m, "xor\t%0, %2", "ir"(BIT(bit))); in change_bit()
183 int bit = nr % BITS_PER_LONG; in test_and_set_bit_lock() local
191 "ir"(BIT(bit))); in test_and_set_bit_lock()
192 res = (orig & BIT(bit)) != 0; in test_and_set_bit_lock()
227 int bit = nr % BITS_PER_LONG; in test_and_clear_bit() local
238 "i"(bit)); in test_and_clear_bit()
243 "ir"(BIT(bit))); in test_and_clear_bit()
244 res = (orig & BIT(bit)) != 0; in test_and_clear_bit()
264 int bit = nr % BITS_PER_LONG; in test_and_change_bit() local
274 "ir"(BIT(bit))); in test_and_change_bit()
275 res = (orig & BIT(bit)) != 0; in test_and_change_bit()