Home
last modified time | relevance | path

Searched refs:__gu_ptr (Results 1 – 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/arch/riscv/include/asm/
Duaccess.h142 #define __get_user_nocheck(x, __gu_ptr, __gu_err) \ argument
144 switch (sizeof(*__gu_ptr)) { \
146 __get_user_asm("lb", (x), __gu_ptr, __gu_err); \
149 __get_user_asm("lh", (x), __gu_ptr, __gu_err); \
152 __get_user_asm("lw", (x), __gu_ptr, __gu_err); \
155 __get_user_8((x), __gu_ptr, __gu_err); \
184 const __typeof__(*(ptr)) __user *__gu_ptr = (ptr); \
187 __chk_user_ptr(__gu_ptr); \
190 __get_user_nocheck(x, __gu_ptr, __gu_err); \
277 #define __put_user_nocheck(x, __gu_ptr, __pu_err) \ argument
[all …]
/kernel/linux/linux-5.10/arch/microblaze/include/asm/
Duaccess.h126 #define __get_user_asm(insn, __gu_ptr, __gu_val, __gu_err) \ argument
140 : "r"(__gu_ptr), "i"(-EFAULT) \
163 const typeof(*(ptr)) __user *__gu_ptr = (ptr); \
164 access_ok(__gu_ptr, sizeof(*__gu_ptr)) ? \
165 __get_user(x, __gu_ptr) : -EFAULT; \
195 #define __put_user_asm(insn, __gu_ptr, __gu_val, __gu_err) \ argument
209 : "r"(__gu_val), "r"(__gu_ptr), "i"(-EFAULT) \
213 #define __put_user_asm_8(__gu_ptr, __gu_val, __gu_err) \ argument
229 : "r"(&__gu_val), "r"(__gu_ptr), "i"(-EFAULT) \
/kernel/linux/linux-5.10/arch/nios2/include/asm/
Duaccess.h132 const __typeof__(*(ptr)) __user *__gu_ptr = (ptr); \
134 __get_user_common(__gu_val, sizeof(*(ptr)), __gu_ptr, __gu_err);\
142 const __typeof__(*(ptr)) __user *__gu_ptr = (ptr); \
144 if (access_ok( __gu_ptr, sizeof(*__gu_ptr))) \
145 __get_user_common(__gu_val, sizeof(*__gu_ptr), \
146 __gu_ptr, __gu_err); \
/kernel/linux/linux-5.10/arch/ia64/include/asm/
Duaccess.h148 const __typeof__(*(ptr)) __user *__gu_ptr = (ptr); \
152 if (!check || __access_ok(__gu_ptr, size)) \
154 case 1: __get_user_size(__gu_val, __gu_ptr, 1, __gu_err); break; \
155 case 2: __get_user_size(__gu_val, __gu_ptr, 2, __gu_err); break; \
156 case 4: __get_user_size(__gu_val, __gu_ptr, 4, __gu_err); break; \
157 case 8: __get_user_size(__gu_val, __gu_ptr, 8, __gu_err); break; \
160 (x) = (__force __typeof__(*(__gu_ptr))) __gu_val; \
/kernel/linux/linux-5.10/arch/csky/include/asm/
Duaccess.h210 const __typeof__(*(ptr)) __user *__gu_ptr = (ptr); \
211 if (access_ok(__gu_ptr, size) && __gu_ptr) \
212 __get_user_size(x, __gu_ptr, size, __gu_err); \
/kernel/linux/linux-5.10/arch/x86/include/asm/
Duaccess.h302 const unsigned int __user *__gu_ptr; \
303 __gu_ptr = (const void __user *)(ptr); \
304 __get_user_asm(__gu_low, __gu_ptr, "l", "=r", label); \
305 __get_user_asm(__gu_high, __gu_ptr+1, "l", "=r", label); \
/kernel/linux/linux-5.10/arch/mips/include/asm/
Duaccess.h300 const __typeof__(*(ptr)) __user * __gu_ptr = (ptr); \
303 if (likely(access_ok( __gu_ptr, size))) { \
305 __get_kernel_common((x), size, __gu_ptr); \
307 __get_user_common((x), size, __gu_ptr); \
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Duaccess.h148 const void __user *__gu_ptr = (ptr); \
171 "+a" (__gu_ptr) \