Searched refs:vrsave (Results 1 - 19 of 19) sorted by relevance

/linux-4.1.27/drivers/crypto/vmx/
H A Dghashp8-ppc.pl49 my $vrsave="r12";
59 mfspr $vrsave,256
97 mtspr 256,$vrsave
107 mfspr $vrsave,256
145 mtspr 256,$vrsave
155 mfspr $vrsave,256
212 mtspr 256,$vrsave
H A Daesp8-ppc.pl57 $vrsave="r12";
106 mfspr $vrsave,256
337 mtspr 256,$vrsave
406 mfspr $vrsave,256
462 mtspr 256,$vrsave
486 mfspr $vrsave,256
633 mtspr 256,$vrsave
678 stw $vrsave,`$FRAME+21*16-4`($sp) # save vrsave
1190 mtspr 256,$vrsave
1242 mfspr $vrsave,256
1336 mtspr 256,$vrsave
1382 stw $vrsave,`$FRAME+21*16-4`($sp) # save vrsave
1840 mtspr 256,$vrsave
/linux-4.1.27/arch/powerpc/include/uapi/asm/
H A Dsigcontext.h44 * The entry with index 33 contains the vrsave as the first word (offset 0)
80 * registers and vscr/vrsave.
H A Delf.h106 # define ELF_NVRREG32 33 /* includes vscr & vrsave stuffed together */
107 # define ELF_NVRREG 34 /* includes vscr & vrsave in split vectors */
142 * 64-bit kernel notes: The entry at index 33 contains the vrsave as the first
151 * vrsave along with vscr and so only uses 33 vectors for the register set
H A Dptrace.h139 * Get/set all the altivec registers v0..v31, vscr, vrsave, in one go.
143 * vrsave as the first word (offset 0) within the quadword.
H A Dkvm.h245 __u32 vrsave; /* a.k.a. USPRG0 */ member in struct:kvm_sregs::__anon2343::__anon2348
/linux-4.1.27/arch/powerpc/kernel/
H A Dptrace.c416 * Get/set all the altivec registers vr0..vr31, vscr, vrsave, in one go.
420 * vrsave as the first word (offset 0) within the quadword.
451 * Copy out only the low-order word of vrsave. vr_get()
456 } vrsave; vr_get() local
457 memset(&vrsave, 0, sizeof(vrsave)); vr_get()
458 vrsave.word = target->thread.vrsave; vr_get()
459 ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf, &vrsave, vr_get()
482 * We use only the first word of vrsave. vr_set()
487 } vrsave; vr_set() local
488 memset(&vrsave, 0, sizeof(vrsave)); vr_set()
489 vrsave.word = target->thread.vrsave; vr_set()
490 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &vrsave, vr_set()
493 target->thread.vrsave = vrsave.word; vr_set()
H A Dsignal_64.c112 /* We always copy to/from vrsave, it's 0 if we don't have or don't setup_sigcontext()
116 current->thread.vrsave = mfspr(SPRN_VRSAVE); setup_sigcontext()
117 err |= __put_user(current->thread.vrsave, (u32 __user *)&v_regs[33]); setup_sigcontext()
230 /* We always copy to/from vrsave, it's 0 if we don't have or don't setup_tm_sigcontexts()
234 current->thread.vrsave = mfspr(SPRN_VRSAVE); setup_tm_sigcontexts()
235 err |= __put_user(current->thread.vrsave, (u32 __user *)&v_regs[33]); setup_tm_sigcontexts()
240 err |= __put_user(current->thread.vrsave, setup_tm_sigcontexts()
371 err |= __get_user(current->thread.vrsave, (u32 __user *)&v_regs[33]); restore_sigcontext()
373 current->thread.vrsave = 0; restore_sigcontext()
375 mtspr(SPRN_VRSAVE, current->thread.vrsave); restore_sigcontext()
499 err |= __get_user(current->thread.vrsave, restore_tm_sigcontexts()
505 current->thread.vrsave = 0; restore_tm_sigcontexts()
509 mtspr(SPRN_VRSAVE, current->thread.vrsave); restore_tm_sigcontexts()
H A Dsignal_32.c434 /* We always copy to/from vrsave, it's 0 if we don't have or don't save_user_regs()
441 current->thread.vrsave = mfspr(SPRN_VRSAVE); save_user_regs()
442 if (__put_user(current->thread.vrsave, (u32 __user *)&frame->mc_vregs[32])) save_user_regs()
570 /* We always copy to/from vrsave, it's 0 if we don't have or don't save_tm_user_regs()
576 current->thread.vrsave = mfspr(SPRN_VRSAVE); save_tm_user_regs()
577 if (__put_user(current->thread.vrsave, save_tm_user_regs()
585 if (__put_user(current->thread.vrsave, save_tm_user_regs()
715 if (__get_user(current->thread.vrsave, (u32 __user *)&sr->mc_vregs[32])) restore_user_regs()
718 mtspr(SPRN_VRSAVE, current->thread.vrsave); restore_user_regs()
828 if (__get_user(current->thread.vrsave, restore_tm_user_regs()
834 mtspr(SPRN_VRSAVE, current->thread.vrsave); restore_tm_user_regs()
H A Dvector.S92 * switch code. Note that we could rely on vrsave value to eventually
H A Dasm-offsets.c101 DEFINE(THREAD_VRSAVE, offsetof(struct thread_struct, vrsave)); main()
441 DEFINE(VCPU_VRSAVE, offsetof(struct kvm_vcpu, arch.vrsave)); main()
H A Dentry_32.S609 mfspr r12,SPRN_VRSAVE /* save vrsave register value */
H A Dentry_64.S419 mfspr r24,SPRN_VRSAVE /* save vrsave register value */
H A Dprocess.c1319 current->thread.vrsave = 0; start_thread()
/linux-4.1.27/arch/powerpc/kvm/
H A Dpowerpc.c697 * vrsave (formerly usprg0) isn't used by Linux, but may kvm_arch_vcpu_load()
703 mtspr(SPRN_VRSAVE, vcpu->arch.vrsave); kvm_arch_vcpu_load()
712 vcpu->arch.vrsave = mfspr(SPRN_VRSAVE); kvm_arch_vcpu_put()
928 val = get_reg_val(reg->id, vcpu->arch.vrsave); kvm_vcpu_ioctl_get_one_reg()
983 vcpu->arch.vrsave = set_reg_val(reg->id, val); kvm_vcpu_ioctl_set_one_reg()
H A Dbooke.c1491 sregs->u.e.vrsave = vcpu->arch.vrsave; get_sregs_base()
1505 vcpu->arch.vrsave = sregs->u.e.vrsave; set_sregs_base()
1671 *val = get_reg_val(id, vcpu->arch.vrsave); kvmppc_get_one_reg()
1740 vcpu->arch.vrsave = set_reg_val(id, *val); kvmppc_set_one_reg()
H A Dbook3s_pr.c1468 unsigned long uninitialized_var(vrsave); kvmppc_vcpu_run_pr()
/linux-4.1.27/arch/powerpc/include/asm/
H A Dprocessor.h248 unsigned long vrsave; member in struct:thread_struct
H A Dkvm_host.h489 u32 vrsave; /* also USPRG0 */ member in struct:kvmppc_slb::kvm_vcpu_arch

Completed in 380 milliseconds