Home
last modified time | relevance | path

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

/arch/arm/include/asm/
Duaccess.h463 unsigned long __pu_addr = (unsigned long)__pu_ptr; \
464 __put_user_nocheck_##__size(x, __pu_addr, __err); \
472 #define __put_user_asm(x, __pu_addr, err, instr) \ argument
486 : "r" (x), "r" (__pu_addr), "i" (-EFAULT) \
489 #define __put_user_asm_byte(x, __pu_addr, err) \ argument
490 __put_user_asm(x, __pu_addr, err, strb)
494 #define __put_user_asm_half(x, __pu_addr, err) \ argument
495 __put_user_asm(x, __pu_addr, err, strh)
500 #define __put_user_asm_half(x, __pu_addr, err) \ argument
503 __put_user_asm_byte(__temp, __pu_addr, err); \
[all …]
/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.h457 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
462 if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { \
464 __put_kernel_common(__pu_addr, size); \
466 __put_user_common(__pu_addr, size); \
736 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
740 if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) \
741 __put_user_unaligned_common(__pu_addr, size); \
/arch/mn10300/include/asm/
Duaccess.h204 unsigned long __pu_addr; \
207 __pu_addr = (unsigned long) (ptr); \
224 unsigned long __pu_addr; \
227 __pu_addr = (unsigned long) (ptr); \
228 if (likely(__access_ok(__pu_addr, size))) { \
260 : "r" (__pu_val.val), "m" (__m(__pu_addr)), \
284 "m" (__m(__pu_addr)), "m" (__m(__pu_addr+4)), \
/arch/avr32/include/asm/
Duaccess.h275 typeof(*(ptr)) __user *__pu_addr = (ptr); \
279 if (access_ok(VERIFY_WRITE, __pu_addr, size)) { \
282 __put_user_asm("b", __pu_addr, __pu_val, \
286 __put_user_asm("h", __pu_addr, __pu_val, \
290 __put_user_asm("w", __pu_addr, __pu_val, \
294 __put_user_asm("d", __pu_addr, __pu_val, \
/arch/score/include/asm/
Duaccess.h254 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
258 if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { \
261 __put_user_asm("sb", __pu_addr); \
264 __put_user_asm("sh", __pu_addr); \
267 __put_user_asm("sw", __pu_addr); \
270 if ((__copy_to_user((void *)__pu_addr, &__pu_val, 8)) == 0)\
/arch/powerpc/include/asm/
Duaccess.h192 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
196 if (!is_kernel_addr((unsigned long)__pu_addr)) \
198 __chk_user_ptr(__pu_addr); \
200 __put_user_size(__pu_val, __pu_addr, __pu_size, __pu_err); \
202 __put_user_size_allowed(__pu_val, __pu_addr, __pu_size, __pu_err); \
210 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
215 if (access_ok(VERIFY_WRITE, __pu_addr, __pu_size)) \
216 __put_user_size(__pu_val, __pu_addr, __pu_size, __pu_err); \
224 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
228 __chk_user_ptr(__pu_addr); \
[all …]
/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(VERIFY_WRITE, __pu_addr, size))) \
94 __put_user_size(__pu_val, __pu_addr, (size), \
/arch/microblaze/include/asm/
Duaccess.h312 typeof(*(ptr)) __user *__pu_addr = (ptr); \
315 if (access_ok(VERIFY_WRITE, __pu_addr, size)) { \
318 __put_user_asm("sb", __pu_addr, __pu_val, \
322 __put_user_asm("sh", __pu_addr, __pu_val, \
326 __put_user_asm("sw", __pu_addr, __pu_val, \
330 __put_user_asm_8(__pu_addr, __pu_val, __pu_err);\
/arch/alpha/include/asm/
Duaccess.h221 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
222 if (__access_ok((unsigned long)__pu_addr, size, segment)) { \
225 case 1: __put_user_8(x, __pu_addr); break; \
226 case 2: __put_user_16(x, __pu_addr); break; \
227 case 4: __put_user_32(x, __pu_addr); break; \
228 case 8: __put_user_64(x, __pu_addr); break; \
/arch/openrisc/include/asm/
Duaccess.h129 __typeof__(*(ptr)) *__pu_addr = (ptr); \
130 if (access_ok(VERIFY_WRITE, __pu_addr, size)) \
131 __put_user_size((x), __pu_addr, (size), __pu_err); \
/arch/metag/include/asm/
Duaccess.h107 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
108 if (access_ok(VERIFY_WRITE, __pu_addr, size)) \
109 __put_user_size((x), __pu_addr, (size), __pu_err); \
/arch/m32r/include/asm/
Duaccess.h312 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
314 if (access_ok(VERIFY_WRITE, __pu_addr, size)) \
315 __put_user_size((x), __pu_addr, (size), __pu_err); \
/arch/sparc/include/asm/
Duaccess_64.h113 unsigned long __pu_addr = (unsigned long)(ptr); \
115 __put_user_nocheck((__typeof__(*(ptr)))(x), __pu_addr, sizeof(*(ptr)));\
Duaccess_32.h95 unsigned long __pu_addr = (unsigned long)(ptr); \
97 __put_user_check((__typeof__(*(ptr)))(x), __pu_addr, sizeof(*(ptr))); \
/arch/xtensa/include/asm/
Duaccess.h232 __typeof__(*(ptr)) *__pu_addr = (ptr); \
233 if (access_ok(VERIFY_WRITE, __pu_addr, size)) \
234 __put_user_size((x), __pu_addr, (size), __pu_err); \
/arch/cris/include/asm/
Duaccess.h159 __typeof__(*(ptr)) *__pu_addr = (ptr); \
160 if (access_ok(VERIFY_WRITE, __pu_addr, size)) \
161 __put_user_size((x), __pu_addr, (size), __pu_err); \