Lines Matching refs:ptr

100 ____xchg(volatile void *ptr, unsigned long x, int size)  in ____xchg()  argument
103 size == 1 ? ____xchg_u8(ptr, x) : in ____xchg()
104 size == 2 ? ____xchg_u16(ptr, x) : in ____xchg()
105 size == 4 ? ____xchg_u32(ptr, x) : in ____xchg()
106 size == 8 ? ____xchg_u64(ptr, x) : in ____xchg()
217 ____cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in ____cmpxchg() argument
221 size == 1 ? ____cmpxchg_u8(ptr, old, new) : in ____cmpxchg()
222 size == 2 ? ____cmpxchg_u16(ptr, old, new) : in ____cmpxchg()
223 size == 4 ? ____cmpxchg_u32(ptr, old, new) : in ____cmpxchg()
224 size == 8 ? ____cmpxchg_u64(ptr, old, new) : in ____cmpxchg()
228 #define xchg_local(ptr, x) \ argument
230 __typeof__(*(ptr)) _x_ = (x); \
231 (__typeof__(*(ptr))) ____xchg((ptr), (unsigned long)_x_, \
232 sizeof(*(ptr))); \
235 #define arch_cmpxchg_local(ptr, o, n) \ argument
237 __typeof__(*(ptr)) _o_ = (o); \
238 __typeof__(*(ptr)) _n_ = (n); \
239 (__typeof__(*(ptr))) ____cmpxchg((ptr), (unsigned long)_o_, \
241 sizeof(*(ptr))); \
244 #define arch_cmpxchg64_local(ptr, o, n) \ argument
246 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
247 cmpxchg_local((ptr), (o), (n)); \
254 #define arch_xchg(ptr, x) \ argument
256 __typeof__(*(ptr)) __ret; \
257 __typeof__(*(ptr)) _x_ = (x); \
259 __ret = (__typeof__(*(ptr))) \
260 ____xchg((ptr), (unsigned long)_x_, sizeof(*(ptr))); \
265 #define arch_cmpxchg(ptr, o, n) \ argument
267 __typeof__(*(ptr)) __ret; \
268 __typeof__(*(ptr)) _o_ = (o); \
269 __typeof__(*(ptr)) _n_ = (n); \
271 __ret = (__typeof__(*(ptr))) ____cmpxchg((ptr), \
272 (unsigned long)_o_, (unsigned long)_n_, sizeof(*(ptr)));\
277 #define arch_cmpxchg64(ptr, o, n) \ argument
279 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
280 arch_cmpxchg((ptr), (o), (n)); \