Lines Matching refs:ptr
197 #define __xchg(ptr, x, size) \ argument
200 volatile void *__xchg_ptr = (ptr); \
217 #define xchg(ptr,x) \ argument
218 ((__typeof__(*(ptr)))__xchg((ptr),(unsigned long)(x), sizeof(*(ptr))))
240 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, in __cmpxchg() argument
245 return __cmpxchg_u32(ptr, old, new); in __cmpxchg()
251 #define cmpxchg(ptr,o,n) \ argument
253 __typeof__(*(ptr)) _o_ = (o); \
254 __typeof__(*(ptr)) _n_ = (n); \
255 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
256 (unsigned long)_n_, sizeof(*(ptr))); \