Lines Matching defs:ptr
12 static inline unsigned long __arch_xchg(unsigned long x, volatile void * ptr, int size)
20 tmp = *(u8 *)ptr;
21 *(u8 *)ptr = x;
25 tmp = *(u16 *)ptr;
26 *(u16 *)ptr = x;
30 tmp = *(u32 *)ptr;
31 *(u32 *)ptr = x;
35 tmp = __invalid_xchg_size(x, ptr, size);
43 static inline unsigned long __arch_xchg(unsigned long x, volatile void * ptr, int size)
52 : "=&d" (x) : "d" (x), "m" (*__xg(u8, ptr)) : "memory");
60 : "=&d" (x) : "d" (x), "m" (*__xg(u16, ptr)) : "memory");
68 : "=&d" (x) : "d" (x), "m" (*__xg(u32, ptr)) : "memory");
71 x = __invalid_xchg_size(x, ptr, size);
78 #define arch_xchg(ptr,x) ({(__typeof__(*(ptr)))__arch_xchg((unsigned long)(x),(ptr),sizeof(*(ptr)));})
82 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n))
120 #define arch_cmpxchg(ptr, o, n) \
121 ({(__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
122 (unsigned long)(n), sizeof(*(ptr)));})
123 #define arch_cmpxchg_local(ptr, o, n) \
124 ({(__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
125 (unsigned long)(n), sizeof(*(ptr)));})
127 #define arch_cmpxchg64(ptr, o, n) arch_cmpxchg64_local((ptr), (o), (n))