Lines Matching refs:old
83 int arch_atomic_cmpxchg(atomic_t *v, int old, int new) in arch_atomic_cmpxchg() argument
90 if (likely(ret == old)) in arch_atomic_cmpxchg()
125 unsigned long old, flags; in sp32___set_bit() local
128 old = *addr; in sp32___set_bit()
129 *addr = old | mask; in sp32___set_bit()
132 return old & mask; in sp32___set_bit()
138 unsigned long old, flags; in sp32___clear_bit() local
141 old = *addr; in sp32___clear_bit()
142 *addr = old & ~mask; in sp32___clear_bit()
145 return old & mask; in sp32___clear_bit()
151 unsigned long old, flags; in sp32___change_bit() local
154 old = *addr; in sp32___change_bit()
155 *addr = old ^ mask; in sp32___change_bit()
158 return old & mask; in sp32___change_bit()
163 T __cmpxchg_##T(volatile T *ptr, T old, T new) \
169 if ((prev = *ptr) == old) \