Lines Matching refs:ptr
19 static inline unsigned int __xchg(unsigned int x, volatile void *ptr, int size) in __xchg() argument
29 tmp = *((unsigned char *) ptr); in __xchg()
30 *((unsigned char *) ptr) = (unsigned char) x; in __xchg()
34 tmp = *((unsigned short *) ptr); in __xchg()
35 *((unsigned short *) ptr) = x; in __xchg()
39 tmp = *((unsigned int *) ptr); in __xchg()
40 *((unsigned int *) ptr) = x; in __xchg()
47 #define xchg(ptr, x) \ argument
48 ((__typeof__(*(ptr)))__xchg((unsigned int)(x), (void *) (ptr), \
49 sizeof(*(ptr))))
50 #define tas(ptr) xchg((ptr), 1) argument
59 #define cmpxchg_local(ptr, o, n) \ argument
60 ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), \
63 sizeof(*(ptr))))
64 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument