Lines Matching refs:old

42 	__u32 bit, old, new;  in set_bit()  local
50 old = *m; in set_bit()
51 new = old | bit; in set_bit()
52 } while (cmpxchg_acq(m, old, new) != old); in set_bit()
83 __u32 mask, old, new; in clear_bit() local
91 old = *m; in clear_bit()
92 new = old & mask; in clear_bit()
93 } while (cmpxchg_acq(m, old, new) != old); in clear_bit()
107 __u32 mask, old, new; in clear_bit_unlock() local
115 old = *m; in clear_bit_unlock()
116 new = old & mask; in clear_bit_unlock()
117 } while (cmpxchg_rel(m, old, new) != old); in clear_bit_unlock()
164 __u32 bit, old, new; in change_bit() local
172 old = *m; in change_bit()
173 new = old ^ bit; in change_bit()
174 } while (cmpxchg_acq(m, old, new) != old); in change_bit()
203 __u32 bit, old, new; in test_and_set_bit() local
211 old = *m; in test_and_set_bit()
212 new = old | bit; in test_and_set_bit()
213 } while (cmpxchg_acq(m, old, new) != old); in test_and_set_bit()
214 return (old & bit) != 0; in test_and_set_bit()
257 __u32 mask, old, new; in test_and_clear_bit() local
265 old = *m; in test_and_clear_bit()
266 new = old & mask; in test_and_clear_bit()
267 } while (cmpxchg_acq(m, old, new) != old); in test_and_clear_bit()
268 return (old & ~mask) != 0; in test_and_clear_bit()
302 __u32 bit, old, new; in test_and_change_bit() local
310 old = *m; in test_and_change_bit()
311 new = old ^ bit; in test_and_change_bit()
312 } while (cmpxchg_acq(m, old, new) != old); in test_and_change_bit()
313 return (old & bit) != 0; in test_and_change_bit()
326 __u32 old, bit = (1 << (nr & 31)); in arch___test_and_change_bit() local
329 old = *m; in arch___test_and_change_bit()
330 *m = old ^ bit; in arch___test_and_change_bit()
331 return (old & bit) != 0; in arch___test_and_change_bit()