Lines Matching full:old
119 * test_and_set_bit - Set a bit and return its old value
131 unsigned long old; in test_and_set_bit() local
135 old = *p; in test_and_set_bit()
136 *p = old | mask; in test_and_set_bit()
139 return (old & mask) != 0; in test_and_set_bit()
143 * test_and_clear_bit - Clear a bit and return its old value
155 unsigned long old; in test_and_clear_bit() local
159 old = *p; in test_and_clear_bit()
160 *p = old & ~mask; in test_and_clear_bit()
163 return (old & mask) != 0; in test_and_clear_bit()
167 * test_and_change_bit - Change a bit and return its old value
178 unsigned long old; in test_and_change_bit() local
182 old = *p; in test_and_change_bit()
183 *p = old ^ mask; in test_and_change_bit()
186 return (old & mask) != 0; in test_and_change_bit()