/arch/riscv/include/asm/ |
D | cmpxchg.h | 14 #define __xchg_relaxed(ptr, new, size) \ argument 40 #define xchg_relaxed(ptr, x) \ argument 47 #define __xchg_acquire(ptr, new, size) \ argument 75 #define xchg_acquire(ptr, x) \ argument 82 #define __xchg_release(ptr, new, size) \ argument 110 #define xchg_release(ptr, x) \ argument 117 #define __xchg(ptr, new, size) \ argument 143 #define xchg(ptr, x) \ argument 149 #define xchg32(ptr, x) \ argument 155 #define xchg64(ptr, x) \ argument [all …]
|
D | uaccess.h | 81 #define __get_user_asm(insn, x, ptr, err) \ argument 106 #define __get_user_8(x, ptr, err) \ argument 109 #define __get_user_8(x, ptr, err) \ argument 182 #define __get_user(x, ptr) \ argument 213 #define get_user(x, ptr) \ argument 222 #define __put_user_asm(insn, x, ptr, err) \ argument 245 #define __put_user_8(x, ptr, err) \ argument 248 #define __put_user_8(x, ptr, err) \ argument 318 #define __put_user(x, ptr) \ argument 349 #define put_user(x, ptr) \ argument [all …]
|
/arch/s390/include/asm/ |
D | bitops.h | 45 __bitops_word(unsigned long nr, volatile unsigned long *ptr) in __bitops_word() 54 __bitops_byte(unsigned long nr, volatile unsigned long *ptr) in __bitops_byte() 59 static __always_inline void arch_set_bit(unsigned long nr, volatile unsigned long *ptr) in arch_set_bit() 80 static __always_inline void arch_clear_bit(unsigned long nr, volatile unsigned long *ptr) in arch_clear_bit() 102 volatile unsigned long *ptr) in arch_change_bit() 124 volatile unsigned long *ptr) in arch_test_and_set_bit() 135 volatile unsigned long *ptr) in arch_test_and_clear_bit() 146 volatile unsigned long *ptr) in arch_test_and_change_bit() 156 static inline void arch___set_bit(unsigned long nr, volatile unsigned long *ptr) in arch___set_bit() 164 volatile unsigned long *ptr) in arch___clear_bit() [all …]
|
/arch/parisc/include/asm/ |
D | cmpxchg.h | 25 __xchg(unsigned long x, volatile void *ptr, int size) in __xchg() 47 #define xchg(ptr, x) \ argument 67 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() 81 #define cmpxchg(ptr, o, n) \ argument 91 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local() 109 #define cmpxchg_local(ptr, o, n) \ argument 113 #define cmpxchg64_local(ptr, o, n) \ argument 119 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument 122 #define cmpxchg64(ptr, o, n) __cmpxchg_u64(ptr, o, n) argument
|
D | uaccess.h | 36 #define LDD_USER(val, ptr) __get_user_asm64(val, ptr) argument 37 #define STD_USER(x, ptr) __put_user_asm64(x, ptr) argument 39 #define LDD_USER(val, ptr) __get_user_asm(val, "ldd", ptr) argument 40 #define STD_USER(x, ptr) __put_user_asm("std", x, ptr) argument 83 #define __get_user_internal(val, ptr) \ argument 98 #define __get_user(val, ptr) \ argument 104 #define __get_user_asm(val, ldx, ptr) \ argument 119 #define __get_user_asm64(val, ptr) \ argument 141 #define __put_user_internal(x, ptr) \ argument 157 #define __put_user(x, ptr) \ argument [all …]
|
/arch/csky/include/asm/ |
D | uaccess.h | 55 #define put_user(x, ptr) \ argument 58 #define __put_user(x, ptr) \ argument 63 #define get_user(x, ptr) \ argument 66 #define __get_user(x, ptr) \ argument 69 #define __put_user_nocheck(x, ptr, size) \ argument 80 #define __put_user_check(x, ptr, size) \ argument 90 #define __put_user_size(x, ptr, size, retval) \ argument 119 #define __put_user_asm_b(x, ptr, err) \ argument 137 #define __put_user_asm_h(x, ptr, err) \ argument 155 #define __put_user_asm_w(x, ptr, err) \ argument [all …]
|
D | cmpxchg.h | 11 #define __xchg(new, ptr, size) \ argument 36 #define xchg(ptr, x) (__xchg((x), (ptr), sizeof(*(ptr)))) argument 38 #define __cmpxchg(ptr, old, new, size) \ argument 67 #define cmpxchg(ptr, o, n) \ argument
|
/arch/sparc/include/asm/ |
D | cmpxchg_32.h | 18 static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, int size) in __xchg() 28 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) argument 46 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() 58 #define cmpxchg(ptr, o, n) \ argument 67 #define cmpxchg64(ptr, old, new) __cmpxchg_u64(ptr, old, new) argument 75 #define cmpxchg_local(ptr, o, n) \ argument 78 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
|
D | cmpxchg_64.h | 55 #define xchg(ptr,x) \ argument 75 unsigned int *ptr = (unsigned int *) (maddr & ~2); in xchg16() local 90 static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, in __xchg() 136 unsigned int *ptr = (unsigned int *) (maddr & ~3); in __cmpxchg_u8() local 157 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() 171 #define cmpxchg(ptr,o,n) \ argument 184 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local() 198 #define cmpxchg_local(ptr, o, n) \ argument 201 #define cmpxchg64_local(ptr, o, n) \ argument 206 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
|
/arch/mips/include/asm/ |
D | cmpxchg.h | 72 unsigned long __xchg(volatile void *ptr, unsigned long x, int size) in __xchg() 93 #define xchg(ptr, x) \ argument 153 unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() 178 #define cmpxchg_local(ptr, old, new) \ argument 185 #define cmpxchg(ptr, old, new) \ argument 211 #define cmpxchg64_local(ptr, o, n) \ argument 217 #define cmpxchg64(ptr, o, n) \ argument 225 # define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument 229 static inline unsigned long __cmpxchg64(volatile void *ptr, in __cmpxchg64() 300 # define cmpxchg64(ptr, o, n) ({ \ argument [all …]
|
/arch/arm/include/asm/ |
D | cmpxchg.h | 28 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size) in __xchg() 117 #define xchg_relaxed(ptr, x) ({ \ argument 137 #define cmpxchg_local(ptr, o, n) ({ \ argument 144 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument 156 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() 210 #define cmpxchg_relaxed(ptr,o,n) ({ \ argument 217 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local() 237 #define cmpxchg_local(ptr, o, n) ({ \ argument 244 static inline unsigned long long __cmpxchg64(unsigned long long *ptr, in __cmpxchg64() 269 #define cmpxchg64_relaxed(ptr, o, n) ({ \ argument [all …]
|
/arch/x86/include/asm/ |
D | cmpxchg_32.h | 24 static inline void set_64bit(volatile u64 *ptr, u64 value) in set_64bit() 39 #define arch_cmpxchg64(ptr, o, n) \ argument 42 #define arch_cmpxchg64_local(ptr, o, n) \ argument 47 static inline u64 __cmpxchg64(volatile u64 *ptr, u64 old, u64 new) in __cmpxchg64() 60 static inline u64 __cmpxchg64_local(volatile u64 *ptr, u64 old, u64 new) in __cmpxchg64_local() 79 #define arch_cmpxchg64(ptr, o, n) \ argument 96 #define arch_cmpxchg64_local(ptr, o, n) \ argument
|
D | cmpxchg.h | 42 #define __xchg_op(ptr, arg, op, lock) \ argument 78 #define arch_xchg(ptr, v) __xchg_op((ptr), (v), xchg, "") argument 85 #define __raw_cmpxchg(ptr, old, new, size, lock) \ argument 133 #define __cmpxchg(ptr, old, new, size) \ argument 136 #define __sync_cmpxchg(ptr, old, new, size) \ argument 139 #define __cmpxchg_local(ptr, old, new, size) \ argument 148 #define arch_cmpxchg(ptr, old, new) \ argument 151 #define arch_sync_cmpxchg(ptr, old, new) \ argument 154 #define arch_cmpxchg_local(ptr, old, new) \ argument 221 #define __try_cmpxchg(ptr, pold, new, size) \ argument [all …]
|
/arch/powerpc/include/asm/ |
D | uaccess.h | 46 #define get_user(x, ptr) \ argument 48 #define put_user(x, ptr) \ argument 51 #define __get_user(x, ptr) \ argument 53 #define __put_user(x, ptr) \ argument 55 #define __put_user_goto(x, ptr, label) \ argument 58 #define __get_user_allowed(x, ptr) \ argument 61 #define __get_user_inatomic(x, ptr) \ argument 63 #define __put_user_inatomic(x, ptr) \ argument 68 #define ___get_user_instr(gu_op, dest, ptr) \ argument 90 #define get_user_instr(x, ptr) \ argument [all …]
|
D | cmpxchg.h | 152 __xchg_local(void *ptr, unsigned long x, unsigned int size) in __xchg_local() 171 __xchg_relaxed(void *ptr, unsigned long x, unsigned int size) in __xchg_relaxed() 188 #define xchg_local(ptr,x) \ argument 195 #define xchg_relaxed(ptr, x) \ argument 392 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg() 412 __cmpxchg_local(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_local() 432 __cmpxchg_relaxed(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_relaxed() 452 __cmpxchg_acquire(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_acquire() 470 #define cmpxchg(ptr, o, n) \ argument 479 #define cmpxchg_local(ptr, o, n) \ argument [all …]
|
/arch/arc/include/asm/ |
D | cmpxchg.h | 17 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() 47 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() 66 #define cmpxchg(ptr, o, n) ({ \ argument 84 static inline unsigned long __xchg(unsigned long val, volatile void *ptr, in __xchg() 106 #define _xchg(ptr, with) ((typeof(*(ptr)))__xchg((unsigned long)(with), (ptr), \ argument 126 #define xchg(ptr, with) \ argument 139 #define xchg(ptr, with) _xchg(ptr, with) argument
|
/arch/ia64/include/uapi/asm/ |
D | cmpxchg.h | 30 #define __xchg(x, ptr, size) \ argument 56 #define xchg(ptr, x) \ argument 71 #define ia64_cmpxchg(sem, ptr, old, new, size) \ argument 115 #define cmpxchg_acq(ptr, o, n) \ argument 117 #define cmpxchg_rel(ptr, o, n) \ argument 130 #define cmpxchg(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) argument 131 #define cmpxchg64(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) argument
|
/arch/xtensa/include/asm/ |
D | cmpxchg.h | 74 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() 83 #define cmpxchg(ptr,o,n) \ argument 92 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local() 110 #define cmpxchg_local(ptr, o, n) \ argument 113 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument 114 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument 172 #define xchg(ptr,x) \ argument 175 static inline u32 xchg_small(volatile void *ptr, u32 x, int size) in xchg_small() 206 __xchg(unsigned long x, volatile void * ptr, int size) in __xchg()
|
/arch/m68k/include/asm/ |
D | cmpxchg.h | 13 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() 44 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() 79 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) argument 83 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument 121 #define cmpxchg(ptr, o, n) \ argument 124 #define cmpxchg_local(ptr, o, n) \ argument 128 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
|
/arch/openrisc/include/asm/ |
D | cmpxchg.h | 25 static inline unsigned long cmpxchg_u32(volatile void *ptr, in cmpxchg_u32() 44 static inline unsigned long xchg_u32(volatile void *ptr, in xchg_u32() 59 static inline u32 cmpxchg_small(volatile void *ptr, u32 old, u32 new, in cmpxchg_small() 92 static inline u32 xchg_small(volatile void *ptr, u32 x, int size) in xchg_small() 121 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() 135 #define cmpxchg(ptr, o, n) \ argument 150 static inline unsigned long __xchg(volatile void *ptr, unsigned long with, in __xchg() 164 #define xchg(ptr, with) \ argument
|
/arch/parisc/lib/ |
D | bitops.c | 21 unsigned long __xchg64(unsigned long x, volatile unsigned long *ptr) in __xchg64() 33 unsigned long __xchg32(int x, volatile int *ptr) in __xchg32() 46 unsigned long __xchg8(char x, volatile char *ptr) in __xchg8() 59 u64 __cmpxchg_u64(volatile u64 *ptr, u64 old, u64 new) in __cmpxchg_u64() 71 unsigned long __cmpxchg_u32(volatile unsigned int *ptr, unsigned int old, unsigned int new) in __cmpxchg_u32() 83 u8 __cmpxchg_u8(volatile u8 *ptr, u8 old, u8 new) in __cmpxchg_u8()
|
/arch/sh/include/asm/ |
D | cmpxchg.h | 25 #define __xchg(ptr, x, size) \ argument 48 #define xchg(ptr,x) \ argument 55 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, in __cmpxchg() 66 #define cmpxchg(ptr,o,n) \ argument
|
/arch/alpha/include/asm/ |
D | cmpxchg.h | 13 #define xchg_local(ptr, x) \ argument 20 #define cmpxchg_local(ptr, o, n) \ argument 29 #define cmpxchg64_local(ptr, o, n) \ argument 45 #define xchg(ptr, x) \ argument 56 #define cmpxchg(ptr, o, n) \ argument 68 #define cmpxchg64(ptr, o, n) \ argument
|
/arch/arm/mach-s3c/ |
D | pm-common.c | 27 void s3c_pm_do_save(struct sleep_save *ptr, int count) in s3c_pm_do_save() 46 void s3c_pm_do_restore(const struct sleep_save *ptr, int count) in s3c_pm_do_restore() 69 void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count) in s3c_pm_do_restore_core()
|
/arch/c6x/include/asm/ |
D | cmpxchg.h | 16 static inline unsigned int __xchg(unsigned int x, volatile void *ptr, int size) in __xchg() 44 #define xchg(ptr, x) \ argument 54 #define cmpxchg_local(ptr, o, n) \ argument 59 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
|