Lines Matching refs:ptr
22 #define __xchg(ptr, x, size) \ argument
25 volatile void *__xchg_ptr = (ptr); \
42 #define xchg(ptr,x) \ argument
43 ((__typeof__(*(ptr)))__xchg((ptr),(unsigned long)(x), sizeof(*(ptr))))
49 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, in __cmpxchg() argument
54 return __cmpxchg_u32(ptr, old, new); in __cmpxchg()
60 #define cmpxchg(ptr,o,n) \ argument
62 __typeof__(*(ptr)) _o_ = (o); \
63 __typeof__(*(ptr)) _n_ = (n); \
64 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
65 (unsigned long)_n_, sizeof(*(ptr))); \