Lines Matching refs:ptr
56 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() argument
59 case 4: return __cmpxchg_u32(ptr, old, new); in __cmpxchg()
65 #define cmpxchg(ptr,o,n) \ argument
66 ({ __typeof__(*(ptr)) _o_ = (o); \
67 __typeof__(*(ptr)) _n_ = (n); \
68 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
69 (unsigned long)_n_, sizeof (*(ptr))); \
74 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local() argument
80 return __cmpxchg_u32(ptr, old, new); in __cmpxchg_local()
82 return __cmpxchg_local_generic(ptr, old, new, size); in __cmpxchg_local()
92 #define cmpxchg_local(ptr, o, n) \ argument
93 ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\
94 (unsigned long)(n), sizeof(*(ptr))))
95 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
96 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
138 #define xchg(ptr,x) \ argument
139 ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
150 __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() argument
154 return xchg_u32(ptr, x); in __xchg()