Lines Matching refs:old
83 int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() argument
90 if (likely(ret == old)) in atomic_cmpxchg()
125 unsigned long old, flags; in ___set_bit() local
128 old = *addr; in ___set_bit()
129 *addr = old | mask; in ___set_bit()
132 return old & mask; in ___set_bit()
138 unsigned long old, flags; in ___clear_bit() local
141 old = *addr; in ___clear_bit()
142 *addr = old & ~mask; in ___clear_bit()
145 return old & mask; in ___clear_bit()
151 unsigned long old, flags; in ___change_bit() local
154 old = *addr; in ___change_bit()
155 *addr = old ^ mask; in ___change_bit()
158 return old & mask; in ___change_bit()
162 unsigned long __cmpxchg_u32(volatile u32 *ptr, u32 old, u32 new) in __cmpxchg_u32() argument
168 if ((prev = *ptr) == old) in __cmpxchg_u32()
176 u64 __cmpxchg_u64(u64 *ptr, u64 old, u64 new) in __cmpxchg_u64() argument
182 if ((prev = *ptr) == old) in __cmpxchg_u64()