Home
last modified time | relevance | path

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

12

/linux/arch/openrisc/kernel/
H A Dsignal.c65 err = __copy_to_user(&sc->fpcsr, &current->thread.fpcsr, sizeof(unsigned long)); in save_fp_state()
150 err |= __copy_to_user(sc->regs.gpr, regs, 32 * sizeof(unsigned long)); in setup_sigcontext()
151 err |= __copy_to_user(&sc->regs.pc, &regs->pc, sizeof(unsigned long)); in setup_sigcontext()
152 err |= __copy_to_user(&sc->regs.sr, &regs->sr, sizeof(unsigned long)); in setup_sigcontext()
210 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
/linux/arch/sparc/kernel/
H 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()
H 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/xtensa/kernel/
H A Dsignal.c160 err |= __copy_to_user (sc->sc_a, regs->areg, 16 * 4); in setup_sigcontext()
168 err |= __copy_to_user(&frame->xtregs.cp, &ti->xtregs_cp, in setup_sigcontext()
171 err |= __copy_to_user(&frame->xtregs.opt, &regs->xtregs_opt, in setup_sigcontext()
173 err |= __copy_to_user(&frame->xtregs.user, &ti->xtregs_user, in setup_sigcontext()
387 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_frame()
/linux/arch/riscv/kernel/
H A Dsignal.c63 err = __copy_to_user(state, &current->thread.fstate, sizeof(*state)); in save_fp_state()
94 err = __copy_to_user(&state->v_state, &current->thread.vstate, in save_v_state()
99 err |= __copy_to_user(datap, current->thread.vstate.datap, riscv_v_vsize); in save_v_state()
282 err = __copy_to_user(&sc->sc_regs, regs, sizeof(sc->sc_regs)); in setup_sigcontext()
340 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
H A Dcompat_signal.c84 err = __copy_to_user(state, &current->thread.fstate, sizeof(*state)); in compat_save_fp_state()
169 err = __copy_to_user(&sc->sc_regs, &cregs, sizeof(sc->sc_regs)); in compat_setup_sigcontext()
216 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in compat_setup_rt_frame()
/linux/arch/powerpc/kernel/
H A Dsignal.c36 return __copy_to_user(to, buf, ELF_NFPREG * sizeof(double)); in copy_fpr_to_user()
63 return __copy_to_user(to, buf, ELF_NVSRHALFREG * sizeof(double)); in copy_vsx_to_user()
90 return __copy_to_user(to, buf, ELF_NFPREG * sizeof(double)); in copy_ckfpr_to_user()
117 return __copy_to_user(to, buf, ELF_NVSRHALFREG * sizeof(double)); in copy_ckvsx_to_user()
H A Dsignal_64.c246 err |= __copy_to_user(v_regs, &tsk->thread.ckvr_state, in setup_tm_sigcontexts()
252 err |= __copy_to_user(tm_v_regs, in setup_tm_sigcontexts()
256 err |= __copy_to_user(tm_v_regs, in setup_tm_sigcontexts()
316 err |= __copy_to_user(&tm_sc->gp_regs, regs, GP_REGS_SIZE); in setup_tm_sigcontexts()
317 err |= __copy_to_user(&sc->gp_regs, in setup_tm_sigcontexts()
H A Dsignal.h142 return __copy_to_user(to, task->thread.fp_state.fpr, in copy_fpr_to_user()
160 return __copy_to_user(to, task->thread.ckfp_state.fpr, in copy_ckfpr_to_user()
/linux/arch/csky/kernel/
H 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/
H A Dsignal.c135 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs))) in save_sigregs()
185 if (__copy_to_user(&sregs_ext->vxrs_low, vxrs, in save_sigregs_ext()
187 __copy_to_user(&sregs_ext->vxrs_high, in save_sigregs_ext()
313 if (__copy_to_user(&frame->sc, &sc, sizeof(frame->sc))) in setup_frame()
408 __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)) || in setup_rt_frame()
H A Dcompat_signal.c83 if (__copy_to_user(sregs, &user_sregs, sizeof(_sigregs32))) in save_sigregs32()
132 if (__copy_to_user(&sregs_ext->gprs_high, &gprs_high, in save_sigregs_ext32()
140 if (__copy_to_user(&sregs_ext->vxrs_low, vxrs, in save_sigregs_ext32()
142 __copy_to_user(&sregs_ext->vxrs_high, in save_sigregs_ext32()
/linux/arch/parisc/kernel/
H A Dsignal.c197 err |= __copy_to_user(sc->sc_iaoq, regs->iaoq, sizeof(regs->iaoq)); in setup_sigcontext()
198 err |= __copy_to_user(sc->sc_iasq, regs->iasq, sizeof(regs->iasq)); in setup_sigcontext()
204 err |= __copy_to_user(sc->sc_gr, regs->gr, sizeof(regs->gr)); in setup_sigcontext()
205 err |= __copy_to_user(sc->sc_fr, regs->fr, sizeof(regs->fr)); in setup_sigcontext()
268 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
/linux/arch/arc/kernel/
H A Dsignal.c79 err = __copy_to_user(&mctx->v2abi, (void const *)&v2abi, sizeof(v2abi)); in save_arcv2_regs()
132 err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), &uregs.scratch, in stash_usr_regs()
138 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(sigset_t)); in stash_usr_regs()
/linux/arch/arm/kernel/
H A Dsignal.c57 err = __copy_to_user(frame, kframe, sizeof(*kframe)); in preserve_iwmmxt_context()
115 return __copy_to_user(frame, &kframe, sizeof(kframe)); in preserve_vfp_context()
282 err |= __copy_to_user(&sf->uc.uc_mcontext, &context, sizeof(context)); in setup_sigframe()
284 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(*set)); in setup_sigframe()
/linux/arch/arm64/kernel/
H A Dsignal.c254 err = __copy_to_user(ctx->vregs, fpsimd->vregs, sizeof(fpsimd->vregs)); in preserve_fpsimd_context()
372 err |= __copy_to_user(&ctx->__reserved, reserved, sizeof(reserved)); in preserve_sve_context()
380 err |= __copy_to_user((char __user *)ctx + SVE_SIG_REGS_OFFSET, in preserve_sve_context()
541 err |= __copy_to_user(&ctx->__reserved, reserved, sizeof(reserved)); in preserve_za_context()
549 err |= __copy_to_user((char __user *)ctx + ZA_SIG_REGS_OFFSET, in preserve_za_context()
628 err |= __copy_to_user(&ctx->__reserved, reserved, sizeof(reserved)); in preserve_zt_context()
635 err |= __copy_to_user((char __user *)ctx + ZT_SIG_REGS_OFFSET, in preserve_zt_context()
1272 err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(*set)); in setup_sigframe()
/linux/mm/kasan/
H A Dkasan_test_module.c
/linux/arch/sh/kernel/
H A Dsignal_32.c109 return __copy_to_user(&sc->sc_fpregs[0], &tsk->thread.xstate->hardfpu, in save_sigcontext_fpu()
283 err |= __copy_to_user(frame->extramask, &set->sig[1], in setup_frame()
354 err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set)); in setup_rt_frame()
/linux/include/linux/
H A Duaccess.h140 __copy_to_user(void __user *to, const void *from, unsigned long n) in __copy_to_user() function
556 #define unsafe_copy_to_user(d,s,l,e) unsafe_op_wrap(__copy_to_user(d,s,l),e)
/linux/arch/x86/kernel/fpu/
H 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/nios2/include/asm/
H A Duaccess.h165 if (__copy_to_user(__pu_ptr, &(__pu_val), \
/linux/arch/x86/um/
H A Dsignal.c254 err |= __copy_to_user(&frame->extramask, &mask->sig[1], in setup_signal_stack_sc()
405 err |= __copy_to_user(&frame->uc.uc_sigmask, set, in setup_signal_stack_si()
/linux/arch/xtensa/include/asm/
H A Duaccess.h79 retval = __copy_to_user(ptr, &__v64, 8) ? -EFAULT : 0; \
/linux/arch/x86/math-emu/
H A Dreg_ld_str.c1187 if (__copy_to_user(d, &control_word, 7 * 4)) in fstenv()
1210 if (__copy_to_user(d, register_base + offset, other)) in fsave()
1213 if (__copy_to_user(d + other, register_base, offset)) in fsave()
/linux/drivers/gpu/drm/i915/
H A Di915_query.c519 if (__copy_to_user(info_ptr, &info, sizeof(info))) in query_memregion_info()
526 if (__copy_to_user(query_ptr, &query, sizeof(query))) in query_memregion_info()

12