Home
last modified time | relevance | path

Searched refs:__pu_addr (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/arch/arm/include/asm/
Duaccess.h426 unsigned long __pu_addr = (unsigned long)__pu_ptr; \
427 __put_user_nocheck_##__size(x, __pu_addr, __err); \
435 #define __put_user_asm(x, __pu_addr, err, instr) \ argument
446 : "r" (x), "r" (__pu_addr), "i" (-EFAULT) \
449 #define __put_user_asm_byte(x, __pu_addr, err) \ argument
450 __put_user_asm(x, __pu_addr, err, strb)
454 #define __put_user_asm_half(x, __pu_addr, err) \ argument
455 __put_user_asm(x, __pu_addr, err, strh)
460 #define __put_user_asm_half(x, __pu_addr, err) \ argument
463 __put_user_asm_byte(__temp, __pu_addr, err); \
[all …]
/kernel/linux/linux-5.10/arch/csky/include/asm/
Duaccess.h72 typeof(*(ptr)) *__pu_addr = (ptr); \
74 if (__pu_addr) \
75 __put_user_size(__pu_val, (__pu_addr), (size), \
83 typeof(*(ptr)) *__pu_addr = (ptr); \
85 if (access_ok(__pu_addr, size) && __pu_addr) \
86 __put_user_size(__pu_val, __pu_addr, (size), __pu_err); \
/kernel/linux/linux-5.10/arch/microblaze/include/asm/
Duaccess.h256 typeof(*(ptr)) __user *__pu_addr = (ptr); \
259 if (access_ok(__pu_addr, size)) { \
262 __put_user_asm("sb", __pu_addr, __pu_val, \
266 __put_user_asm("sh", __pu_addr, __pu_val, \
270 __put_user_asm("sw", __pu_addr, __pu_val, \
274 __put_user_asm_8(__pu_addr, __pu_val, __pu_err);\
/kernel/linux/linux-5.10/arch/sh/include/asm/
Duaccess.h81 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
84 __put_user_size(__pu_val, __pu_addr, (size), __pu_err); \
91 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
93 if (likely(access_ok(__pu_addr, size))) \
94 __put_user_size(__pu_val, __pu_addr, (size), \
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Duaccess.h135 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
139 if (!is_kernel_addr((unsigned long)__pu_addr)) \
141 __chk_user_ptr(__pu_addr); \
142 __put_user_size(__pu_val, __pu_addr, __pu_size, __pu_err); \
150 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
155 if (access_ok(__pu_addr, __pu_size)) \
156 __put_user_size(__pu_val, __pu_addr, __pu_size, __pu_err); \
164 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
168 __chk_user_ptr(__pu_addr); \
169 __put_user_size(__pu_val, __pu_addr, __pu_size, __pu_err); \
[all …]
/kernel/linux/linux-5.10/arch/alpha/include/asm/
Duaccess.h202 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
203 if (__access_ok((unsigned long)__pu_addr, size)) { \
206 case 1: __put_user_8(x, __pu_addr); break; \
207 case 2: __put_user_16(x, __pu_addr); break; \
208 case 4: __put_user_32(x, __pu_addr); break; \
209 case 8: __put_user_64(x, __pu_addr); break; \
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dpaccess.h78 long __pu_addr; \
80 __pu_addr = (long) (ptr); \
107 : "r" (__pu_val), "o" (__mp(__pu_addr)), "i" (-EFAULT)); \
Duaccess.h440 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
445 if (likely(access_ok( __pu_addr, size))) { \
447 __put_kernel_common(__pu_addr, size); \
449 __put_user_common(__pu_addr, size); \
/kernel/linux/linux-5.10/arch/openrisc/include/asm/
Duaccess.h104 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
105 if (access_ok(__pu_addr, size)) \
106 __put_user_size((x), __pu_addr, (size), __pu_err); \
/kernel/linux/linux-5.10/arch/xtensa/include/asm/
Duaccess.h87 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
88 if (access_ok(__pu_addr, size)) \
89 __put_user_size((x), __pu_addr, (size), __pu_err); \
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Duaccess_64.h87 unsigned long __pu_addr = (unsigned long)(ptr); \
89 __put_user_nocheck((__typeof__(*(ptr)))(x), __pu_addr, sizeof(*(ptr)));\
Duaccess_32.h83 unsigned long __pu_addr = (unsigned long)(ptr); \
85 __put_user_check((__typeof__(*(ptr)))(x), __pu_addr, sizeof(*(ptr))); \