Lines Matching refs:ptr
23 static inline void set_64bit(volatile u64 *ptr, u64 value) in set_64bit() argument
27 u64 prev = *ptr; in set_64bit()
32 : "=m" (*ptr), "+A" (prev) in set_64bit()
38 #define cmpxchg64(ptr, o, n) \ argument
39 ((__typeof__(*(ptr)))__cmpxchg64((ptr), (unsigned long long)(o), \
41 #define cmpxchg64_local(ptr, o, n) \ argument
42 ((__typeof__(*(ptr)))__cmpxchg64_local((ptr), (unsigned long long)(o), \
46 static inline u64 __cmpxchg64(volatile u64 *ptr, u64 old, u64 new) in __cmpxchg64() argument
51 "+m" (*ptr) in __cmpxchg64()
59 static inline u64 __cmpxchg64_local(volatile u64 *ptr, u64 old, u64 new) in __cmpxchg64_local() argument
64 "+m" (*ptr) in __cmpxchg64_local()
78 #define cmpxchg64(ptr, o, n) \ argument
80 __typeof__(*(ptr)) __ret; \
81 __typeof__(*(ptr)) __old = (o); \
82 __typeof__(*(ptr)) __new = (n); \
88 "S" ((ptr)), "0" (__old), \
95 #define cmpxchg64_local(ptr, o, n) \ argument
97 __typeof__(*(ptr)) __ret; \
98 __typeof__(*(ptr)) __old = (o); \
99 __typeof__(*(ptr)) __new = (n); \
104 "S" ((ptr)), "0" (__old), \