Lines Matching refs:lpcr
88 u64 lpcr; member
119 u64 lpcr; in __restore_cpu_cpufeatures() local
133 lpcr = mfspr(SPRN_LPCR); in __restore_cpu_cpufeatures()
134 lpcr |= system_registers.lpcr; in __restore_cpu_cpufeatures()
135 lpcr &= ~system_registers.lpcr_clear; in __restore_cpu_cpufeatures()
136 mtspr(SPRN_LPCR, lpcr); in __restore_cpu_cpufeatures()
271 u64 lpcr; in feat_enable_hv() local
280 lpcr = mfspr(SPRN_LPCR); in feat_enable_hv()
281 lpcr &= ~LPCR_LPES0; /* HV external interrupts */ in feat_enable_hv()
282 mtspr(SPRN_LPCR, lpcr); in feat_enable_hv()
304 u64 lpcr; in feat_enable_idle_nap() local
307 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_nap()
308 lpcr |= LPCR_PECE0; in feat_enable_idle_nap()
309 lpcr |= LPCR_PECE1; in feat_enable_idle_nap()
310 lpcr |= LPCR_PECE2; in feat_enable_idle_nap()
311 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_nap()
325 u64 lpcr; in feat_enable_idle_stop() local
328 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_stop()
329 lpcr |= LPCR_PECE0; in feat_enable_idle_stop()
330 lpcr |= LPCR_PECE1; in feat_enable_idle_stop()
331 lpcr |= LPCR_PECE2; in feat_enable_idle_stop()
332 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_stop()
339 u64 lpcr; in feat_enable_mmu_hash() local
341 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash()
342 lpcr &= ~LPCR_ISL; in feat_enable_mmu_hash()
345 lpcr |= LPCR_VPM0; in feat_enable_mmu_hash()
346 lpcr &= ~LPCR_VPM1; in feat_enable_mmu_hash()
347 lpcr |= 0x10UL << LPCR_VRMASD_SH; /* L=1 LP=00 */ in feat_enable_mmu_hash()
348 mtspr(SPRN_LPCR, lpcr); in feat_enable_mmu_hash()
358 u64 lpcr; in feat_enable_mmu_hash_v3() local
361 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash_v3()
362 lpcr &= ~(LPCR_ISL | LPCR_UPRT | LPCR_HR); in feat_enable_mmu_hash_v3()
363 mtspr(SPRN_LPCR, lpcr); in feat_enable_mmu_hash_v3()
386 u64 lpcr; in feat_enable_dscr() local
390 lpcr = mfspr(SPRN_LPCR); in feat_enable_dscr()
391 lpcr &= ~LPCR_DPFD; in feat_enable_dscr()
392 lpcr |= (4UL << LPCR_DPFD_SH); in feat_enable_dscr()
393 mtspr(SPRN_LPCR, lpcr); in feat_enable_dscr()
550 u64 lpcr; in feat_enable_dbell() local
557 lpcr = mfspr(SPRN_LPCR); in feat_enable_dbell()
558 lpcr |= LPCR_PECEDH; /* hyp doorbell wakeup */ in feat_enable_dbell()
559 mtspr(SPRN_LPCR, lpcr); in feat_enable_dbell()
566 u64 lpcr; in feat_enable_hvi() local
580 lpcr = mfspr(SPRN_LPCR); in feat_enable_hvi()
581 lpcr |= LPCR_HVICE; /* enable hvi interrupts */ in feat_enable_hvi()
582 lpcr |= LPCR_HEIC; /* disable ee interrupts when MSR_HV */ in feat_enable_hvi()
583 lpcr |= LPCR_PECE_HVEE; /* hvi can wake from stop */ in feat_enable_hvi()
584 mtspr(SPRN_LPCR, lpcr); in feat_enable_hvi()
783 system_registers.lpcr = mfspr(SPRN_LPCR); in cpufeatures_setup_finished()