Home
last modified time | relevance | path

Searched refs:psscr (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/arch/powerpc/platforms/powernv/
H A Didle.c608 static unsigned long power9_idle_stop(unsigned long psscr) in power9_idle_stop() argument
621 if (!(psscr & (PSSCR_EC|PSSCR_ESL))) { in power9_idle_stop()
628 srr1 = isa300_idle_stop_noloss(psscr); /* go idle */ in power9_idle_stop()
644 local_paca->requested_psscr = psscr; in power9_idle_stop()
663 if ((psscr & PSSCR_RL_MASK) >= deep_spr_loss_state) { in power9_idle_stop()
693 srr1 = isa300_idle_stop_mayloss(psscr); /* go idle */ in power9_idle_stop()
699 psscr = mfspr(SPRN_PSSCR); in power9_idle_stop()
743 pls = (psscr & PSSCR_PLS) >> PSSCR_PLS_SHIFT; in power9_idle_stop()
893 static unsigned long power10_idle_stop(unsigned long psscr) in power10_idle_stop() argument
904 if (!(psscr & (PSSCR_EC|PSSCR_ESL))) { in power10_idle_stop()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/powerpc/opal/
H A Dpower-mgt.txt73 - ibm,cpu-idle-state-psscr:
78 - ibm,cpu-idle-state-psscr-mask:
80 indicating which psscr fields are set in the corresponding
81 entries of ibm,cpu-idle-state-psscr. This property is
85 ibm,cpu-idle-state-psscr-mask value to 0xf, it implies that
87 in ibm,cpu-idle-state-psscr should be considered by the
89 remaining fields of the psscr to the following sane-default
102 ibm,cpu-idle-state-psscr-mask, the kernel expects all the
103 psscr fields of the corresponding entry in
104 ibm,cpu-idle-state-psscr to be correctly set by the firmware.
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv_p9_entry.c635 mtspr(SPRN_PSSCR, vcpu->arch.psscr | PSSCR_EC | in kvmhv_vcpu_entry_p9()
638 if (vcpu->arch.psscr != host_psscr) in kvmhv_vcpu_entry_p9()
639 mtspr(SPRN_PSSCR_PR, vcpu->arch.psscr); in kvmhv_vcpu_entry_p9()
832 vcpu->arch.psscr = mfspr(SPRN_PSSCR_PR); in kvmhv_vcpu_entry_p9()
H A Dbook3s_hv.c2321 *val = get_reg_val(id, vcpu->arch.psscr); in kvmppc_get_one_reg_hv()
2567 vcpu->arch.psscr = set_reg_val(id, *val) & PSSCR_GUEST_VIS; in kvmppc_set_one_reg_hv()
4076 if (vcpu->arch.psscr != host_psscr) in kvmhv_vcpu_entry_p9_nested()
4077 mtspr(SPRN_PSSCR_PR, vcpu->arch.psscr); in kvmhv_vcpu_entry_p9_nested()
4130 vcpu->arch.psscr = mfspr(SPRN_PSSCR_PR); in kvmhv_vcpu_entry_p9_nested()
4143 if (vcpu->arch.psscr != host_psscr) in kvmhv_vcpu_entry_p9_nested()
/openbmc/linux/arch/powerpc/include/asm/
H A Dkvm_host.h605 ulong psscr; member