Lines Matching refs:ptr
20 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() argument
37 : "r"(ptr), /* Not "m": llock only supports reg direct addr mode */ in __cmpxchg()
50 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() argument
54 volatile unsigned long *p = ptr; in __cmpxchg()
69 #define cmpxchg(ptr, o, n) ((typeof(*(ptr)))__cmpxchg((ptr), \ argument
87 static inline unsigned long __xchg(unsigned long val, volatile void *ptr, in __xchg() argument
99 : "r"(ptr) in __xchg()
109 #define _xchg(ptr, with) ((typeof(*(ptr)))__xchg((unsigned long)(with), (ptr), \ argument
110 sizeof(*(ptr))))
129 #define xchg(ptr, with) \ argument
132 typeof(*(ptr)) old_val; \
135 old_val = _xchg(ptr, with); \
142 #define xchg(ptr, with) _xchg(ptr, with) argument