Lines Matching refs:lpcr
73 u64 lpcr; member
83 u64 lpcr; in __restore_cpu_cpufeatures() local
97 lpcr = mfspr(SPRN_LPCR); in __restore_cpu_cpufeatures()
98 lpcr |= system_registers.lpcr; in __restore_cpu_cpufeatures()
99 lpcr &= ~system_registers.lpcr_clear; in __restore_cpu_cpufeatures()
100 mtspr(SPRN_LPCR, lpcr); in __restore_cpu_cpufeatures()
233 u64 lpcr; in feat_enable_hv() local
242 lpcr = mfspr(SPRN_LPCR); in feat_enable_hv()
243 lpcr &= ~LPCR_LPES0; /* HV external interrupts */ in feat_enable_hv()
244 mtspr(SPRN_LPCR, lpcr); in feat_enable_hv()
266 u64 lpcr; in feat_enable_idle_nap() local
269 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_nap()
270 lpcr |= LPCR_PECE0; in feat_enable_idle_nap()
271 lpcr |= LPCR_PECE1; in feat_enable_idle_nap()
272 lpcr |= LPCR_PECE2; in feat_enable_idle_nap()
273 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_nap()
287 u64 lpcr; in feat_enable_idle_stop() local
290 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_stop()
291 lpcr |= LPCR_PECE0; in feat_enable_idle_stop()
292 lpcr |= LPCR_PECE1; in feat_enable_idle_stop()
293 lpcr |= LPCR_PECE2; in feat_enable_idle_stop()
294 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_stop()
301 u64 lpcr; in feat_enable_mmu_hash() local
303 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash()
304 lpcr &= ~LPCR_ISL; in feat_enable_mmu_hash()
307 lpcr |= LPCR_VPM0; in feat_enable_mmu_hash()
308 lpcr &= ~LPCR_VPM1; in feat_enable_mmu_hash()
309 lpcr |= 0x10UL << LPCR_VRMASD_SH; /* L=1 LP=00 */ in feat_enable_mmu_hash()
310 mtspr(SPRN_LPCR, lpcr); in feat_enable_mmu_hash()
320 u64 lpcr; in feat_enable_mmu_hash_v3() local
323 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash_v3()
324 lpcr &= ~(LPCR_ISL | LPCR_UPRT | LPCR_HR); in feat_enable_mmu_hash_v3()
325 mtspr(SPRN_LPCR, lpcr); in feat_enable_mmu_hash_v3()
348 u64 lpcr; in feat_enable_dscr() local
352 lpcr = mfspr(SPRN_LPCR); in feat_enable_dscr()
353 lpcr &= ~LPCR_DPFD; in feat_enable_dscr()
354 lpcr |= (4UL << LPCR_DPFD_SH); in feat_enable_dscr()
355 mtspr(SPRN_LPCR, lpcr); in feat_enable_dscr()
510 u64 lpcr; in feat_enable_dbell() local
517 lpcr = mfspr(SPRN_LPCR); in feat_enable_dbell()
518 lpcr |= LPCR_PECEDH; /* hyp doorbell wakeup */ in feat_enable_dbell()
519 mtspr(SPRN_LPCR, lpcr); in feat_enable_dbell()
526 u64 lpcr; in feat_enable_hvi() local
540 lpcr = mfspr(SPRN_LPCR); in feat_enable_hvi()
541 lpcr |= LPCR_HVICE; /* enable hvi interrupts */ in feat_enable_hvi()
542 lpcr |= LPCR_HEIC; /* disable ee interrupts when MSR_HV */ in feat_enable_hvi()
543 lpcr |= LPCR_PECE_HVEE; /* hvi can wake from stop */ in feat_enable_hvi()
544 mtspr(SPRN_LPCR, lpcr); in feat_enable_hvi()
768 system_registers.lpcr = mfspr(SPRN_LPCR); in cpufeatures_setup_finished()