Lines Matching defs:ptr
26 unsigned long __xchg(unsigned long x, volatile void *ptr, int size)
33 return __xchg_u8(x, ptr);
36 ret = *(volatile u8 *)ptr;
37 *(volatile u8 *)ptr = x;
44 return __xchg_u16(x, ptr);
47 ret = *(volatile u16 *)ptr;
48 *(volatile u16 *)ptr = x;
55 return __xchg_u32(x, ptr);
58 ret = *(volatile u32 *)ptr;
59 *(volatile u32 *)ptr = x;
67 return __xchg_u64(x, ptr);
70 ret = *(volatile u64 *)ptr;
71 *(volatile u64 *)ptr = x;
83 #define xchg(ptr, x) ({ \
84 ((__typeof__(*(ptr))) \
85 __xchg((unsigned long)(x), (ptr), sizeof(*(ptr)))); \
96 #define cmpxchg_local(ptr, o, n) ({ \
97 ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\
98 (unsigned long)(n), sizeof(*(ptr)))); \
103 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n))
106 #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n))
107 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n))