Lines Matching refs:ptr
12 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() argument
20 tmp = *(u8 *)ptr; in __xchg()
21 *(u8 *)ptr = x; in __xchg()
25 tmp = *(u16 *)ptr; in __xchg()
26 *(u16 *)ptr = x; in __xchg()
30 tmp = *(u32 *)ptr; in __xchg()
31 *(u32 *)ptr = x; in __xchg()
35 tmp = __invalid_xchg_size(x, ptr, size); in __xchg()
43 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() argument
52 : "=&d" (x) : "d" (x), "m" (*__xg(u8, ptr)) : "memory"); in __xchg()
60 : "=&d" (x) : "d" (x), "m" (*__xg(u16, ptr)) : "memory"); in __xchg()
68 : "=&d" (x) : "d" (x), "m" (*__xg(u32, ptr)) : "memory"); in __xchg()
71 x = __invalid_xchg_size(x, ptr, size); in __xchg()
78 #define arch_xchg(ptr,x) ({(__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)));}) argument
82 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
120 #define arch_cmpxchg(ptr, o, n) \ argument
121 ({(__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
122 (unsigned long)(n), sizeof(*(ptr)));})
123 #define arch_cmpxchg_local(ptr, o, n) \ argument
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)) argument