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))))
51 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, in __cmpxchg() argument
56 return __cmpxchg_u32(ptr, old, new); in __cmpxchg()
62 #define cmpxchg(ptr,o,n) \ argument
64 __typeof__(*(ptr)) _o_ = (o); \
65 __typeof__(*(ptr)) _n_ = (n); \
66 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
67 (unsigned long)_n_, sizeof(*(ptr))); \