Home
last modified time | relevance | path

Searched refs:__copy_from_user (Results 1 – 25 of 99) sorted by relevance

1234

/arch/um/include/asm/
Duaccess.h25 extern long __copy_from_user(void *to, const void __user *from, unsigned long n);
36 #define __copy_from_user __copy_from_user macro
40 #define __copy_from_user_inatomic __copy_from_user
/arch/unicore32/include/asm/
Duaccess.h20 #define __copy_from_user __copy_from_user macro
32 __copy_from_user(void *to, const void __user *from, unsigned long n);
/arch/c6x/include/asm/
Duaccess.h25 static inline __must_check long __copy_from_user(void *to, in __copy_from_user() function
98 #define __copy_from_user __copy_from_user macro
/arch/nios2/include/asm/
Duaccess.h98 extern long __copy_from_user(void *to, const void __user *from,
107 res = __copy_from_user(to, from, n); in copy_from_user()
125 #define __copy_from_user_inatomic __copy_from_user
145 if (__copy_from_user(&(val), ptr, size)) { \
/arch/s390/include/asm/
Duaccess.h113 unsigned long __must_check __copy_from_user(void *to, const void __user *from,
135 #define __copy_from_user_inatomic __copy_from_user
173 size = __copy_from_user(x, ptr, size); in __get_user_fn()
317 return __copy_from_user(to, from, n); in copy_from_user()
/arch/openrisc/kernel/
Dsignal.c56 err |= __copy_from_user(regs, sc->regs.gpr, 32 * sizeof(unsigned long)); in restore_sigcontext()
57 err |= __copy_from_user(&regs->pc, &sc->regs.pc, sizeof(unsigned long)); in restore_sigcontext()
58 err |= __copy_from_user(&regs->sr, &sc->regs.sr, sizeof(unsigned long)); in restore_sigcontext()
88 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in _sys_rt_sigreturn()
/arch/parisc/kernel/
Dsignal.c75 err |= __copy_from_user(regs->gr, sc->sc_gr, sizeof(regs->gr)); in restore_sigcontext()
76 err |= __copy_from_user(regs->fr, sc->sc_fr, sizeof(regs->fr)); in restore_sigcontext()
77 err |= __copy_from_user(regs->iaoq, sc->sc_iaoq, sizeof(regs->iaoq)); in restore_sigcontext()
78 err |= __copy_from_user(regs->iasq, sc->sc_iasq, sizeof(regs->iasq)); in restore_sigcontext()
115 if (__copy_from_user(&compat_set, &compat_frame->uc.uc_sigmask, sizeof(compat_set))) in sys_rt_sigreturn()
121 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in sys_rt_sigreturn()
331 err = __copy_from_user(&fdesc, ufdesc, sizeof(fdesc)); in setup_rt_frame()
344 err = __copy_from_user(&fdesc, ufdesc, sizeof(fdesc)); in setup_rt_frame()
/arch/ia64/kernel/
Dsignal.c36 # define GET_SIGSET(k,u) __copy_from_user((k)->sig, (u)->sig, sizeof(sigset_t))
64 err |= __copy_from_user(&scr->pt.r1, &sc->sc_gr[1], 8); /* r1 */ in restore_sigcontext()
65 err |= __copy_from_user(&scr->pt.r8, &sc->sc_gr[8], 4*8); /* r8-r11 */ in restore_sigcontext()
66 err |= __copy_from_user(&scr->pt.r12, &sc->sc_gr[12], 2*8); /* r12-r13 */ in restore_sigcontext()
67 err |= __copy_from_user(&scr->pt.r15, &sc->sc_gr[15], 8); /* r15 */ in restore_sigcontext()
84 err |= __copy_from_user(&scr->pt.ar_csd, &sc->sc_ar25, 2*8); /* ar.csd & ar.ssd */ in restore_sigcontext()
85 err |= __copy_from_user(&scr->pt.r2, &sc->sc_gr[2], 2*8); /* r2-r3 */ in restore_sigcontext()
86 err |= __copy_from_user(&scr->pt.r16, &sc->sc_gr[16], 16*8); /* r16-r31 */ in restore_sigcontext()
92 err |= __copy_from_user(current->thread.fph, &sc->sc_fr[32], 96*16); in restore_sigcontext()
/arch/xtensa/kernel/
Dptrace.c115 if (wb != 0 && __copy_from_user(regs->areg + XCHAL_NUM_AREGS - wb * 4, in ptrace_setregs()
119 if (__copy_from_user(regs->areg, gregset->a + wb * 4, in ptrace_setregs()
166 ret |= __copy_from_user(&ti->xtregs_cp, &xtregs->cp0, in ptrace_setxregs()
169 ret |= __copy_from_user(&regs->xtregs_opt, &xtregs->opt, in ptrace_setxregs()
171 ret |= __copy_from_user(&ti->xtregs_user, &xtregs->user, in ptrace_setxregs()
Dsignal.c210 err |= __copy_from_user(regs->areg, sc->sc_a, 16 * 4); in restore_sigcontext()
224 err |= __copy_from_user(&ti->xtregs_cp, &frame->xtregs.cp, in restore_sigcontext()
227 err |= __copy_from_user(&ti->xtregs_user, &frame->xtregs.user, in restore_sigcontext()
229 err |= __copy_from_user(&regs->xtregs_opt, &frame->xtregs.opt, in restore_sigcontext()
258 if (__copy_from_user(&set, &frame->uc.uc_sigmask, sizeof(set))) in xtensa_rt_sigreturn()
/arch/parisc/include/asm/
Duaccess.h230 unsigned long __copy_from_user(void *dst, const void __user *src, unsigned long len);
234 #define __copy_from_user_inatomic __copy_from_user
252 ret = __copy_from_user(to, from, n); in copy_from_user()
/arch/c6x/lib/
Dchecksum.c21 missing = __copy_from_user(dst, src, len); in csum_partial_copy_from_user()
/arch/unicore32/lib/
Dcopy_from_user.S90 ENTRY(__copy_from_user)
94 ENDPROC(__copy_from_user)
/arch/nios2/mm/
Duaccess.c68 EXPORT_SYMBOL(__copy_from_user);
/arch/unicore32/kernel/
Dksyms.c49 EXPORT_SYMBOL(__copy_from_user);
/arch/m68k/include/asm/
Duaccess_no.h133 #define __copy_from_user(to, from, n) copy_from_user(to, from, n) macro
136 #define __copy_from_user_inatomic __copy_from_user
/arch/s390/kernel/
Dcompat_signal.c127 err |= __copy_from_user(&to->_sifields._pad, &from->_sifields._pad, SI_PAD_SIZE); in copy_siginfo_from_user32()
207 if (__copy_from_user(&user_sregs, &sregs->regs, sizeof(user_sregs))) in restore_sigregs32()
273 if (__copy_from_user(&gprs_high, &sregs_ext->gprs_high, in restore_sigregs_ext32()
281 if (__copy_from_user(vxrs, &sregs_ext->vxrs_low, in restore_sigregs_ext32()
283 __copy_from_user(current->thread.fpu.vxrs + __NUM_VXRS_LOW, in restore_sigregs_ext32()
300 if (__copy_from_user(&cset.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE32)) in COMPAT_SYSCALL_DEFINE0()
323 if (__copy_from_user(&cset, &frame->uc.uc_sigmask, sizeof(cset))) in COMPAT_SYSCALL_DEFINE0()
Dsignal.c143 if (__copy_from_user(&user_sregs, sregs, sizeof(user_sregs))) in restore_sigregs()
203 if (__copy_from_user(vxrs, &sregs_ext->vxrs_low, in restore_sigregs_ext()
205 __copy_from_user(current->thread.fpu.vxrs + __NUM_VXRS_LOW, in restore_sigregs_ext()
222 if (__copy_from_user(&set.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE)) in SYSCALL_DEFINE0()
244 if (__copy_from_user(&set.sig, &frame->uc.uc_sigmask, sizeof(set))) in SYSCALL_DEFINE0()
/arch/powerpc/kernel/
Dsignal_32.c195 if (__copy_from_user(regs, &sr->mc_gregs, in restore_general_regs()
199 if (__copy_from_user(&regs->orig_gpr3, &sr->mc_gregs[PT_ORIG_R3], in restore_general_regs()
283 if (__copy_from_user(buf, from, ELF_NFPREG * sizeof(double))) in copy_fpr_from_user()
310 if (__copy_from_user(buf, from, ELF_NVSRHALFREG * sizeof(double))) in copy_vsx_from_user()
337 if (__copy_from_user(buf, from, ELF_NFPREG * sizeof(double))) in copy_transact_fpr_from_user()
364 if (__copy_from_user(buf, from, ELF_NVSRHALFREG * sizeof(double))) in copy_transact_vsx_from_user()
382 return __copy_from_user(task->thread.fp_state.fpr, from, in copy_fpr_from_user()
397 return __copy_from_user(task->thread.transact_fp.fpr, from, in copy_transact_fpr_from_user()
707 if (__copy_from_user(&current->thread.vr_state, &sr->mc_vregs, in restore_user_regs()
752 if (__copy_from_user(current->thread.evr, &sr->mc_vregs, in restore_user_regs()
[all …]
Dsignal_64.c330 err |= __copy_from_user(regs->gpr, sc->gp_regs, sizeof(regs->gpr)); in restore_sigcontext()
376 err |= __copy_from_user(&current->thread.vr_state, v_regs, in restore_sigcontext()
424 err |= __copy_from_user(regs->gpr, tm_sc->gp_regs, sizeof(regs->gpr)); in restore_tm_sigcontexts()
425 err |= __copy_from_user(&current->thread.ckpt_regs, sc->gp_regs, in restore_tm_sigcontexts()
501 err |= __copy_from_user(&current->thread.vr_state, v_regs, in restore_tm_sigcontexts()
503 err |= __copy_from_user(&current->thread.transact_vr, tm_v_regs, in restore_tm_sigcontexts()
659 if (__copy_from_user(&set, &new_ctx->uc_sigmask, sizeof(set))) in sys_swapcontext()
691 if (__copy_from_user(&set, &uc->uc_sigmask, sizeof(set))) in sys_rt_sigreturn()
/arch/powerpc/lib/
Dusercopy_64.c15 n = __copy_from_user(to, from, n); in copy_from_user()
/arch/sparc/kernel/
Dsigutil_32.c70 err = __copy_from_user(&current->thread.float_regs[0], &fpu->si_float_regs[0], in restore_fpu_state()
75 err |= __copy_from_user(&current->thread.fpqueue[0], in restore_fpu_state()
/arch/microblaze/include/asm/
Duaccess.h367 #define __copy_from_user(to, from, n) \ macro
371 __copy_from_user((to), (from), (n))
379 res = __copy_from_user(to, from, n); in copy_from_user()
/arch/arm/kernel/
Dsignal.c50 if (__copy_from_user(kframe, frame, sizeof(*frame))) in restore_crunch_context()
82 if (__copy_from_user(kframe, frame, sizeof(*frame))) in restore_iwmmxt_context()
116 err = __copy_from_user(&frame, (char __user *) auxp, sizeof(frame)); in restore_vfp_context()
149 err = __copy_from_user(&set, &sf->uc.uc_sigmask, sizeof(set)); in restore_sigframe()
153 err |= __copy_from_user(&context, &sf->uc.uc_mcontext, sizeof(context)); in restore_sigframe()
/arch/x86/kernel/fpu/
Dsignal.c28 if (__copy_from_user(fx_sw, &buf->sw_reserved[0], sizeof(*fx_sw))) in check_for_xstate()
318 if (__copy_from_user(&fpu->state.xsave, buf_fx, state_size) || in __fpu__restore_sig()
319 __copy_from_user(&env, buf, sizeof(env)) || in __fpu__restore_sig()

1234