Lines Matching refs:old
95 #define __cmpxchg_asm(ld, st, m, old, new) \ argument
97 __typeof(old) __ret; \
108 : "ZB"(*m), "Jr" (old), "Jr" (new) \
114 static inline unsigned int __cmpxchg_small(volatile void *ptr, unsigned int old, in __cmpxchg_small() argument
123 old &= mask; in __cmpxchg_small()
133 old <<= shift; in __cmpxchg_small()
156 : "ZC" (*ptr32), "Jr" (mask), "Jr" (old), "Jr" (new) in __cmpxchg_small()
163 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, unsigned int size) in __cmpxchg() argument
168 return __cmpxchg_small(ptr, old, new, size); in __cmpxchg()
172 (u32)old, new); in __cmpxchg()
176 (u64)old, new); in __cmpxchg()
185 #define arch_cmpxchg_local(ptr, old, new) \ argument
188 (unsigned long)(__typeof__(*(ptr)))(old), \
192 #define arch_cmpxchg(ptr, old, new) \ argument
196 __res = arch_cmpxchg_local((ptr), (old), (new)); \