• Home
  • Raw
  • Download

Lines Matching refs:ptr

159 __xchg_local(void *ptr, unsigned long x, unsigned int size)  in __xchg_local()  argument
163 return __xchg_u8_local(ptr, x); in __xchg_local()
165 return __xchg_u16_local(ptr, x); in __xchg_local()
167 return __xchg_u32_local(ptr, x); in __xchg_local()
170 return __xchg_u64_local(ptr, x); in __xchg_local()
178 __xchg_relaxed(void *ptr, unsigned long x, unsigned int size) in __xchg_relaxed() argument
182 return __xchg_u8_relaxed(ptr, x); in __xchg_relaxed()
184 return __xchg_u16_relaxed(ptr, x); in __xchg_relaxed()
186 return __xchg_u32_relaxed(ptr, x); in __xchg_relaxed()
189 return __xchg_u64_relaxed(ptr, x); in __xchg_relaxed()
195 #define xchg_local(ptr,x) \ argument
197 __typeof__(*(ptr)) _x_ = (x); \
198 (__typeof__(*(ptr))) __xchg_local((ptr), \
199 (unsigned long)_x_, sizeof(*(ptr))); \
202 #define xchg_relaxed(ptr, x) \ argument
204 __typeof__(*(ptr)) _x_ = (x); \
205 (__typeof__(*(ptr))) __xchg_relaxed((ptr), \
206 (unsigned long)_x_, sizeof(*(ptr))); \
403 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg() argument
408 return __cmpxchg_u8(ptr, old, new); in __cmpxchg()
410 return __cmpxchg_u16(ptr, old, new); in __cmpxchg()
412 return __cmpxchg_u32(ptr, old, new); in __cmpxchg()
415 return __cmpxchg_u64(ptr, old, new); in __cmpxchg()
423 __cmpxchg_local(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_local() argument
428 return __cmpxchg_u8_local(ptr, old, new); in __cmpxchg_local()
430 return __cmpxchg_u16_local(ptr, old, new); in __cmpxchg_local()
432 return __cmpxchg_u32_local(ptr, old, new); in __cmpxchg_local()
435 return __cmpxchg_u64_local(ptr, old, new); in __cmpxchg_local()
443 __cmpxchg_relaxed(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_relaxed() argument
448 return __cmpxchg_u8_relaxed(ptr, old, new); in __cmpxchg_relaxed()
450 return __cmpxchg_u16_relaxed(ptr, old, new); in __cmpxchg_relaxed()
452 return __cmpxchg_u32_relaxed(ptr, old, new); in __cmpxchg_relaxed()
455 return __cmpxchg_u64_relaxed(ptr, old, new); in __cmpxchg_relaxed()
463 __cmpxchg_acquire(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_acquire() argument
468 return __cmpxchg_u8_acquire(ptr, old, new); in __cmpxchg_acquire()
470 return __cmpxchg_u16_acquire(ptr, old, new); in __cmpxchg_acquire()
472 return __cmpxchg_u32_acquire(ptr, old, new); in __cmpxchg_acquire()
475 return __cmpxchg_u64_acquire(ptr, old, new); in __cmpxchg_acquire()
481 #define cmpxchg(ptr, o, n) \ argument
483 __typeof__(*(ptr)) _o_ = (o); \
484 __typeof__(*(ptr)) _n_ = (n); \
485 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
486 (unsigned long)_n_, sizeof(*(ptr))); \
490 #define cmpxchg_local(ptr, o, n) \ argument
492 __typeof__(*(ptr)) _o_ = (o); \
493 __typeof__(*(ptr)) _n_ = (n); \
494 (__typeof__(*(ptr))) __cmpxchg_local((ptr), (unsigned long)_o_, \
495 (unsigned long)_n_, sizeof(*(ptr))); \
498 #define cmpxchg_relaxed(ptr, o, n) \ argument
500 __typeof__(*(ptr)) _o_ = (o); \
501 __typeof__(*(ptr)) _n_ = (n); \
502 (__typeof__(*(ptr))) __cmpxchg_relaxed((ptr), \
504 sizeof(*(ptr))); \
507 #define cmpxchg_acquire(ptr, o, n) \ argument
509 __typeof__(*(ptr)) _o_ = (o); \
510 __typeof__(*(ptr)) _n_ = (n); \
511 (__typeof__(*(ptr))) __cmpxchg_acquire((ptr), \
513 sizeof(*(ptr))); \
516 #define cmpxchg64(ptr, o, n) \ argument
518 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
519 cmpxchg((ptr), (o), (n)); \
521 #define cmpxchg64_local(ptr, o, n) \ argument
523 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
524 cmpxchg_local((ptr), (o), (n)); \
526 #define cmpxchg64_relaxed(ptr, o, n) \ argument
528 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
529 cmpxchg_relaxed((ptr), (o), (n)); \
531 #define cmpxchg64_acquire(ptr, o, n) \ argument
533 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
534 cmpxchg_acquire((ptr), (o), (n)); \
538 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument