Lines Matching refs:psscr

605 static unsigned long power9_idle_stop(unsigned long psscr, bool mmu_on)  in power9_idle_stop()  argument
618 if (!(psscr & (PSSCR_EC|PSSCR_ESL))) { in power9_idle_stop()
627 srr1 = isa300_idle_stop_noloss(psscr); /* go idle */ in power9_idle_stop()
643 local_paca->requested_psscr = psscr; in power9_idle_stop()
662 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()
894 static unsigned long power10_idle_stop(unsigned long psscr, bool mmu_on) in power10_idle_stop() argument
905 if (!(psscr & (PSSCR_EC|PSSCR_ESL))) { in power10_idle_stop()
914 srr1 = isa300_idle_stop_noloss(psscr); /* go idle */ in power10_idle_stop()
928 if ((psscr & PSSCR_RL_MASK) >= deep_spr_loss_state) { in power10_idle_stop()
936 srr1 = isa300_idle_stop_mayloss(psscr); /* go idle */ in power10_idle_stop()
938 psscr = mfspr(SPRN_PSSCR); in power10_idle_stop()
951 pls = (psscr & PSSCR_PLS) >> PSSCR_PLS_SHIFT; in power10_idle_stop()
997 static unsigned long arch300_offline_stop(unsigned long psscr) in arch300_offline_stop() argument
1004 srr1 = power10_idle_stop(psscr, true); in arch300_offline_stop()
1006 srr1 = power9_idle_stop(psscr, true); in arch300_offline_stop()
1023 srr1 = power10_idle_stop(psscr, false); in arch300_offline_stop()
1025 srr1 = power9_idle_stop(psscr, false); in arch300_offline_stop()
1043 unsigned long psscr; in arch300_idle_type() local
1049 psscr = mfspr(SPRN_PSSCR); in arch300_idle_type()
1050 psscr = (psscr & ~stop_psscr_mask) | stop_psscr_val; in arch300_idle_type()
1054 srr1 = power10_idle_stop(psscr, true); in arch300_idle_type()
1056 srr1 = power9_idle_stop(psscr, true); in arch300_idle_type()
1100 unsigned long psscr; in pnv_cpu_offline() local
1102 psscr = mfspr(SPRN_PSSCR); in pnv_cpu_offline()
1103 psscr = (psscr & ~pnv_deepest_stop_psscr_mask) | in pnv_cpu_offline()
1105 srr1 = arch300_offline_stop(psscr); in pnv_cpu_offline()