Lines Matching refs:tm_v_regs
222 elf_vrreg_t __user *tm_v_regs = sigcontext_vmx_regs(tm_sc); in setup_tm_sigcontexts() local
241 err |= __put_user(tm_v_regs, &tm_sc->v_regs); 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()
273 (u32 __user *)&tm_v_regs[33]); in setup_tm_sigcontexts()
276 (u32 __user *)&tm_v_regs[33]); in setup_tm_sigcontexts()
298 tm_v_regs += ELF_NVRREG; in setup_tm_sigcontexts()
303 err |= copy_vsx_to_user(tm_v_regs, tsk); in setup_tm_sigcontexts()
305 err |= copy_ckvsx_to_user(tm_v_regs, tsk); in setup_tm_sigcontexts()
442 elf_vrreg_t __user *v_regs, *tm_v_regs; in restore_tm_sigcontexts() local
510 err |= __get_user(tm_v_regs, &tm_sc->v_regs); in restore_tm_sigcontexts()
515 if (tm_v_regs && !access_ok(tm_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()
521 err |= __copy_from_user(&tsk->thread.vr_state, tm_v_regs, in restore_tm_sigcontexts()
530 if (v_regs != NULL && tm_v_regs != NULL) { in restore_tm_sigcontexts()
534 (u32 __user *)&tm_v_regs[33]); in restore_tm_sigcontexts()
554 tm_v_regs += ELF_NVRREG; in restore_tm_sigcontexts()
555 err |= copy_vsx_from_user(tsk, tm_v_regs); in restore_tm_sigcontexts()