Home
last modified time | relevance | path

Searched refs:__gu_err (Results 1 – 19 of 19) sorted by relevance

/linux-6.12.1/arch/microblaze/include/asm/
Duaccess.h59 #define __get_user_asm(insn, __gu_ptr, __gu_val, __gu_err) \ argument
72 : "=&r"(__gu_err), "=r"(__gu_val) \
103 long __gu_err; \
106 __get_user_asm("lbu", (ptr), x, __gu_err); \
109 __get_user_asm("lhu", (ptr), x, __gu_err); \
112 __get_user_asm("lw", (ptr), x, __gu_err); \
116 __gu_err = raw_copy_from_user(&__x, ptr, 8) ? \
122 /* __gu_val = 0; __gu_err = -EINVAL;*/ __gu_err = __user_bad();\
124 __gu_err; \
128 #define __put_user_asm(insn, __gu_ptr, __gu_val, __gu_err) \ argument
[all …]
/linux-6.12.1/arch/alpha/include/asm/
Duaccess.h49 long __gu_err = 0; \
60 __gu_err; \
65 long __gu_err = -EFAULT; \
69 __gu_err = 0; \
79 __gu_err; \
89 : "=r"(__gu_val), "=r"(__gu_err) \
90 : "m"(__m(addr)), "1"(__gu_err))
96 : "=r"(__gu_val), "=r"(__gu_err) \
97 : "m"(__m(addr)), "1"(__gu_err))
103 : "=r"(__gu_val), "=r"(__gu_err) \
[all …]
/linux-6.12.1/arch/riscv/include/asm/
Duaccess.h91 #define __get_user_nocheck(x, __gu_ptr, __gu_err) \ argument
95 __get_user_asm("lb", (x), __gu_ptr, __gu_err); \
98 __get_user_asm("lh", (x), __gu_ptr, __gu_err); \
101 __get_user_asm("lw", (x), __gu_ptr, __gu_err); \
104 __get_user_8((x), __gu_ptr, __gu_err); \
134 long __gu_err = 0; \
139 __get_user_nocheck(x, __gu_ptr, __gu_err); \
142 __gu_err; \
/linux-6.12.1/arch/nios2/include/asm/
Duaccess.h119 long __gu_err = -EFAULT; \
121 __get_user_common(x, sizeof(*(ptr)), __gu_ptr, __gu_err); \
122 __gu_err; \
127 long __gu_err = -EFAULT; \
131 __gu_ptr, __gu_err); \
132 __gu_err; \
/linux-6.12.1/arch/sh/include/asm/
Duaccess.h36 long __gu_err; \
40 __get_user_size(__gu_val, __gu_addr, (size), __gu_err); \
42 __gu_err; \
47 long __gu_err = -EFAULT; \
51 __get_user_size(__gu_val, __gu_addr, (size), __gu_err); \
53 __gu_err; \
/linux-6.12.1/arch/openrisc/include/asm/
Duaccess.h131 long __gu_err; \
132 __get_user_size((x), (ptr), (size), __gu_err); \
133 __gu_err; \
138 long __gu_err = -EFAULT; \
141 __get_user_size((x), __gu_addr, (size), __gu_err); \
144 __gu_err; \
/linux-6.12.1/arch/mips/include/asm/
Dpaccess.h36 long __gu_err; \
41 __asm__("":"=r" (__gu_err)); \
50 __gu_err; \
68 :"=r" (__gu_err), "=r" (__gu_val) \
Duaccess.h172 int __gu_err = 0; \
192 __gu_err; \
221 : "=r" (__gu_err), "=r" (__gu_tmp) \
252 : "=r" (__gu_err), "=&r" (__gu_tmp.l) \
260 int __gu_err; \
283 if (unlikely(__gu_err)) \
/linux-6.12.1/arch/xtensa/include/asm/
Duaccess.h151 long __gu_err; \
152 __get_user_size((x), (ptr), (size), __gu_err); \
153 __gu_err; \
158 long __gu_err = -EFAULT; \
161 __get_user_size((x), __gu_addr, (size), __gu_err); \
164 __gu_err; \
/linux-6.12.1/include/asm-generic/
Duaccess.h148 int __gu_err = -EFAULT; \
153 __gu_err = __get_user_fn(sizeof (*(ptr)), \
160 __gu_err = __get_user_fn(sizeof (*(ptr)), \
167 __gu_err = __get_user_fn(sizeof (*(ptr)), \
174 __gu_err = __get_user_fn(sizeof (*(ptr)), \
183 __gu_err; \
/linux-6.12.1/arch/loongarch/include/asm/
Duaccess.h102 int __gu_err = 0; \
106 __gu_err; \
164 : "+r" (__gu_err), "=r" (__gu_tmp) \
195 int __gu_err = 0; \
199 if (unlikely(__gu_err)) \
/linux-6.12.1/arch/parisc/include/asm/
Duaccess.h32 ASM_EXCEPTIONTABLE_VAR(__gu_err); \
42 __gu_err; \
57 : "=r"(__gu_val), "+r"(__gu_err) \
90 : "=&r"(__gu_tmp.l), "+r"(__gu_err) \
/linux-6.12.1/arch/m68k/include/asm/
Duaccess.h160 int __gu_err = 0; \
164 __get_user_asm(MOVES, __gu_err, x, ptr, u8, b, d, -EFAULT); \
167 __get_user_asm(MOVES, __gu_err, x, ptr, u16, w, r, -EFAULT); \
170 __get_user_asm(MOVES, __gu_err, x, ptr, u32, l, r, -EFAULT); \
173 __get_user_asm8(MOVES, __gu_err, x, ptr); \
178 __gu_err; \
/linux-6.12.1/arch/s390/include/asm/
Duaccess.h272 int __gu_err = -EFAULT; \
279 __gu_err = __get_user_fn(&__x, ptr, sizeof(*(ptr))); \
286 __gu_err = __get_user_fn(&__x, ptr, sizeof(*(ptr))); \
293 __gu_err = __get_user_fn(&__x, ptr, sizeof(*(ptr))); \
300 __gu_err = __get_user_fn(&__x, ptr, sizeof(*(ptr))); \
308 __builtin_expect(__gu_err, 0); \
/linux-6.12.1/Documentation/arch/x86/
Dexception-tables.rst73 long __gu_err = - 14 , __gu_val = 0;
79 __gu_err = 0;
92 ".text" : "=r"(__gu_err), "=q" (__gu_val): "m"((*(struct __large_struct *)
93 ( __gu_addr )) ), "i"(- 14 ), "0"( __gu_err )) ;
106 ".text" : "=r"(__gu_err), "=r" (__gu_val) : "m"((*(struct __large_struct *)
107 ( __gu_addr )) ), "i"(- 14 ), "0"( __gu_err ));
119 ".text" : "=r"(__gu_err), "=r" (__gu_val) : "m"((*(struct __large_struct *)
120 ( __gu_addr )) ), "i"(- 14 ), "0"(__gu_err));
127 __gu_err;
/linux-6.12.1/arch/arm64/include/asm/
Duaccess.h267 int __gu_err = 0; \
268 __get_user_error((x), (ptr), __gu_err); \
269 __gu_err; \
/linux-6.12.1/arch/powerpc/include/asm/
Duaccess.h298 long __gu_err; \
305 __get_user_size_allowed(__gu_val, __gu_addr, __gu_size, __gu_err); \
309 __gu_err; \
/linux-6.12.1/arch/arm/include/asm/
Duaccess.h281 long __gu_err = 0; \
282 __get_user_err((x), (ptr), __gu_err, TUSER()); \
283 __gu_err; \
/linux-6.12.1/arch/x86/include/asm/
Duaccess.h545 int __gu_err; \
547 __get_user_size(__gu_val, (ptr), sizeof(*(ptr)), __gu_err); \
549 if (unlikely(__gu_err)) goto err_label; \