Home
last modified time | relevance | path

Searched refs:SPRN_LPCR (Results 1 - 25 of 40) sorted by relevance

12

/kernel/linux/linux-5.10/arch/powerpc/kernel/
H A Dcpu_setup_power.c37 mtspr(SPRN_LPCR, lpcr); in init_LPCR_ISA300()
141 init_LPCR_ISA206(mfspr(SPRN_LPCR), LPCR_LPES1 >> LPCR_LPES_SH); in __setup_cpu_power7()
154 init_LPCR_ISA206(mfspr(SPRN_LPCR), LPCR_LPES1 >> LPCR_LPES_SH); in __restore_cpu_power7()
168 init_LPCR_ISA206(mfspr(SPRN_LPCR) | LPCR_PECEDH, 0); /* LPES = 0 */ in __setup_cpu_power8()
188 init_LPCR_ISA206(mfspr(SPRN_LPCR) | LPCR_PECEDH, 0); /* LPES = 0 */ in __restore_cpu_power8()
206 init_LPCR_ISA300((mfspr(SPRN_LPCR) | LPCR_PECEDH | LPCR_PECE_HVEE |\ in __setup_cpu_power9()
227 init_LPCR_ISA300((mfspr(SPRN_LPCR) | LPCR_PECEDH | LPCR_PECE_HVEE |\ in __restore_cpu_power9()
246 init_LPCR_ISA300((mfspr(SPRN_LPCR) | LPCR_PECEDH | LPCR_PECE_HVEE |\ in __setup_cpu_power10()
268 init_LPCR_ISA300((mfspr(SPRN_LPCR) | LPCR_PECEDH | LPCR_PECE_HVEE |\ in __restore_cpu_power10()
H A Ddt_cpu_ftrs.c96 lpcr = mfspr(SPRN_LPCR); in __restore_cpu_cpufeatures()
99 mtspr(SPRN_LPCR, lpcr); in __restore_cpu_cpufeatures()
240 lpcr = mfspr(SPRN_LPCR); in feat_enable_hv()
242 mtspr(SPRN_LPCR, lpcr); in feat_enable_hv()
267 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_nap()
271 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_nap()
288 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_stop()
292 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_stop()
301 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash()
308 mtspr(SPRN_LPCR, lpc in feat_enable_mmu_hash()
[all...]
H A Dsetup_64.c235 unsigned long lpcr = mfspr(SPRN_LPCR); in cpu_ready_for_interrupts()
250 mtspr(SPRN_LPCR, new_lpcr); in cpu_ready_for_interrupts()
/kernel/linux/linux-6.6/arch/powerpc/kernel/
H A Dcpu_setup_power.c37 mtspr(SPRN_LPCR, lpcr); in init_LPCR_ISA300()
148 init_LPCR_ISA206(mfspr(SPRN_LPCR), LPCR_LPES1 >> LPCR_LPES_SH); in __setup_cpu_power7()
162 init_LPCR_ISA206(mfspr(SPRN_LPCR), LPCR_LPES1 >> LPCR_LPES_SH); in __restore_cpu_power7()
177 init_LPCR_ISA206(mfspr(SPRN_LPCR) | LPCR_PECEDH, 0); /* LPES = 0 */ in __setup_cpu_power8()
198 init_LPCR_ISA206(mfspr(SPRN_LPCR) | LPCR_PECEDH, 0); /* LPES = 0 */ in __restore_cpu_power8()
217 init_LPCR_ISA300((mfspr(SPRN_LPCR) | LPCR_PECEDH | LPCR_PECE_HVEE |\ in __setup_cpu_power9()
239 init_LPCR_ISA300((mfspr(SPRN_LPCR) | LPCR_PECEDH | LPCR_PECE_HVEE |\ in __restore_cpu_power9()
260 init_LPCR_ISA300((mfspr(SPRN_LPCR) | LPCR_PECEDH | LPCR_PECE_HVEE |\ in __setup_cpu_power10()
284 init_LPCR_ISA300((mfspr(SPRN_LPCR) | LPCR_PECEDH | LPCR_PECE_HVEE |\ in __restore_cpu_power10()
H A Ddt_cpu_ftrs.c80 mtspr(SPRN_LPCR, system_registers.lpcr); in __restore_cpu_cpufeatures()
221 lpcr = mfspr(SPRN_LPCR); in feat_enable_hv()
223 mtspr(SPRN_LPCR, lpcr); in feat_enable_hv()
248 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_nap()
252 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_nap()
262 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_stop()
266 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_stop()
278 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash()
285 mtspr(SPRN_LPCR, lpcr); in feat_enable_mmu_hash()
300 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash_v3()
[all...]
H A Dsetup_64.c276 unsigned long lpcr = mfspr(SPRN_LPCR); in cpu_ready_for_interrupts()
291 mtspr(SPRN_LPCR, new_lpcr); in cpu_ready_for_interrupts()
H A Dtime.c832 mtspr(SPRN_LPCR, mfspr(SPRN_LPCR) | LPCR_LD); in enable_large_decrementer()
/kernel/linux/linux-5.10/drivers/cpuidle/
H A Dcpuidle-powernv.c118 unsigned long old_lpcr = mfspr(SPRN_LPCR); in fastsleep_loop()
130 mtspr(SPRN_LPCR, new_lpcr); in fastsleep_loop()
134 mtspr(SPRN_LPCR, old_lpcr); in fastsleep_loop()
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
H A Didle.c74 uint64_t lpcr_val = mfspr(SPRN_LPCR); in pnv_save_sprs_for_deep_states()
88 rc = opal_slw_set_reg(pir, SPRN_LPCR, lpcr_val); in pnv_save_sprs_for_deep_states()
347 sprs.lpcr = mfspr(SPRN_LPCR); in power7_idle_insn()
482 mtspr(SPRN_LPCR, sprs.lpcr); in power7_idle_insn()
663 sprs.lpcr = mfspr(SPRN_LPCR); in power9_idle_stop()
780 mtspr(SPRN_LPCR, sprs.lpcr); in power9_idle_stop()
1078 mtspr(SPRN_LPCR, lpcr_val); in pnv_program_cpu_hotplug_lpcr()
1085 opal_slw_set_reg(pir, SPRN_LPCR, lpcr_val); in pnv_program_cpu_hotplug_lpcr()
H A Dsmp.c213 lpcr_val = mfspr(SPRN_LPCR) & ~(u64)LPCR_PECE1; in pnv_cpu_offline_self()
290 lpcr_val = mfspr(SPRN_LPCR) | (u64)LPCR_PECE1; in pnv_cpu_offline_self()
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/
H A Didle.c74 uint64_t lpcr_val = mfspr(SPRN_LPCR); in pnv_save_sprs_for_deep_states()
88 rc = opal_slw_set_reg(pir, SPRN_LPCR, lpcr_val); in pnv_save_sprs_for_deep_states()
349 sprs.lpcr = mfspr(SPRN_LPCR); in power7_idle_insn()
483 mtspr(SPRN_LPCR, sprs.lpcr); in power7_idle_insn()
664 sprs.lpcr = mfspr(SPRN_LPCR); in power9_idle_stop()
780 mtspr(SPRN_LPCR, sprs.lpcr); in power9_idle_stop()
1044 mtspr(SPRN_LPCR, lpcr_val); in pnv_program_cpu_hotplug_lpcr()
1051 opal_slw_set_reg(pir, SPRN_LPCR, lpcr_val); in pnv_program_cpu_hotplug_lpcr()
H A Dsmp.c213 lpcr_val = mfspr(SPRN_LPCR) & ~(u64)LPCR_PECE1; in pnv_cpu_offline_self()
290 lpcr_val = mfspr(SPRN_LPCR) | (u64)LPCR_PECE1; in pnv_cpu_offline_self()
/kernel/linux/linux-6.6/drivers/cpuidle/
H A Dcpuidle-powernv.c120 unsigned long old_lpcr = mfspr(SPRN_LPCR); in fastsleep_loop()
132 mtspr(SPRN_LPCR, new_lpcr); in fastsleep_loop()
136 mtspr(SPRN_LPCR, old_lpcr); in fastsleep_loop()
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
H A Dradix_pgtable.c691 lpcr = mfspr(SPRN_LPCR); in radix__early_init_mmu()
692 mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR); in radix__early_init_mmu()
713 lpcr = mfspr(SPRN_LPCR); in radix__early_init_mmu_secondary()
714 mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR); in radix__early_init_mmu_secondary()
731 lpcr = mfspr(SPRN_LPCR); in radix__mmu_cleanup_all()
732 mtspr(SPRN_LPCR, lpcr & ~LPCR_UPRT); in radix__mmu_cleanup_all()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
H A Dbook3s_hv_builtin.c703 mtspr(SPRN_LPCR, sip->lpcr_req); in kvmhv_p9_set_lpcr()
737 mtspr(SPRN_LPCR, sip->host_lpcr); in kvmhv_p9_restore_lpcr()
826 lpcr = mfspr(SPRN_LPCR); in kvmppc_guest_entry_inject_int()
828 mtspr(SPRN_LPCR, lpcr); in kvmppc_guest_entry_inject_int()
H A Dbook3s_hv_rm_xics.c140 mtspr(SPRN_LPCR, mfspr(SPRN_LPCR) | LPCR_MER); in icp_rm_set_vcpu_irq()
178 mtspr(SPRN_LPCR, mfspr(SPRN_LPCR) & ~LPCR_MER); in icp_rm_clr_vcpu_irq()
H A Dbook3s_hv_interrupts.S68 mtspr SPRN_LPCR, r8
H A Dbook3s_hv_rmhandlers.S191 mtspr SPRN_LPCR,r8
448 mfspr r4, SPRN_LPCR
450 mtspr SPRN_LPCR, r4
547 mfspr r5, SPRN_LPCR
906 mtspr SPRN_LPCR,r8
1962 mtspr SPRN_LPCR,r8
2740 mfspr r5,SPRN_LPCR
2762 mtspr SPRN_LPCR,r5
3408 mtspr SPRN_LPCR, r8
/kernel/linux/linux-6.6/arch/powerpc/kvm/
H A Dbook3s_hv_rm_xics.c140 mtspr(SPRN_LPCR, mfspr(SPRN_LPCR) | LPCR_MER); in icp_rm_set_vcpu_irq()
171 mtspr(SPRN_LPCR, mfspr(SPRN_LPCR) & ~LPCR_MER); in icp_rm_clr_vcpu_irq()
H A Dbook3s_hv_interrupts.S69 mtspr SPRN_LPCR, r8
H A Dbook3s_hv_builtin.c575 lpcr = mfspr(SPRN_LPCR); in kvmppc_guest_entry_inject_int()
577 mtspr(SPRN_LPCR, lpcr); in kvmppc_guest_entry_inject_int()
H A Dbook3s_hv_p9_entry.c318 mtspr(SPRN_LPCR, lpcr); in switch_mmu_to_guest_radix()
343 mtspr(SPRN_LPCR, lpcr); in switch_mmu_to_guest_hpt()
368 mtspr(SPRN_LPCR, lpcr); in switch_mmu_to_host()
H A Dbook3s_64_entry.S395 mtspr SPRN_LPCR,r10
H A Dbook3s_hv_rmhandlers.S164 mtspr SPRN_LPCR,r8
409 mfspr r4, SPRN_LPCR
411 mtspr SPRN_LPCR, r4
491 mfspr r5, SPRN_LPCR
819 mtspr SPRN_LPCR,r8
1497 mtspr SPRN_LPCR,r8
2183 mfspr r5,SPRN_LPCR
2192 mtspr SPRN_LPCR,r5
/kernel/linux/linux-6.6/arch/powerpc/mm/book3s64/
H A Dradix_pgtable.c578 lpcr = mfspr(SPRN_LPCR); in radix__early_init_mmu()
579 mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR); in radix__early_init_mmu()
599 lpcr = mfspr(SPRN_LPCR); in radix__early_init_mmu_secondary()
600 mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR); in radix__early_init_mmu_secondary()
619 lpcr = mfspr(SPRN_LPCR); in radix__mmu_cleanup_all()
620 mtspr(SPRN_LPCR, lpcr & ~LPCR_UPRT); in radix__mmu_cleanup_all()

Completed in 27 milliseconds

12