/arch/s390/include/asm/ |
D | bitops.h | 44 __bitops_word(unsigned long nr, volatile unsigned long *ptr) in __bitops_word() 53 __bitops_byte(unsigned long nr, volatile unsigned long *ptr) in __bitops_byte() 58 static inline void set_bit(unsigned long nr, volatile unsigned long *ptr) in set_bit() 79 static inline void clear_bit(unsigned long nr, volatile unsigned long *ptr) in clear_bit() 100 static inline void change_bit(unsigned long nr, volatile unsigned long *ptr) in change_bit() 122 test_and_set_bit(unsigned long nr, volatile unsigned long *ptr) in test_and_set_bit() 133 test_and_clear_bit(unsigned long nr, volatile unsigned long *ptr) in test_and_clear_bit() 144 test_and_change_bit(unsigned long nr, volatile unsigned long *ptr) in test_and_change_bit() 154 static inline void __set_bit(unsigned long nr, volatile unsigned long *ptr) in __set_bit() 162 __clear_bit(unsigned long nr, volatile unsigned long *ptr) in __clear_bit() [all …]
|
/arch/ia64/sn/pci/pcibr/ |
D | pcibr_reg.c | 28 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_control_bit_clr() local 48 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_control_bit_set() local 71 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_tflush_get() local 101 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_intr_status_get() local 126 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_intr_enable_bit_clr() local 146 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_intr_enable_bit_set() local 170 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_intr_addr_addr_set() local 199 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_force_intr_set() local 222 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_wrb_flush_get() local 247 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_int_ate_set() local [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 66 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() 79 #define cmpxchg(ptr, o, n) \ argument 89 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local() 107 #define cmpxchg_local(ptr, o, n) \ argument 111 #define cmpxchg64_local(ptr, o, n) \ argument 117 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument 120 #define cmpxchg64(ptr, o, n) __cmpxchg_u64(ptr, o, n) argument
|
D | uaccess.h | 37 #define LDD_USER(val, ptr) __get_user_asm64(val, ptr) argument 38 #define STD_USER(x, ptr) __put_user_asm64(x, ptr) argument 40 #define LDD_USER(val, ptr) __get_user_asm(val, "ldd", ptr) argument 41 #define STD_USER(x, ptr) __put_user_asm("std", x, ptr) argument 84 #define __get_user_internal(val, ptr) \ argument 99 #define __get_user(val, ptr) \ argument 105 #define __get_user_asm(val, ldx, ptr) \ argument 120 #define __get_user_asm64(val, ptr) \ argument 142 #define __put_user_internal(x, ptr) \ argument 158 #define __put_user(x, ptr) \ argument [all …]
|
/arch/arc/include/asm/ |
D | cmpxchg.h | 20 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() 50 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() 70 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() 95 #define cmpxchg(ptr, o, n) ({ \ argument 115 static inline unsigned long __xchg(unsigned long val, volatile void *ptr, in __xchg() 137 #define _xchg(ptr, with) ((typeof(*(ptr)))__xchg((unsigned long)(with), (ptr), \ argument 157 #define xchg(ptr, with) \ argument 170 #define xchg(ptr, with) _xchg(ptr, with) argument 176 static inline unsigned long __xchg(unsigned long val, volatile void *ptr, in __xchg() 204 #define xchg(ptr, with) ({ \ argument
|
/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/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/tile/include/asm/ |
D | cmpxchg.h | 43 #define xchg(ptr, n) \ argument 51 #define cmpxchg(ptr, o, n) \ argument 60 #define xchg64(ptr, n) \ argument 69 #define cmpxchg64(ptr, o, n) \ argument 80 #define xchg(ptr, n) \ argument 102 #define cmpxchg(ptr, o, n) \ argument
|
D | uaccess.h | 122 #define __get_user_asm(OP, x, ptr, ret) \ argument 136 #define __get_user_1(x, ptr, ret) __get_user_asm(ld1u, x, ptr, ret) argument 137 #define __get_user_2(x, ptr, ret) __get_user_asm(ld2u, x, ptr, ret) argument 138 #define __get_user_4(x, ptr, ret) __get_user_asm(ld4s, x, ptr, ret) argument 139 #define __get_user_8(x, ptr, ret) __get_user_asm(ld, x, ptr, ret) argument 141 #define __get_user_1(x, ptr, ret) __get_user_asm(lb_u, x, ptr, ret) argument 142 #define __get_user_2(x, ptr, ret) __get_user_asm(lh_u, x, ptr, ret) argument 143 #define __get_user_4(x, ptr, ret) __get_user_asm(lw, x, ptr, ret) argument 151 #define __get_user_8(x, ptr, ret) \ argument 197 #define __get_user(x, ptr) \ argument [all …]
|
/arch/blackfin/include/asm/ |
D | cmpxchg.h | 24 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, in __xchg() 49 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() 68 #define cmpxchg(ptr, o, n) \ argument 82 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, in __xchg() 120 #define cmpxchg_local(ptr, o, n) \ argument 123 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument 125 #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) argument 126 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument 130 #define xchg(ptr, x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr)))) argument
|
/arch/frv/include/asm/ |
D | cmpxchg.h | 27 #define xchg(ptr, x) \ argument 55 #define xchg(ptr, x) \ argument 83 #define cmpxchg(ptr, test, new) \ argument 123 #define cmpxchg(ptr, test, new) \ argument 148 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local() 166 #define cmpxchg_local(ptr, o, n) \ argument 169 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
|
/arch/x86/include/asm/ |
D | cmpxchg_32.h | 24 static inline void set_64bit(volatile u64 *ptr, u64 value) in set_64bit() 39 #define cmpxchg64(ptr, o, n) \ argument 42 #define 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 cmpxchg64(ptr, o, n) \ argument 96 #define cmpxchg64_local(ptr, o, n) \ argument
|
D | cmpxchg.h | 42 #define __xchg_op(ptr, arg, op, lock) \ argument 78 #define 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 cmpxchg(ptr, old, new) \ argument 151 #define sync_cmpxchg(ptr, old, new) \ argument 154 #define cmpxchg_local(ptr, old, new) \ argument 221 #define __try_cmpxchg(ptr, pold, new, size) \ argument [all …]
|
D | uaccess.h | 171 #define get_user(x, ptr) \ argument 185 #define __put_user_x(size, x, ptr, __ret_pu) \ argument 215 #define __put_user_x8(x, ptr, __ret_pu) \ argument 219 #define __put_user_asm_u64(x, ptr, retval, errret) \ argument 223 #define __put_user_x8(x, ptr, __ret_pu) __put_user_x(8, x, ptr, __ret_pu) argument 254 #define put_user(x, ptr) \ argument 281 #define __put_user_size(x, ptr, size, retval, errret) \ argument 307 #define __put_user_size_ex(x, ptr, size) \ argument 329 #define __get_user_asm_u64(x, ptr, retval, errret) \ argument 349 #define __get_user_asm_ex_u64(x, ptr) (x) = __get_user_bad() argument [all …]
|
/arch/xtensa/include/asm/ |
D | cmpxchg.h | 56 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() 65 #define cmpxchg(ptr,o,n) \ argument 74 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local() 92 #define cmpxchg_local(ptr, o, n) \ argument 95 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument 96 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument 138 #define xchg(ptr,x) \ argument 150 __xchg(unsigned long x, volatile void * ptr, int size) in __xchg()
|
/arch/mips/include/asm/ |
D | cmpxchg.h | 77 unsigned long __xchg(volatile void *ptr, unsigned long x, int size) in __xchg() 98 #define xchg(ptr, x) \ argument 150 unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() 175 #define cmpxchg_local(ptr, old, new) \ argument 182 #define cmpxchg(ptr, old, new) \ argument 194 #define cmpxchg64_local(ptr, o, n) \ argument 200 #define cmpxchg64(ptr, o, n) \ argument 207 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument 209 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
|
/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 136 #define cmpxchg_local(ptr, o, n) \ argument
|
/arch/m32r/include/asm/ |
D | cmpxchg.h | 18 __xchg(unsigned long x, volatile void *ptr, int size) in __xchg() 68 #define xchg(ptr, x) ({ \ argument 74 __xchg_local(unsigned long x, volatile void *ptr, int size) in __xchg_local() 109 #define xchg_local(ptr, x) \ argument 179 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() 193 #define cmpxchg(ptr, o, n) ({ \ argument 202 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local() 220 #define cmpxchg_local(ptr, o, n) \ argument 223 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) 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/metag/include/asm/ |
D | uaccess.h | 66 #define put_user(x, ptr) \ argument 68 #define __put_user(x, ptr) \ argument 73 #define __put_user_nocheck(x, ptr, size) \ argument 80 #define __put_user_check(x, ptr, size) \ argument 94 #define __put_user_size(x, ptr, size, retval) \ argument 116 #define get_user(x, ptr) \ argument 118 #define __get_user(x, ptr) \ argument 123 #define __get_user_nocheck(x, ptr, size) \ argument 132 #define __get_user_check(x, ptr, size) \ argument 148 #define __get_user_size(x, ptr, size, retval) \ argument
|
D | cmpxchg.h | 17 #define __xchg(ptr, x, size) \ argument 37 #define xchg(ptr, x) \ argument 44 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() 55 #define cmpxchg(ptr, o, n) \ argument
|
/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/unicore32/include/asm/ |
D | cmpxchg.h | 19 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, in __xchg() 44 #define xchg(ptr, x) \ argument 53 #define cmpxchg_local(ptr, o, n) \ argument 56 #define cmpxchg64_local(ptr, o, n) \ argument
|
/arch/powerpc/include/asm/ |
D | cmpxchg.h | 159 __xchg_local(void *ptr, unsigned long x, unsigned int size) in __xchg_local() 178 __xchg_relaxed(void *ptr, unsigned long x, unsigned int size) in __xchg_relaxed() 195 #define xchg_local(ptr,x) \ argument 202 #define xchg_relaxed(ptr, x) \ argument 403 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg() 423 __cmpxchg_local(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_local() 443 __cmpxchg_relaxed(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_relaxed() 463 __cmpxchg_acquire(void *ptr, unsigned long old, unsigned long new, in __cmpxchg_acquire() 481 #define cmpxchg(ptr, o, n) \ argument 490 #define cmpxchg_local(ptr, o, n) \ argument [all …]
|