Lines Matching refs:ptr
17 static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, int size) in __xchg() argument
21 return __xchg_u32(ptr, x); in __xchg()
27 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) argument
46 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() argument
50 return __cmpxchg_u32((u32 *)ptr, (u32)old, (u32)new_); in __cmpxchg()
58 #define cmpxchg(ptr, o, n) \ argument
60 __typeof__(*(ptr)) _o_ = (o); \
61 __typeof__(*(ptr)) _n_ = (n); \
62 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
63 (unsigned long)_n_, sizeof(*(ptr))); \
72 #define cmpxchg_local(ptr, o, n) \ argument
73 ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\
74 (unsigned long)(n), sizeof(*(ptr))))
75 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument