Lines Matching refs:old
58 #define __cmpxchg_asm(ld, st, m, old, new) \
60 __typeof(old) __ret; \
71 : "ZB"(*m), "Jr" (old), "Jr" (new) \
77 extern unsigned long __cmpxchg_small(volatile void *ptr, unsigned long old,
81 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, unsigned int size)
86 return __cmpxchg_small(ptr, old, new, size);
90 (u32)old, new);
94 (u64)old, new);
103 #define cmpxchg_local(ptr, old, new) \
106 (unsigned long)(__typeof__(*(ptr)))(old), \
110 #define cmpxchg(ptr, old, new) \
114 __res = cmpxchg_local((ptr), (old), (new)); \