Lines Matching refs:ptr
16 static inline unsigned int __xchg(unsigned int x, volatile void *ptr, int size)
26 tmp = *((unsigned char *) ptr);
27 *((unsigned char *) ptr) = (unsigned char) x;
31 tmp = *((unsigned short *) ptr);
32 *((unsigned short *) ptr) = x;
36 tmp = *((unsigned int *) ptr);
37 *((unsigned int *) ptr) = x;
44 #define xchg(ptr, x) \
45 ((__typeof__(*(ptr)))__xchg((unsigned int)(x), (void *) (ptr), \
46 sizeof(*(ptr))))
54 #define cmpxchg_local(ptr, o, n) \
55 ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), \
58 sizeof(*(ptr))))
59 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n))