/arch/cris/include/arch-v32/arch/ |
D | uaccess.h | 162 #define __asm_copy_user_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument 172 : "=b" (to), "=b" (from), "=r" (ret) \ 173 : "0" (to), "1" (from), "2" (ret) \ 176 #define __asm_copy_from_user_1(to, from, ret) \ argument 177 __asm_copy_user_cont(to, from, ret, \ 185 #define __asm_copy_from_user_2x_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument 186 __asm_copy_user_cont(to, from, ret, \ 197 #define __asm_copy_from_user_2(to, from, ret) \ argument 198 __asm_copy_from_user_2x_cont(to, from, ret, "", "", "") 200 #define __asm_copy_from_user_3(to, from, ret) \ argument [all …]
|
/arch/cris/include/arch-v10/arch/ |
D | uaccess.h | 156 #define __asm_copy_user_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument 167 : "=r" (to), "=r" (from), "=r" (ret) \ 168 : "0" (to), "1" (from), "2" (ret) \ 171 #define __asm_copy_from_user_1(to, from, ret) \ argument 172 __asm_copy_user_cont(to, from, ret, \ 179 #define __asm_copy_from_user_2x_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument 180 __asm_copy_user_cont(to, from, ret, \ 187 #define __asm_copy_from_user_2(to, from, ret) \ argument 188 __asm_copy_from_user_2x_cont(to, from, ret, "", "", "") 190 #define __asm_copy_from_user_3(to, from, ret) \ argument [all …]
|
/arch/x86/include/asm/ |
D | uaccess_32.h | 14 (void __user *to, const void *from, unsigned long n); 16 (void *to, const void __user *from, unsigned long n); 18 (void *to, const void __user *from, unsigned long n); 20 (void *to, const void __user *from, unsigned long n); 22 (void *to, const void __user *from, unsigned long n); 44 __copy_to_user_inatomic(void __user *to, const void *from, unsigned long n) in __copy_to_user_inatomic() argument 51 __put_user_size(*(u8 *)from, (u8 __user *)to, in __copy_to_user_inatomic() 55 __put_user_size(*(u16 *)from, (u16 __user *)to, in __copy_to_user_inatomic() 59 __put_user_size(*(u32 *)from, (u32 __user *)to, in __copy_to_user_inatomic() 64 return __copy_to_user_ll(to, from, n); in __copy_to_user_inatomic() [all …]
|
D | string_32.h | 32 static __always_inline void *__memcpy(void *to, const void *from, size_t n) in __memcpy() argument 42 : "0" (n / 4), "g" (n), "1" ((long)to), "2" ((long)from) in __memcpy() 51 static __always_inline void *__constant_memcpy(void *to, const void *from, in __constant_memcpy() argument 60 *(char *)to = *(char *)from; in __constant_memcpy() 63 *(short *)to = *(short *)from; in __constant_memcpy() 66 *(int *)to = *(int *)from; in __constant_memcpy() 69 *(short *)to = *(short *)from; in __constant_memcpy() 70 *((char *)to + 2) = *((char *)from + 2); in __constant_memcpy() 73 *(int *)to = *(int *)from; in __constant_memcpy() 74 *((char *)to + 4) = *((char *)from + 4); in __constant_memcpy() [all …]
|
/arch/metag/lib/ |
D | usercopy.c | 27 #define __asm_copy_user_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument 40 : "=r" (to), "=r" (from), "=r" (ret) \ 41 : "0" (to), "1" (from), "2" (ret) \ 45 #define __asm_copy_to_user_1(to, from, ret) \ argument 46 __asm_copy_user_cont(to, from, ret, \ 53 #define __asm_copy_to_user_2x_cont(to, from, ret, COPY, FIXUP, TENTRY) \ argument 54 __asm_copy_user_cont(to, from, ret, \ 61 #define __asm_copy_to_user_2(to, from, ret) \ argument 62 __asm_copy_to_user_2x_cont(to, from, ret, "", "", "") 64 #define __asm_copy_to_user_3(to, from, ret) \ argument [all …]
|
/arch/cris/include/asm/ |
D | uaccess.h | 175 extern unsigned long __copy_user(void __user *to, const void *from, unsigned long n); 176 extern unsigned long __copy_user_zeroing(void *to, const void __user *from, unsigned long n); 180 __generic_copy_to_user(void __user *to, const void *from, unsigned long n) in __generic_copy_to_user() argument 183 return __copy_user(to,from,n); in __generic_copy_to_user() 188 __generic_copy_from_user(void *to, const void __user *from, unsigned long n) in __generic_copy_from_user() argument 190 if (access_ok(VERIFY_READ, from, n)) in __generic_copy_from_user() 191 return __copy_user_zeroing(to,from,n); in __generic_copy_from_user() 223 __constant_copy_from_user(void *to, const void __user *from, unsigned long n) in __constant_copy_from_user() argument 229 __asm_copy_from_user_1(to, from, ret); in __constant_copy_from_user() 231 __asm_copy_from_user_2(to, from, ret); in __constant_copy_from_user() [all …]
|
/arch/x86/lib/ |
D | mmx_32.c | 28 void *_mmx_memcpy(void *to, const void *from, size_t len) in _mmx_memcpy() argument 34 return __memcpy(to, from, len); in _mmx_memcpy() 53 : : "r" (from)); in _mmx_memcpy() 79 : : "r" (from), "r" (to) : "memory"); in _mmx_memcpy() 81 from += 64; in _mmx_memcpy() 103 : : "r" (from), "r" (to) : "memory"); in _mmx_memcpy() 105 from += 64; in _mmx_memcpy() 111 __memcpy(to, from, len & 63); in _mmx_memcpy() 158 static void fast_copy_page(void *to, void *from) in fast_copy_page() argument 179 _ASM_EXTABLE(1b, 3b) : : "r" (from)); in fast_copy_page() [all …]
|
D | usercopy_32.c | 101 __copy_user_intel(void __user *to, const void *from, unsigned long size) in __copy_user_intel() argument 199 : "1"(to), "2"(from), "0"(size) in __copy_user_intel() 205 __copy_user_zeroing_intel(void *to, const void __user *from, unsigned long size) in __copy_user_zeroing_intel() argument 291 : "1"(to), "2"(from), "0"(size) in __copy_user_zeroing_intel() 302 const void __user *from, unsigned long size) in __copy_user_zeroing_intel_nocache() argument 390 : "1"(to), "2"(from), "0"(size) in __copy_user_zeroing_intel_nocache() 396 const void __user *from, unsigned long size) in __copy_user_intel_nocache() argument 478 : "1"(to), "2"(from), "0"(size) in __copy_user_intel_nocache() 489 unsigned long __copy_user_zeroing_intel(void *to, const void __user *from, 491 unsigned long __copy_user_intel(void __user *to, const void *from, [all …]
|
/arch/sh/kernel/ |
D | io.c | 19 void memcpy_fromio(void *to, const volatile void __iomem *from, unsigned long count) in memcpy_fromio() argument 27 (((u32)to & 0x1f) == 0) && (((u32)from & 0x3) == 0)) { in memcpy_fromio() 55 "=&r" (tmp5), "=&r" (tmp6), "=&r" (from) in memcpy_fromio() 56 : "7"(from), "0" (to), "1" (count) in memcpy_fromio() 61 if ((((u32)to | (u32)from) & 0x3) == 0) { in memcpy_fromio() 63 *(u32 *)to = *(volatile u32 *)from; in memcpy_fromio() 65 from += 4; in memcpy_fromio() 70 *(u8 *)to = *(volatile u8 *)from; in memcpy_fromio() 72 from++; in memcpy_fromio() 82 void memcpy_toio(volatile void __iomem *to, const void *from, unsigned long count) in memcpy_toio() argument [all …]
|
/arch/m68k/include/asm/ |
D | uaccess_mm.h | 202 unsigned long __generic_copy_from_user(void *to, const void __user *from, unsigned long n); 203 unsigned long __generic_copy_to_user(void __user *to, const void *from, unsigned long n); 205 #define __constant_copy_from_user_asm(res, to, from, tmp, n, s1, s2, s3)\ argument 235 : "+d" (res), "+&a" (to), "+a" (from), "=&d" (tmp) \ 239 __constant_copy_from_user(void *to, const void __user *from, unsigned long n) in __constant_copy_from_user() argument 245 __get_user_asm(res, *(u8 *)to, (u8 __user *)from, u8, b, d, 1); in __constant_copy_from_user() 248 __get_user_asm(res, *(u16 *)to, (u16 __user *)from, u16, w, d, 2); in __constant_copy_from_user() 251 __constant_copy_from_user_asm(res, to, from, tmp, 3, w, b,); in __constant_copy_from_user() 254 __get_user_asm(res, *(u32 *)to, (u32 __user *)from, u32, l, r, 4); in __constant_copy_from_user() 257 __constant_copy_from_user_asm(res, to, from, tmp, 5, l, b,); in __constant_copy_from_user() [all …]
|
/arch/m68k/lib/ |
D | memcpy.c | 10 void *memcpy(void *to, const void *from, size_t n) in memcpy() argument 19 const char *cfrom = from; in memcpy() 22 from = cfrom; in memcpy() 26 if ((long)from & 1) { in memcpy() 28 const char *cfrom = from; in memcpy() 36 const short *sfrom = from; in memcpy() 39 from = sfrom; in memcpy() 45 const long *lfrom = from; in memcpy() 73 from = lfrom; in memcpy() 77 const short *sfrom = from; in memcpy() [all …]
|
/arch/c6x/include/asm/ |
D | uaccess.h | 26 const void __user *from, unsigned long n) in __copy_from_user() argument 34 *(u8 *)to = *(u8 __force *)from; in __copy_from_user() 41 : "A"(to), "a"(from) in __copy_from_user() 49 : "a"(to), "a"(from) in __copy_from_user() 57 memcpy(to, (const void __force *)from, n); in __copy_from_user() 62 const void *from, unsigned long n) in __copy_to_user() argument 70 *(u8 __force *)to = *(u8 *)from; in __copy_to_user() 77 : "a"(to), "a"(from) in __copy_to_user() 85 : "a"(to), "a"(from) in __copy_to_user() 93 memcpy((void __force *)to, from, n); in __copy_to_user()
|
/arch/mn10300/include/asm/ |
D | uaccess.h | 295 #define __copy_user(to, from, size) \ argument 299 const void *__from = from; \ 323 #define __copy_user_zeroing(to, from, size) \ argument 327 const void *__from = from; \ 363 unsigned long __generic_copy_from_user_nocheck(void *to, const void *from, in __generic_copy_from_user_nocheck() argument 366 __copy_user_zeroing(to, from, n); in __generic_copy_from_user_nocheck() 371 unsigned long __generic_copy_to_user_nocheck(void *to, const void *from, in __generic_copy_to_user_nocheck() argument 374 __copy_user(to, from, n); in __generic_copy_to_user_nocheck() 382 #define __constant_copy_user(to, from, size) \ 400 : "d"(size), "d"(to), "d"(from) \ [all …]
|
/arch/tile/kernel/ |
D | compat_signal.c | 51 int copy_siginfo_to_user32(struct compat_siginfo __user *to, siginfo_t *from) in copy_siginfo_to_user32() argument 63 err = __put_user(from->si_signo, &to->si_signo); in copy_siginfo_to_user32() 64 err |= __put_user(from->si_errno, &to->si_errno); in copy_siginfo_to_user32() 65 err |= __put_user((short)from->si_code, &to->si_code); in copy_siginfo_to_user32() 67 if (from->si_code < 0) { in copy_siginfo_to_user32() 68 err |= __put_user(from->si_pid, &to->si_pid); in copy_siginfo_to_user32() 69 err |= __put_user(from->si_uid, &to->si_uid); in copy_siginfo_to_user32() 70 err |= __put_user(ptr_to_compat(from->si_ptr), &to->si_ptr); in copy_siginfo_to_user32() 76 err |= __put_user(from->_sifields._pad[0], in copy_siginfo_to_user32() 78 switch (from->si_code >> 16) { in copy_siginfo_to_user32() [all …]
|
/arch/powerpc/lib/ |
D | usercopy_64.c | 12 unsigned long copy_from_user(void *to, const void __user *from, unsigned long n) in copy_from_user() argument 14 if (likely(access_ok(VERIFY_READ, from, n))) in copy_from_user() 15 n = __copy_from_user(to, from, n); in copy_from_user() 21 unsigned long copy_to_user(void __user *to, const void *from, unsigned long n) in copy_to_user() argument 24 n = __copy_to_user(to, from, n); in copy_to_user() 28 unsigned long copy_in_user(void __user *to, const void __user *from, in copy_in_user() argument 32 if (likely(access_ok(VERIFY_READ, from, n) && in copy_in_user() 34 n =__copy_tofrom_user(to, from, n); in copy_in_user()
|
/arch/score/include/asm/ |
D | uaccess.h | 291 extern int __copy_tofrom_user(void *to, const void *from, unsigned long len); 294 copy_from_user(void *to, const void *from, unsigned long len) in copy_from_user() argument 298 if (access_ok(VERIFY_READ, from, len)) in copy_from_user() 299 return __copy_tofrom_user(to, from, len); in copy_from_user() 301 if ((unsigned long)from < TASK_SIZE) { in copy_from_user() 302 over = (unsigned long)from + len - TASK_SIZE; in copy_from_user() 303 return __copy_tofrom_user(to, from, len - over) + over; in copy_from_user() 309 copy_to_user(void *to, const void *from, unsigned long len) in copy_to_user() argument 314 return __copy_tofrom_user(to, from, len); in copy_to_user() 318 return __copy_tofrom_user(to, from, len - over) + over; in copy_to_user() [all …]
|
/arch/parisc/kernel/ |
D | signal32.c | 279 copy_siginfo_from_user32 (siginfo_t *to, compat_siginfo_t __user *from) in copy_siginfo_from_user32() argument 284 if (!access_ok(VERIFY_READ, from, sizeof(compat_siginfo_t))) in copy_siginfo_from_user32() 287 err = __get_user(to->si_signo, &from->si_signo); in copy_siginfo_from_user32() 288 err |= __get_user(to->si_errno, &from->si_errno); in copy_siginfo_from_user32() 289 err |= __get_user(to->si_code, &from->si_code); in copy_siginfo_from_user32() 292 err |= __copy_from_user(&to->_sifields._pad, &from->_sifields._pad, SI_PAD_SIZE); in copy_siginfo_from_user32() 296 err |= __get_user(to->si_utime, &from->si_utime); in copy_siginfo_from_user32() 297 err |= __get_user(to->si_stime, &from->si_stime); in copy_siginfo_from_user32() 298 err |= __get_user(to->si_status, &from->si_status); in copy_siginfo_from_user32() 300 err |= __get_user(to->si_pid, &from->si_pid); in copy_siginfo_from_user32() [all …]
|
/arch/h8300/include/asm/ |
D | uaccess.h | 112 #define copy_from_user(to, from, n) (memcpy(to, from, n), 0) argument 113 #define copy_to_user(to, from, n) (memcpy(to, from, n), 0) argument 115 #define __copy_from_user(to, from, n) copy_from_user(to, from, n) argument 116 #define __copy_to_user(to, from, n) copy_to_user(to, from, n) argument 120 #define copy_to_user_ret(to,from,n,retval) ({ if (copy_to_user(to,from,n)) return retval; }) argument 122 #define copy_from_user_ret(to,from,n,retval) ({ if (copy_from_user(to,from,n)) return retval; }) argument
|
/arch/arm/mm/ |
D | copypage-xscale.c | 40 mc_copy_user_page(void *from, void *to) in mc_copy_user_page() argument 84 : "r" (from), "r" (to), "I" (PAGE_SIZE / 64 - 1)); in mc_copy_user_page() 87 void xscale_mc_copy_user_highpage(struct page *to, struct page *from, in xscale_mc_copy_user_highpage() argument 92 if (!test_and_set_bit(PG_dcache_clean, &from->flags)) in xscale_mc_copy_user_highpage() 93 __flush_dcache_page(page_mapping(from), from); in xscale_mc_copy_user_highpage() 97 set_top_pte(COPYPAGE_MINICACHE, mk_pte(from, minicache_pgprot)); in xscale_mc_copy_user_highpage()
|
D | copypage-v4mc.c | 44 mc_copy_user_page(void *from, void *to) in mc_copy_user_page() argument 64 : "r" (from), "r" (to), "I" (PAGE_SIZE / 64)); in mc_copy_user_page() 67 void v4_mc_copy_user_highpage(struct page *to, struct page *from, in v4_mc_copy_user_highpage() argument 72 if (!test_and_set_bit(PG_dcache_clean, &from->flags)) in v4_mc_copy_user_highpage() 73 __flush_dcache_page(page_mapping(from), from); in v4_mc_copy_user_highpage() 77 set_top_pte(COPYPAGE_MINICACHE, mk_pte(from, minicache_pgprot)); in v4_mc_copy_user_highpage()
|
/arch/s390/kvm/ |
D | gaccess.h | 68 unsigned long from, unsigned long len, in __copy_guest() argument 75 uptr = to_guest ? (void __user *)to : (void __user *)from; in __copy_guest() 82 rc = copy_to_user((void __user *) uptr, (void *)from, _len); in __copy_guest() 88 from += _len; in __copy_guest() 94 #define copy_to_guest(vcpu, to, from, size) \ argument 95 __copy_guest(vcpu, to, (unsigned long)from, size, 1, 1) 96 #define copy_from_guest(vcpu, to, from, size) \ argument 97 __copy_guest(vcpu, (unsigned long)to, from, size, 0, 1) 98 #define copy_to_guest_absolute(vcpu, to, from, size) \ argument 99 __copy_guest(vcpu, to, (unsigned long)from, size, 1, 0) [all …]
|
/arch/ia64/include/asm/ |
D | siginfo.h | 14 copy_siginfo (siginfo_t *to, siginfo_t *from) in copy_siginfo() argument 16 if (from->si_code < 0) in copy_siginfo() 17 memcpy(to, from, sizeof(siginfo_t)); in copy_siginfo() 20 memcpy(to, from, 4*sizeof(int) + sizeof(from->_sifields._sigchld)); in copy_siginfo()
|
/arch/mips/include/asm/ |
D | siginfo.h | 20 static inline void copy_siginfo(struct siginfo *to, struct siginfo *from) in copy_siginfo() argument 22 if (from->si_code < 0) in copy_siginfo() 23 memcpy(to, from, sizeof(*to)); in copy_siginfo() 26 memcpy(to, from, 3*sizeof(int) + sizeof(from->_sifields._sigchld)); in copy_siginfo()
|
/arch/powerpc/include/asm/ |
D | uaccess.h | 319 const void __user *from, unsigned long size); 324 const void __user *from, unsigned long n) in copy_from_user() argument 328 if (access_ok(VERIFY_READ, from, n)) in copy_from_user() 329 return __copy_tofrom_user((__force void __user *)to, from, n); in copy_from_user() 330 if ((unsigned long)from < TASK_SIZE) { in copy_from_user() 331 over = (unsigned long)from + n - TASK_SIZE; in copy_from_user() 332 return __copy_tofrom_user((__force void __user *)to, from, in copy_from_user() 339 const void *from, unsigned long n) in copy_to_user() argument 344 return __copy_tofrom_user(to, (__force void __user *)from, n); in copy_to_user() 347 return __copy_tofrom_user(to, (__force void __user *)from, in copy_to_user() [all …]
|
/arch/arc/include/asm/ |
D | uaccess.h | 166 __arc_copy_from_user(void *to, const void __user *from, unsigned long n) in __arc_copy_from_user() argument 177 if (((unsigned long)to & 0x3) || ((unsigned long)from & 0x3)) { in __arc_copy_from_user() 203 "=&r" (tmp), "+r" (to), "+r" (from) in __arc_copy_from_user() 244 : "+r" (res), "+r"(to), "+r"(from), in __arc_copy_from_user() 268 : "+r" (res), "+r"(to), "+r"(from), in __arc_copy_from_user() 289 : "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1) in __arc_copy_from_user() 309 : "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1) in __arc_copy_from_user() 327 : "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1) in __arc_copy_from_user() 383 : "=r" (res), "+r"(to), "+r"(from), "+r"(n), "=r"(val), in __arc_copy_from_user() 392 extern unsigned long slowpath_copy_to_user(void __user *to, const void *from, [all …]
|