Lines Matching refs:ptr
152 __xchg_local(void *ptr, unsigned long x, unsigned int size) in __xchg_local() argument
156 return __xchg_u8_local(ptr, x); in __xchg_local()
158 return __xchg_u16_local(ptr, x); in __xchg_local()
160 return __xchg_u32_local(ptr, x); in __xchg_local()
163 return __xchg_u64_local(ptr, x); in __xchg_local()
171 __xchg_relaxed(void *ptr, unsigned long x, unsigned int size) in __xchg_relaxed() argument
175 return __xchg_u8_relaxed(ptr, x); in __xchg_relaxed()
177 return __xchg_u16_relaxed(ptr, x); in __xchg_relaxed()
179 return __xchg_u32_relaxed(ptr, x); in __xchg_relaxed()
182 return __xchg_u64_relaxed(ptr, x); in __xchg_relaxed()
188 #define arch_xchg_local(ptr,x) \ argument
190 __typeof__(*(ptr)) _x_ = (x); \
191 (__typeof__(*(ptr))) __xchg_local((ptr), \
192 (unsigned long)_x_, sizeof(*(ptr))); \
195 #define arch_xchg_relaxed(ptr, x) \ argument
197 __typeof__(*(ptr)) _x_ = (x); \
198 (__typeof__(*(ptr))) __xchg_relaxed((ptr), \
199 (unsigned long)_x_, sizeof(*(ptr))); \
392 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg() argument
397 return __cmpxchg_u8(ptr, old, new); in __cmpxchg()
399 return __cmpxchg_u16(ptr, old, new); in __cmpxchg()
401 return __cmpxchg_u32(ptr, old, new); in __cmpxchg()
404 return __cmpxchg_u64(ptr, old, new); in __cmpxchg()
412 __cmpxchg_local(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_local() argument
417 return __cmpxchg_u8_local(ptr, old, new); in __cmpxchg_local()
419 return __cmpxchg_u16_local(ptr, old, new); in __cmpxchg_local()
421 return __cmpxchg_u32_local(ptr, old, new); in __cmpxchg_local()
424 return __cmpxchg_u64_local(ptr, old, new); in __cmpxchg_local()
432 __cmpxchg_relaxed(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_relaxed() argument
437 return __cmpxchg_u8_relaxed(ptr, old, new); in __cmpxchg_relaxed()
439 return __cmpxchg_u16_relaxed(ptr, old, new); in __cmpxchg_relaxed()
441 return __cmpxchg_u32_relaxed(ptr, old, new); in __cmpxchg_relaxed()
444 return __cmpxchg_u64_relaxed(ptr, old, new); in __cmpxchg_relaxed()
452 __cmpxchg_acquire(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_acquire() argument
457 return __cmpxchg_u8_acquire(ptr, old, new); in __cmpxchg_acquire()
459 return __cmpxchg_u16_acquire(ptr, old, new); in __cmpxchg_acquire()
461 return __cmpxchg_u32_acquire(ptr, old, new); in __cmpxchg_acquire()
464 return __cmpxchg_u64_acquire(ptr, old, new); in __cmpxchg_acquire()
470 #define arch_cmpxchg(ptr, o, n) \ argument
472 __typeof__(*(ptr)) _o_ = (o); \
473 __typeof__(*(ptr)) _n_ = (n); \
474 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
475 (unsigned long)_n_, sizeof(*(ptr))); \
479 #define arch_cmpxchg_local(ptr, o, n) \ argument
481 __typeof__(*(ptr)) _o_ = (o); \
482 __typeof__(*(ptr)) _n_ = (n); \
483 (__typeof__(*(ptr))) __cmpxchg_local((ptr), (unsigned long)_o_, \
484 (unsigned long)_n_, sizeof(*(ptr))); \
487 #define arch_cmpxchg_relaxed(ptr, o, n) \ argument
489 __typeof__(*(ptr)) _o_ = (o); \
490 __typeof__(*(ptr)) _n_ = (n); \
491 (__typeof__(*(ptr))) __cmpxchg_relaxed((ptr), \
493 sizeof(*(ptr))); \
496 #define arch_cmpxchg_acquire(ptr, o, n) \ argument
498 __typeof__(*(ptr)) _o_ = (o); \
499 __typeof__(*(ptr)) _n_ = (n); \
500 (__typeof__(*(ptr))) __cmpxchg_acquire((ptr), \
502 sizeof(*(ptr))); \
505 #define arch_cmpxchg64(ptr, o, n) \ argument
507 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
508 arch_cmpxchg((ptr), (o), (n)); \
510 #define arch_cmpxchg64_local(ptr, o, n) \ argument
512 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
513 arch_cmpxchg_local((ptr), (o), (n)); \
515 #define arch_cmpxchg64_relaxed(ptr, o, n) \ argument
517 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
518 arch_cmpxchg_relaxed((ptr), (o), (n)); \
520 #define arch_cmpxchg64_acquire(ptr, o, n) \ argument
522 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
523 arch_cmpxchg_acquire((ptr), (o), (n)); \
527 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument