Lines Matching defs:ptr
18 static __always_inline unsigned long __arch_xchg(unsigned long x, __volatile__ void * ptr, int size)
22 return __xchg_u32(ptr, x);
28 #define arch_xchg(ptr,x) ({(__typeof__(*(ptr)))__arch_xchg((unsigned long)(x),(ptr),sizeof(*(ptr)));})
46 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size)
50 return __cmpxchg_u32((u32 *)ptr, (u32)old, (u32)new_);
58 #define arch_cmpxchg(ptr, o, n) \
60 __typeof__(*(ptr)) _o_ = (o); \
61 __typeof__(*(ptr)) _n_ = (n); \
62 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
63 (unsigned long)_n_, sizeof(*(ptr))); \
66 u64 __cmpxchg_u64(u64 *ptr, u64 old, u64 new);
67 #define arch_cmpxchg64(ptr, old, new) __cmpxchg_u64(ptr, old, new)
75 #define arch_cmpxchg_local(ptr, o, n) \
76 ((__typeof__(*(ptr)))__generic_cmpxchg_local((ptr), (unsigned long)(o),\
77 (unsigned long)(n), sizeof(*(ptr))))
78 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))