Lines Matching refs:ptr
13 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() argument
21 tmp = *(u8 *)ptr; in __xchg()
22 *(u8 *)ptr = x; in __xchg()
26 tmp = *(u16 *)ptr; in __xchg()
27 *(u16 *)ptr = x; in __xchg()
31 tmp = *(u32 *)ptr; in __xchg()
32 *(u32 *)ptr = x; in __xchg()
36 tmp = __invalid_xchg_size(x, ptr, size); in __xchg()
44 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() argument
53 : "=&d" (x) : "d" (x), "m" (*__xg(ptr)) : "memory"); in __xchg()
61 : "=&d" (x) : "d" (x), "m" (*__xg(ptr)) : "memory"); in __xchg()
69 : "=&d" (x) : "d" (x), "m" (*__xg(ptr)) : "memory"); in __xchg()
72 x = __invalid_xchg_size(x, ptr, size); in __xchg()
79 #define arch_xchg(ptr,x) ({(__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)));}) argument
83 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
121 #define arch_cmpxchg(ptr, o, n) \ argument
122 ({(__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
123 (unsigned long)(n), sizeof(*(ptr)));})
124 #define arch_cmpxchg_local(ptr, o, n) \ argument
125 ({(__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
126 (unsigned long)(n), sizeof(*(ptr)));})
128 #define arch_cmpxchg64(ptr, o, n) arch_cmpxchg64_local((ptr), (o), (n)) argument