Lines Matching refs:ptr
174 #define __xchg(ptr, x, size) \ argument
177 volatile void *__xchg_ptr = (ptr); \
194 #define xchg(ptr,x) \ argument
195 ((__typeof__(*(ptr)))__xchg((ptr),(unsigned long)(x), sizeof(*(ptr))))
217 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, in __cmpxchg() argument
222 return __cmpxchg_u32(ptr, old, new); in __cmpxchg()
228 #define cmpxchg(ptr,o,n) \ argument
230 __typeof__(*(ptr)) _o_ = (o); \
231 __typeof__(*(ptr)) _n_ = (n); \
232 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
233 (unsigned long)_n_, sizeof(*(ptr))); \