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