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(ptr)) : "memory"); in __xchg()
60 : "=&d" (x) : "d" (x), "m" (*__xg(ptr)) : "memory"); in __xchg()
68 : "=&d" (x) : "d" (x), "m" (*__xg(ptr)) : "memory"); in __xchg()
71 x = __invalid_xchg_size(x, ptr, size); in __xchg()
78 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) argument
82 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
121 #define cmpxchg(ptr, o, n) \ argument
122 ((__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
123 (unsigned long)(n), sizeof(*(ptr))))
124 #define cmpxchg_local(ptr, o, n) \ argument
125 ((__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
126 (unsigned long)(n), sizeof(*(ptr))))
128 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
136 #define cmpxchg_local(ptr, o, n) \ argument
137 ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\
138 (unsigned long)(n), sizeof(*(ptr))))