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()
232 u64 lpcr; in feat_enable_hv() local
241 lpcr = mfspr(SPRN_LPCR); in feat_enable_hv()
242 lpcr &= ~LPCR_LPES0; /* HV external interrupts */ in feat_enable_hv()
243 mtspr(SPRN_LPCR, lpcr); in feat_enable_hv()
265 u64 lpcr; in feat_enable_idle_nap() local
268 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_nap()
269 lpcr |= LPCR_PECE0; in feat_enable_idle_nap()
270 lpcr |= LPCR_PECE1; in feat_enable_idle_nap()
271 lpcr |= LPCR_PECE2; in feat_enable_idle_nap()
272 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_nap()
286 u64 lpcr; in feat_enable_idle_stop() local
289 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_stop()
290 lpcr |= LPCR_PECE0; in feat_enable_idle_stop()
291 lpcr |= LPCR_PECE1; in feat_enable_idle_stop()
292 lpcr |= LPCR_PECE2; in feat_enable_idle_stop()
293 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_stop()
300 u64 lpcr; in feat_enable_mmu_hash() local
302 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash()
303 lpcr &= ~LPCR_ISL; in feat_enable_mmu_hash()
306 lpcr |= LPCR_VPM0; in feat_enable_mmu_hash()
307 lpcr &= ~LPCR_VPM1; in feat_enable_mmu_hash()
308 lpcr |= 0x10UL << LPCR_VRMASD_SH; /* L=1 LP=00 */ in feat_enable_mmu_hash()
309 mtspr(SPRN_LPCR, lpcr); in feat_enable_mmu_hash()
319 u64 lpcr; in feat_enable_mmu_hash_v3() local
322 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash_v3()
323 lpcr &= ~(LPCR_ISL | LPCR_UPRT | LPCR_HR); in feat_enable_mmu_hash_v3()
324 mtspr(SPRN_LPCR, lpcr); in feat_enable_mmu_hash_v3()
347 u64 lpcr; in feat_enable_dscr() local
351 lpcr = mfspr(SPRN_LPCR); in feat_enable_dscr()
352 lpcr &= ~LPCR_DPFD; in feat_enable_dscr()
353 lpcr |= (4UL << LPCR_DPFD_SH); in feat_enable_dscr()
354 mtspr(SPRN_LPCR, lpcr); in feat_enable_dscr()
509 u64 lpcr; in feat_enable_dbell() local
516 lpcr = mfspr(SPRN_LPCR); in feat_enable_dbell()
517 lpcr |= LPCR_PECEDH; /* hyp doorbell wakeup */ in feat_enable_dbell()
518 mtspr(SPRN_LPCR, lpcr); in feat_enable_dbell()
525 u64 lpcr; in feat_enable_hvi() local
539 lpcr = mfspr(SPRN_LPCR); in feat_enable_hvi()
540 lpcr |= LPCR_HVICE; /* enable hvi interrupts */ in feat_enable_hvi()
541 lpcr |= LPCR_HEIC; /* disable ee interrupts when MSR_HV */ in feat_enable_hvi()
542 lpcr |= LPCR_PECE_HVEE; /* hvi can wake from stop */ in feat_enable_hvi()
543 mtspr(SPRN_LPCR, lpcr); in feat_enable_hvi()
742 system_registers.lpcr = mfspr(SPRN_LPCR); in cpufeatures_setup_finished()