Lines Matching refs:ptr
27 #define xchg(ptr, x) \ argument
29 __typeof__(ptr) __xg_ptr = (ptr); \
30 __typeof__(*(ptr)) __xg_orig; \
55 #define xchg(ptr, x) \ argument
57 __typeof__(ptr) __xg_ptr = (ptr); \
58 __typeof__(*(ptr)) __xg_orig; \
61 case 4: __xg_orig = (__typeof__(*(ptr))) __xchg_32((uint32_t) x, __xg_ptr); break; \
72 #define tas(ptr) (xchg((ptr), 1)) argument
84 #define cmpxchg(ptr, test, new) \ argument
86 __typeof__(ptr) __xg_ptr = (ptr); \
87 __typeof__(*(ptr)) __xg_orig, __xg_tmp; \
88 __typeof__(*(ptr)) __xg_test = (test); \
89 __typeof__(*(ptr)) __xg_new = (new); \
124 #define cmpxchg(ptr, test, new) \ argument
126 __typeof__(ptr) __xg_ptr = (ptr); \
127 __typeof__(*(ptr)) __xg_orig; \
128 __typeof__(*(ptr)) __xg_test = (test); \
129 __typeof__(*(ptr)) __xg_new = (new); \
132 case 4: __xg_orig = (__force __typeof__(*ptr)) \
149 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local() argument
155 return cmpxchg((unsigned long *)ptr, old, new); in __cmpxchg_local()
157 return __cmpxchg_local_generic(ptr, old, new, size); in __cmpxchg_local()
167 #define cmpxchg_local(ptr, o, n) \ argument
168 ((__typeof__(*(ptr)))__cmpxchg_local((ptr), (unsigned long)(o), \
169 (unsigned long)(n), sizeof(*(ptr))))
170 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument