Home
last modified time | relevance | path

Searched refs:__copy_to_user (Results 1 – 25 of 43) sorted by relevance

12

/linux/arch/ia64/kernel/
A Dsignal.c36 # define PUT_SIGSET(k,u) __copy_to_user((u)->sig, (k)->sig, sizeof(sigset_t))
182 err = __copy_to_user(&sc->sc_fr[32], current->thread.fph, 96*16); in setup_sigcontext()
199 err |= __copy_to_user(&sc->sc_gr[1], &scr->pt.r1, 8); /* r1 */ in setup_sigcontext()
200 err |= __copy_to_user(&sc->sc_gr[8], &scr->pt.r8, 4*8); /* r8-r11 */ in setup_sigcontext()
201 err |= __copy_to_user(&sc->sc_gr[12], &scr->pt.r12, 2*8); /* r12-r13 */ in setup_sigcontext()
202 err |= __copy_to_user(&sc->sc_gr[15], &scr->pt.r15, 8); /* r15 */ in setup_sigcontext()
210 err |= __copy_to_user(&sc->sc_ar25, &scr->pt.ar_csd, 2*8); /* ar.csd & ar.ssd */ in setup_sigcontext()
211 err |= __copy_to_user(&sc->sc_gr[2], &scr->pt.r2, 2*8); /* r2-r3 */ in setup_sigcontext()
212 err |= __copy_to_user(&sc->sc_gr[16], &scr->pt.r16, 16*8); /* r16-r31 */ in setup_sigcontext()
A Dptrace.c881 retval |= __copy_to_user(&ppr->gr[1], &pt->r1, sizeof(long)); in ptrace_getregs()
882 retval |= __copy_to_user(&ppr->gr[2], &pt->r2, sizeof(long) *2); in ptrace_getregs()
894 retval |= __copy_to_user(&ppr->gr[8], &pt->r8, sizeof(long) * 4); in ptrace_getregs()
898 retval |= __copy_to_user(&ppr->gr[12], &pt->r12, sizeof(long) * 2); in ptrace_getregs()
899 retval |= __copy_to_user(&ppr->gr[14], &pt->r14, sizeof(long)); in ptrace_getregs()
900 retval |= __copy_to_user(&ppr->gr[15], &pt->r15, sizeof(long)); in ptrace_getregs()
928 retval |= __copy_to_user(&ppr->fr[i], &fpval, sizeof (fpval)); in ptrace_getregs()
933 retval |= __copy_to_user(&ppr->fr[6], &pt->f6, in ptrace_getregs()
938 retval |= __copy_to_user(&ppr->fr[12], &sw->f12, in ptrace_getregs()
946 retval |= __copy_to_user(&ppr->fr[i], &fpval, sizeof (fpval)); in ptrace_getregs()
[all …]
/linux/arch/sparc/kernel/
A Dsignal_32.c254 err = __copy_to_user(&sf->info.si_regs, regs, sizeof(struct pt_regs)); in setup_frame()
276 err |= __copy_to_user(sf->extramask, &oldset->sig[1], in setup_frame()
279 err |= __copy_to_user(sf, (char *) regs->u_regs[UREG_FP], in setup_frame()
285 err |= __copy_to_user(sf, rp, sizeof(struct reg_window32)); in setup_frame()
351 err |= __copy_to_user(&sf->regs.u_regs, regs->u_regs, sizeof(regs->u_regs)); in setup_rt_frame()
370 err |= __copy_to_user(&sf->mask, &oldset->sig[0], sizeof(sigset_t)); in setup_rt_frame()
376 err |= __copy_to_user(sf, (char *) regs->u_regs[UREG_FP], in setup_rt_frame()
382 err |= __copy_to_user(sf, rp, sizeof(struct reg_window32)); in setup_rt_frame()
A Dsigutil_32.c35 err |= __copy_to_user(&fpu->si_float_regs[0], in save_fpu_state()
41 err |= __copy_to_user(&fpu->si_fpqueue[0], in save_fpu_state()
/linux/arch/openrisc/kernel/
A Dsignal.c112 err |= __copy_to_user(sc->regs.gpr, regs, 32 * sizeof(unsigned long)); in setup_sigcontext()
113 err |= __copy_to_user(&sc->regs.pc, &regs->pc, sizeof(unsigned long)); in setup_sigcontext()
114 err |= __copy_to_user(&sc->regs.sr, &regs->sr, sizeof(unsigned long)); in setup_sigcontext()
171 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
/linux/arch/powerpc/kernel/
A Dsignal.c39 return __copy_to_user(to, buf, ELF_NFPREG * sizeof(double)); in copy_fpr_to_user()
66 return __copy_to_user(to, buf, ELF_NVSRHALFREG * sizeof(double)); in copy_vsx_to_user()
93 return __copy_to_user(to, buf, ELF_NFPREG * sizeof(double)); in copy_ckfpr_to_user()
120 return __copy_to_user(to, buf, ELF_NVSRHALFREG * sizeof(double)); in copy_ckvsx_to_user()
A Dsignal_64.c241 err |= __copy_to_user(v_regs, &tsk->thread.ckvr_state, in setup_tm_sigcontexts()
247 err |= __copy_to_user(tm_v_regs, in setup_tm_sigcontexts()
251 err |= __copy_to_user(tm_v_regs, in setup_tm_sigcontexts()
311 err |= __copy_to_user(&tm_sc->gp_regs, regs, GP_REGS_SIZE); in setup_tm_sigcontexts()
312 err |= __copy_to_user(&sc->gp_regs, in setup_tm_sigcontexts()
A Dsignal.h145 return __copy_to_user(to, task->thread.fp_state.fpr, in copy_fpr_to_user()
163 return __copy_to_user(to, task->thread.ckfp_state.fpr, in copy_ckfpr_to_user()
/linux/arch/xtensa/kernel/
A Dsignal.c158 err |= __copy_to_user (sc->sc_a, regs->areg, 16 * 4); in setup_sigcontext()
167 err |= __copy_to_user(&frame->xtregs.cp, &ti->xtregs_cp, in setup_sigcontext()
170 err |= __copy_to_user(&frame->xtregs.opt, &regs->xtregs_opt, in setup_sigcontext()
172 err |= __copy_to_user(&frame->xtregs.user, &ti->xtregs_user, in setup_sigcontext()
374 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_frame()
/linux/arch/csky/kernel/
A Dsignal.c34 return __copy_to_user(&sc->sc_user_fp, &user_fp, sizeof(user_fp)); in save_fpu_state()
107 err |= __copy_to_user(&sc->sc_pt_regs, regs, sizeof(struct pt_regs)); in setup_sigcontext()
153 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
/linux/arch/s390/kernel/
A Dsignal.c135 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs))) in save_sigregs()
189 if (__copy_to_user(&sregs_ext->vxrs_low, vxrs, in save_sigregs_ext()
191 __copy_to_user(&sregs_ext->vxrs_high, in save_sigregs_ext()
317 if (__copy_to_user(&frame->sc, &sc, sizeof(frame->sc))) in setup_frame()
412 __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)) || in setup_rt_frame()
A Dcompat_signal.c82 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs32))) in save_sigregs32()
135 if (__copy_to_user(&sregs_ext->gprs_high, &gprs_high, in save_sigregs_ext32()
143 if (__copy_to_user(&sregs_ext->vxrs_low, vxrs, in save_sigregs_ext32()
145 __copy_to_user(&sregs_ext->vxrs_high, in save_sigregs_ext32()
/linux/arch/parisc/kernel/
A Dsignal.c211 err |= __copy_to_user(sc->sc_iaoq, regs->iaoq, sizeof(regs->iaoq)); in setup_sigcontext()
212 err |= __copy_to_user(sc->sc_iasq, regs->iasq, sizeof(regs->iasq)); in setup_sigcontext()
218 err |= __copy_to_user(sc->sc_gr, regs->gr, sizeof(regs->gr)); in setup_sigcontext()
219 err |= __copy_to_user(sc->sc_fr, regs->fr, sizeof(regs->fr)); in setup_sigcontext()
281 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
/linux/arch/riscv/kernel/
A Dsignal.c68 err = __copy_to_user(state, &current->thread.fstate, sizeof(*state)); in save_fp_state()
144 err = __copy_to_user(&sc->sc_regs, regs, sizeof(sc->sc_regs)); in setup_sigcontext()
191 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
/linux/arch/arc/kernel/
A Dsignal.c77 err = __copy_to_user(&mctx->v2abi, &v2abi, sizeof(v2abi)); in save_arcv2_regs()
130 err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), &uregs.scratch, in stash_usr_regs()
136 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(sigset_t)); in stash_usr_regs()
/linux/arch/arm/kernel/
A Dsignal.c56 err = __copy_to_user(frame, kframe, sizeof(*kframe)); in preserve_iwmmxt_context()
114 return __copy_to_user(frame, &kframe, sizeof(kframe)); in preserve_vfp_context()
281 err |= __copy_to_user(&sf->uc.uc_mcontext, &context, sizeof(context)); in setup_sigframe()
283 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(*set)); in setup_sigframe()
/linux/include/linux/
A Duaccess.h141 __copy_to_user(void __user *to, const void *from, unsigned long n) in __copy_to_user() function
389 #define unsafe_copy_to_user(d,s,l,e) unsafe_op_wrap(__copy_to_user(d,s,l),e)
/linux/arch/sh/kernel/
A Dsignal_32.c109 return __copy_to_user(&sc->sc_fpregs[0], &tsk->thread.xstate->hardfpu, in save_sigcontext_fpu()
280 err |= __copy_to_user(frame->extramask, &set->sig[1], in setup_frame()
351 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
/linux/arch/arm64/kernel/
A Dsignal.c178 err = __copy_to_user(ctx->vregs, fpsimd->vregs, sizeof(fpsimd->vregs)); in preserve_fpsimd_context()
243 err |= __copy_to_user(&ctx->__reserved, reserved, sizeof(reserved)); in preserve_sve_context()
251 err |= __copy_to_user((char __user *)ctx + SVE_SIG_REGS_OFFSET, in preserve_sve_context()
633 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(*set)); in setup_sigframe()
/linux/arch/mips/include/asm/
A Dtermios.h75 if (__copy_to_user(termio->c_cc, termios->c_cc, NCC)) in kernel_termios_to_user_termio()
/linux/arch/x86/kernel/fpu/
A Dsignal.c83 if (__copy_to_user(buf, &env, sizeof(env)) || in save_fsave_header()
127 err = __copy_to_user(&x->i387.sw_reserved, &sw_bytes, sizeof(sw_bytes)); in save_xstate_epilog()
/linux/arch/x86/um/
A Dsignal.c98 if (__copy_to_user(buf, env, 7 * sizeof(unsigned long))) in convert_fxsr_to_user()
381 err |= __copy_to_user(&frame->extramask, &mask->sig[1], in setup_signal_stack_sc()
524 err |= __copy_to_user(&frame->uc.uc_sigmask, set, in setup_signal_stack_si()
/linux/lib/
A Dtest_kasan_module.c50 unused = __copy_to_user(usermem, kmem, size + 1); in copy_user_test()
/linux/drivers/gpu/drm/i915/
A Di915_query.c469 if (__copy_to_user(info_ptr, &info, sizeof(info))) in query_memregion_info()
476 if (__copy_to_user(query_ptr, &query, sizeof(query))) in query_memregion_info()
/linux/arch/nds32/kernel/
A Dsignal.c72 ret = __copy_to_user(&sc->fpu, &tsk->thread.fpu, in setup_sigcontext_fpu()
225 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(*set)); in setup_sigframe()

Completed in 36 milliseconds

12