Lines Matching refs:v_regs

127 	elf_vrreg_t __user *v_regs = sigcontext_vmx_regs(sc);  in __unsafe_setup_sigcontext()  local
137 unsafe_put_user(v_regs, &sc->v_regs, efault_out); in __unsafe_setup_sigcontext()
142 unsafe_copy_to_user(v_regs, &tsk->thread.vr_state, in __unsafe_setup_sigcontext()
152 unsafe_put_user(tsk->thread.vrsave, (u32 __user *)&v_regs[33], efault_out); in __unsafe_setup_sigcontext()
154 unsafe_put_user(0, &sc->v_regs, efault_out); in __unsafe_setup_sigcontext()
171 v_regs += ELF_NVRREG; in __unsafe_setup_sigcontext()
172 unsafe_copy_vsx_to_user(v_regs, tsk, efault_out); in __unsafe_setup_sigcontext()
221 elf_vrreg_t __user *v_regs = sigcontext_vmx_regs(sc); in setup_tm_sigcontexts() local
240 err |= __put_user(v_regs, &sc->v_regs); in setup_tm_sigcontexts()
241 err |= __put_user(tm_v_regs, &tm_sc->v_regs); in setup_tm_sigcontexts()
246 err |= __copy_to_user(v_regs, &tsk->thread.ckvr_state, in setup_tm_sigcontexts()
270 err |= __put_user(tsk->thread.ckvrsave, (u32 __user *)&v_regs[33]); in setup_tm_sigcontexts()
279 err |= __put_user(0, &sc->v_regs); in setup_tm_sigcontexts()
280 err |= __put_user(0, &tm_sc->v_regs); in setup_tm_sigcontexts()
297 v_regs += ELF_NVRREG; in setup_tm_sigcontexts()
300 err |= copy_ckvsx_to_user(v_regs, tsk); in setup_tm_sigcontexts()
341 elf_vrreg_t __user *v_regs; in __unsafe_restore_sigcontext() local
390 unsafe_get_user(v_regs, &sc->v_regs, efault_out); in __unsafe_restore_sigcontext()
391 if (v_regs && !access_ok(v_regs, 34 * sizeof(vector128))) in __unsafe_restore_sigcontext()
394 if (v_regs != NULL && (msr & MSR_VEC) != 0) { in __unsafe_restore_sigcontext()
395 unsafe_copy_from_user(&tsk->thread.vr_state, v_regs, in __unsafe_restore_sigcontext()
402 if (v_regs != NULL) in __unsafe_restore_sigcontext()
403 unsafe_get_user(tsk->thread.vrsave, (u32 __user *)&v_regs[33], efault_out); in __unsafe_restore_sigcontext()
417 v_regs += ELF_NVRREG; in __unsafe_restore_sigcontext()
419 unsafe_copy_vsx_from_user(tsk, v_regs, efault_out); in __unsafe_restore_sigcontext()
442 elf_vrreg_t __user *v_regs, *tm_v_regs; in restore_tm_sigcontexts() local
509 err |= __get_user(v_regs, &sc->v_regs); in restore_tm_sigcontexts()
510 err |= __get_user(tm_v_regs, &tm_sc->v_regs); in restore_tm_sigcontexts()
513 if (v_regs && !access_ok(v_regs, 34 * sizeof(vector128))) in restore_tm_sigcontexts()
518 if (v_regs != NULL && tm_v_regs != NULL && (msr & MSR_VEC) != 0) { in restore_tm_sigcontexts()
519 err |= __copy_from_user(&tsk->thread.ckvr_state, v_regs, in restore_tm_sigcontexts()
530 if (v_regs != NULL && tm_v_regs != NULL) { in restore_tm_sigcontexts()
532 (u32 __user *)&v_regs[33]); in restore_tm_sigcontexts()
552 if (v_regs && ((msr & MSR_VSX) != 0)) { in restore_tm_sigcontexts()
553 v_regs += ELF_NVRREG; in restore_tm_sigcontexts()
556 err |= copy_ckvsx_from_user(tsk, v_regs); in restore_tm_sigcontexts()