/linux/arch/sparc/include/asm/ |
H A D | uaccess_32.h | 113 register unsigned long __gu_val; \ 117 __get_user_asm(__gu_val, ub, addr, __gu_ret); \ 120 __get_user_asm(__gu_val, uh, addr, __gu_ret); \ 123 __get_user_asm(__gu_val, , addr, __gu_ret); \ 126 __get_user_asm(__gu_val, d, addr, __gu_ret); \ 129 __gu_val = 0; \ 134 __gu_val = 0; \ 137 x = (__force type) __gu_val; \ 143 register unsigned long __gu_val; \ 145 case 1: __get_user_asm(__gu_val, ub, addr, __gu_ret); break; \ [all …]
|
H A D | uaccess_64.h | 151 register unsigned long __gu_val; \ 153 case 1: __get_kernel_asm(__gu_val, ub, addr, __gu_ret); break; \ 154 case 2: __get_kernel_asm(__gu_val, uh, addr, __gu_ret); break; \ 155 case 4: __get_kernel_asm(__gu_val, uw, addr, __gu_ret); break; \ 156 case 8: __get_kernel_asm(__gu_val, x, addr, __gu_ret); break; \ 158 __gu_val = 0; \ 164 *(type *)dst = (__force type) __gu_val; \ 189 register unsigned long __gu_val; \ 191 case 1: __get_user_asm(__gu_val, ub, addr, __gu_ret); break; \ 192 case 2: __get_user_asm(__gu_val, uh, addr, __gu_ret); break; \ [all …]
|
/linux/arch/microblaze/include/asm/ |
H A D | uaccess.h | 59 #define __get_user_asm(insn, __gu_ptr, __gu_val, __gu_err) \ argument 72 : "=&r"(__gu_err), "=r"(__gu_val) \ 128 #define __put_user_asm(insn, __gu_ptr, __gu_val, __gu_err) \ argument 142 : "r"(__gu_val), "r"(__gu_ptr), "i"(-EFAULT) \ 146 #define __put_user_asm_8(__gu_ptr, __gu_val, __gu_err) \ argument 162 : "r"(&__gu_val), "r"(__gu_ptr), "i"(-EFAULT) \ 221 __typeof__(*(ptr)) volatile __gu_val = (x); \ 223 switch (sizeof(__gu_val)) { \ 225 __put_user_asm("sb", (ptr), __gu_val, __gu_err); \ 228 __put_user_asm("sh", (ptr), __gu_val, __gu_err); \ [all …]
|
/linux/arch/alpha/include/asm/ |
H A D | uaccess.h | 50 unsigned long __gu_val; \ 59 (x) = (__force __typeof__(*(ptr))) __gu_val; \ 66 unsigned long __gu_val = 0; \ 78 (x) = (__force __typeof__(*(ptr))) __gu_val; \ 89 : "=r"(__gu_val), "=r"(__gu_err) \ 96 : "=r"(__gu_val), "=r"(__gu_err) \ 103 : "=r"(__gu_val), "=r"(__gu_err) \ 110 : "=r"(__gu_val), "=r"(__gu_err) \
|
/linux/arch/sh/include/asm/ |
H A D | uaccess.h | 37 unsigned long __gu_val; \ 40 __get_user_size(__gu_val, __gu_addr, (size), __gu_err); \ 41 (x) = (__force __typeof__(*(ptr)))__gu_val; \ 48 unsigned long __gu_val = 0; \ 51 __get_user_size(__gu_val, __gu_addr, (size), __gu_err); \ 52 (x) = (__force __typeof__(*(ptr)))__gu_val; \
|
/linux/arch/mips/include/asm/ |
H A D | paccess.h | 37 __typeof__(*(ptr)) __gu_val; \ 39 __asm__("":"=r" (__gu_val)); \ 49 x = (__typeof__(*(ptr))) __gu_val; \ 68 :"=r" (__gu_err), "=r" (__gu_val) \
|
/linux/arch/m68k/include/asm/ |
H A D | uaccess.h | 106 type __gu_val; \ 121 : "+d" (res), "=&" #reg (__gu_val) \ 123 (x) = (__force typeof(*(ptr)))(__force unsigned long)__gu_val; \ 132 } __gu_val; \ 151 : "+d" (res), "=&r" (__gu_val.l), \ 155 (x) = __gu_val.t; \
|
/linux/arch/arm64/include/asm/ |
H A D | uaccess.h | 208 unsigned long __gu_val; \ 211 __get_mem_asm(ldr "b", "%w", __gu_val, (ptr), label, type); \ 214 __get_mem_asm(ldr "h", "%w", __gu_val, (ptr), label, type); \ 217 __get_mem_asm(ldr, "%w", __gu_val, (ptr), label, type); \ 220 __get_mem_asm(ldr, "%x", __gu_val, (ptr), label, type); \ 225 (x) = (__force __typeof__(*(ptr)))__gu_val; \
|
/linux/arch/nios2/include/asm/ |
H A D | uaccess.h | 70 unsigned long __gu_val; \ 79 : "=&r" (err), "=r" (__gu_val) \ 81 val = (__force __typeof__(*(addr)))__gu_val; \
|
/linux/arch/parisc/include/asm/ |
H A D | uaccess.h | 52 register long __gu_val; \ 57 : "=r"(__gu_val), "+r"(__gu_err) \ 60 (val) = (__force __typeof__(*(ptr))) __gu_val; \
|
/linux/arch/powerpc/include/asm/ |
H A D | uaccess.h | 299 __long_type(*(ptr)) __gu_val; \ 305 __get_user_size_allowed(__gu_val, __gu_addr, __gu_size, __gu_err); \ 307 (x) = (__typeof__(*(ptr)))__gu_val; \ 455 __long_type(*(p)) __gu_val; \ 458 __get_user_size_goto(__gu_val, __gu_addr, sizeof(*(p)), e); \ 459 (x) = (__typeof__(*(p)))__gu_val; \
|
/linux/arch/arm/include/asm/ |
H A D | uaccess.h | 289 unsigned long __gu_val; \ 295 case 1: __get_user_asm_byte(__gu_val, __gu_addr, err, __t); break; \ 296 case 2: __get_user_asm_half(__gu_val, __gu_addr, err, __t); break; \ 297 case 4: __get_user_asm_word(__gu_val, __gu_addr, err, __t); break; \ 298 default: (__gu_val) = __get_user_bad(); \ 301 (x) = (__typeof__(*(ptr)))__gu_val; \
|
/linux/Documentation/arch/x86/ |
H A D | exception-tables.rst | 73 long __gu_err = - 14 , __gu_val = 0; 92 ".text" : "=r"(__gu_err), "=q" (__gu_val): "m"((*(struct __large_struct *) 106 ".text" : "=r"(__gu_err), "=r" (__gu_val) : "m"((*(struct __large_struct *) 119 ".text" : "=r"(__gu_err), "=r" (__gu_val) : "m"((*(struct __large_struct *) 123 (__gu_val) = __get_user_bad(); 126 ((c)) = (__typeof__(*((buf))))__gu_val;
|