Home
last modified time | relevance | path

Searched refs:fscr (Results 1 – 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dcpu_setup_power.c62 u64 fscr; in init_FSCR() local
64 fscr = mfspr(SPRN_FSCR); in init_FSCR()
65 fscr |= FSCR_TAR|FSCR_EBB; in init_FSCR()
66 mtspr(SPRN_FSCR, fscr); in init_FSCR()
71 u64 fscr; in init_FSCR_power9() local
73 fscr = mfspr(SPRN_FSCR); in init_FSCR_power9()
74 fscr |= FSCR_SCV; in init_FSCR_power9()
75 mtspr(SPRN_FSCR, fscr); in init_FSCR_power9()
81 u64 fscr; in init_FSCR_power10() local
83 fscr = mfspr(SPRN_FSCR); in init_FSCR_power10()
[all …]
Ddt_cpu_ftrs.c74 u64 fscr; member
105 mtspr(SPRN_FSCR, system_registers.fscr); in __restore_cpu_cpufeatures()
168 u64 fscr = mfspr(SPRN_FSCR); in feat_try_enable_unknown() local
169 fscr |= 1UL << f->fscr_bit_nr; in feat_try_enable_unknown()
170 mtspr(SPRN_FSCR, fscr); in feat_try_enable_unknown()
203 u64 fscr = mfspr(SPRN_FSCR); in feat_enable() local
204 fscr |= 1UL << f->fscr_bit_nr; in feat_enable()
205 mtspr(SPRN_FSCR, fscr); in feat_enable()
831 system_registers.fscr = mfspr(SPRN_FSCR); in cpufeatures_setup_finished()
Dprocess.c1152 t->fscr = mfspr(SPRN_FSCR); in save_sprs()
1193 if (old_thread->fscr != new_thread->fscr) in restore_sprs()
1194 mtspr(SPRN_FSCR, new_thread->fscr); in restore_sprs()
Dprom.c708 init_task.thread.fscr = mfspr(SPRN_FSCR); in save_fscr_to_task()
Dsetup_64.c201 init_task.thread.fscr &= ~FSCR_SCV; in configure_exceptions()
Dtraps.c1804 current->thread.fscr |= FSCR_DSCR; in facility_unavailable_exception()
1805 mtspr(SPRN_FSCR, current->thread.fscr); in facility_unavailable_exception()
Dasm-offsets.c581 OFFSET(VCPU_FSCR, kvm_vcpu, arch.fscr); in main()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
Dbook3s_hv_tm.c86 if ((msr & MSR_PR) && !(vcpu->arch.fscr & FSCR_EBB)) { in kvmhv_p9_tm_emulation()
88 vcpu->arch.fscr = (vcpu->arch.fscr & ~(0xffull << 56)) | in kvmhv_p9_tm_emulation()
137 vcpu->arch.fscr = (vcpu->arch.fscr & ~(0xffull << 56)) | in kvmhv_p9_tm_emulation()
167 vcpu->arch.fscr = (vcpu->arch.fscr & ~(0xffull << 56)) | in kvmhv_p9_tm_emulation()
205 vcpu->arch.fscr = (vcpu->arch.fscr & ~(0xffull << 56)) | in kvmhv_p9_tm_emulation()
Dbook3s_pr.c397 if (vcpu->arch.fscr & FSCR_TAR) in kvmppc_restore_tm_pr()
409 if (vcpu->arch.fscr & FSCR_TAR) in kvmppc_restore_tm_pr()
985 vcpu->arch.fscr &= ~(0xffULL << 56); in kvmppc_trigger_fac_interrupt()
986 vcpu->arch.fscr |= (fac << 56); in kvmppc_trigger_fac_interrupt()
1016 guest_fac_enabled = (vcpu->arch.fscr & (1ULL << fac)); in kvmppc_handle_fac()
1059 void kvmppc_set_fscr(struct kvm_vcpu *vcpu, u64 fscr) in kvmppc_set_fscr() argument
1061 if ((vcpu->arch.fscr & FSCR_TAR) && !(fscr & FSCR_TAR)) { in kvmppc_set_fscr()
1064 } else if (!(vcpu->arch.fscr & FSCR_TAR) && (fscr & FSCR_TAR)) { in kvmppc_set_fscr()
1065 vcpu->arch.fscr = fscr; in kvmppc_set_fscr()
1070 vcpu->arch.fscr = fscr; in kvmppc_set_fscr()
Dbook3s.c631 *val = get_reg_val(id, vcpu->arch.fscr); in kvmppc_get_one_reg()
716 vcpu->arch.fscr = set_reg_val(id, *val); in kvmppc_set_one_reg()
Dbook3s_emulate.c949 *spr_val = vcpu->arch.fscr; in kvmppc_core_emulate_mfspr_pr()
Dbook3s_hv.c3647 mtspr(SPRN_FSCR, vcpu->arch.fscr); in kvmhv_p9_guest_entry()
3724 vcpu->arch.fscr = mfspr(SPRN_FSCR); in kvmhv_p9_guest_entry()
3746 if (host_fscr != vcpu->arch.fscr) in kvmhv_p9_guest_entry()
4418 mtspr(SPRN_FSCR, current->thread.fscr); in kvmppc_vcpu_run_hv()
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Didle.c299 u64 fscr; member
350 sprs.fscr = mfspr(SPRN_FSCR); in power7_idle_insn()
485 mtspr(SPRN_FSCR, sprs.fscr); in power7_idle_insn()
586 u64 fscr; member
665 sprs.fscr = mfspr(SPRN_FSCR); in power9_idle_stop()
782 mtspr(SPRN_FSCR, sprs.fscr); in power9_idle_stop()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/powerpc/
Dibm,powerpc-cpu-features.txt144 If the FSCR bit is set, then the fscr-bit-nr property will exist and
161 - fscr-bit-nr
243 fscr-bit-nr = <xx>;
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dprocessor.h245 unsigned long fscr; member
Dkvm_book3s.h263 extern void kvmppc_set_fscr(struct kvm_vcpu *vcpu, u64 fscr);
Dkvm_host.h593 ulong fscr; member