Lines Matching refs:ptr
218 __xchg_local(void *ptr, unsigned long x, unsigned int size) in __xchg_local() argument
222 return __xchg_u8_local(ptr, x); in __xchg_local()
224 return __xchg_u16_local(ptr, x); in __xchg_local()
226 return __xchg_u32_local(ptr, x); in __xchg_local()
229 return __xchg_u64_local(ptr, x); in __xchg_local()
237 __xchg_relaxed(void *ptr, unsigned long x, unsigned int size) in __xchg_relaxed() argument
241 return __xchg_u8_relaxed(ptr, x); in __xchg_relaxed()
243 return __xchg_u16_relaxed(ptr, x); in __xchg_relaxed()
245 return __xchg_u32_relaxed(ptr, x); in __xchg_relaxed()
248 return __xchg_u64_relaxed(ptr, x); in __xchg_relaxed()
254 #define arch_xchg_local(ptr,x) \ argument
256 __typeof__(*(ptr)) _x_ = (x); \
257 (__typeof__(*(ptr))) __xchg_local((ptr), \
258 (unsigned long)_x_, sizeof(*(ptr))); \
261 #define arch_xchg_relaxed(ptr, x) \ argument
263 __typeof__(*(ptr)) _x_ = (x); \
264 (__typeof__(*(ptr))) __xchg_relaxed((ptr), \
265 (unsigned long)_x_, sizeof(*(ptr))); \
621 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg() argument
626 return __cmpxchg_u8(ptr, old, new); in __cmpxchg()
628 return __cmpxchg_u16(ptr, old, new); in __cmpxchg()
630 return __cmpxchg_u32(ptr, old, new); in __cmpxchg()
633 return __cmpxchg_u64(ptr, old, new); in __cmpxchg()
641 __cmpxchg_local(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_local() argument
646 return __cmpxchg_u8_local(ptr, old, new); in __cmpxchg_local()
648 return __cmpxchg_u16_local(ptr, old, new); in __cmpxchg_local()
650 return __cmpxchg_u32_local(ptr, old, new); in __cmpxchg_local()
653 return __cmpxchg_u64_local(ptr, old, new); in __cmpxchg_local()
661 __cmpxchg_relaxed(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_relaxed() argument
666 return __cmpxchg_u8_relaxed(ptr, old, new); in __cmpxchg_relaxed()
668 return __cmpxchg_u16_relaxed(ptr, old, new); in __cmpxchg_relaxed()
670 return __cmpxchg_u32_relaxed(ptr, old, new); in __cmpxchg_relaxed()
673 return __cmpxchg_u64_relaxed(ptr, old, new); in __cmpxchg_relaxed()
681 __cmpxchg_acquire(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_acquire() argument
686 return __cmpxchg_u8_acquire(ptr, old, new); in __cmpxchg_acquire()
688 return __cmpxchg_u16_acquire(ptr, old, new); in __cmpxchg_acquire()
690 return __cmpxchg_u32_acquire(ptr, old, new); in __cmpxchg_acquire()
693 return __cmpxchg_u64_acquire(ptr, old, new); in __cmpxchg_acquire()
699 #define arch_cmpxchg(ptr, o, n) \ argument
701 __typeof__(*(ptr)) _o_ = (o); \
702 __typeof__(*(ptr)) _n_ = (n); \
703 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
704 (unsigned long)_n_, sizeof(*(ptr))); \
708 #define arch_cmpxchg_local(ptr, o, n) \ argument
710 __typeof__(*(ptr)) _o_ = (o); \
711 __typeof__(*(ptr)) _n_ = (n); \
712 (__typeof__(*(ptr))) __cmpxchg_local((ptr), (unsigned long)_o_, \
713 (unsigned long)_n_, sizeof(*(ptr))); \
716 #define arch_cmpxchg_relaxed(ptr, o, n) \ argument
718 __typeof__(*(ptr)) _o_ = (o); \
719 __typeof__(*(ptr)) _n_ = (n); \
720 (__typeof__(*(ptr))) __cmpxchg_relaxed((ptr), \
722 sizeof(*(ptr))); \
725 #define arch_cmpxchg_acquire(ptr, o, n) \ argument
727 __typeof__(*(ptr)) _o_ = (o); \
728 __typeof__(*(ptr)) _n_ = (n); \
729 (__typeof__(*(ptr))) __cmpxchg_acquire((ptr), \
731 sizeof(*(ptr))); \
734 #define arch_cmpxchg64(ptr, o, n) \ argument
736 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
737 arch_cmpxchg((ptr), (o), (n)); \
739 #define arch_cmpxchg64_local(ptr, o, n) \ argument
741 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
742 arch_cmpxchg_local((ptr), (o), (n)); \
744 #define arch_cmpxchg64_relaxed(ptr, o, n) \ argument
746 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
747 arch_cmpxchg_relaxed((ptr), (o), (n)); \
749 #define arch_cmpxchg64_acquire(ptr, o, n) \ argument
751 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
752 arch_cmpxchg_acquire((ptr), (o), (n)); \
756 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument