Lines Matching refs:old

41 	__u32 bit, old, new;  in set_bit()  local
49 old = *m; in set_bit()
50 new = old | bit; in set_bit()
51 } while (cmpxchg_acq(m, old, new) != old); in set_bit()
82 __u32 mask, old, new; in clear_bit() local
90 old = *m; in clear_bit()
91 new = old & mask; in clear_bit()
92 } while (cmpxchg_acq(m, old, new) != old); in clear_bit()
106 __u32 mask, old, new; in clear_bit_unlock() local
114 old = *m; in clear_bit_unlock()
115 new = old & mask; in clear_bit_unlock()
116 } while (cmpxchg_rel(m, old, new) != old); in clear_bit_unlock()
163 __u32 bit, old, new; in change_bit() local
171 old = *m; in change_bit()
172 new = old ^ bit; in change_bit()
173 } while (cmpxchg_acq(m, old, new) != old); in change_bit()
202 __u32 bit, old, new; in test_and_set_bit() local
210 old = *m; in test_and_set_bit()
211 new = old | bit; in test_and_set_bit()
212 } while (cmpxchg_acq(m, old, new) != old); in test_and_set_bit()
213 return (old & bit) != 0; in test_and_set_bit()
256 __u32 mask, old, new; in test_and_clear_bit() local
264 old = *m; in test_and_clear_bit()
265 new = old & mask; in test_and_clear_bit()
266 } while (cmpxchg_acq(m, old, new) != old); in test_and_clear_bit()
267 return (old & ~mask) != 0; in test_and_clear_bit()
301 __u32 bit, old, new; in test_and_change_bit() local
309 old = *m; in test_and_change_bit()
310 new = old ^ bit; in test_and_change_bit()
311 } while (cmpxchg_acq(m, old, new) != old); in test_and_change_bit()
312 return (old & bit) != 0; in test_and_change_bit()
325 __u32 old, bit = (1 << (nr & 31)); in __test_and_change_bit() local
328 old = *m; in __test_and_change_bit()
329 *m = old ^ bit; in __test_and_change_bit()
330 return (old & bit) != 0; in __test_and_change_bit()