Lines Matching refs:lpcr

71 	u64	lpcr;  member
82 u64 lpcr; in __restore_cpu_cpufeatures() local
96 lpcr = mfspr(SPRN_LPCR); in __restore_cpu_cpufeatures()
97 lpcr |= system_registers.lpcr; in __restore_cpu_cpufeatures()
98 lpcr &= ~system_registers.lpcr_clear; in __restore_cpu_cpufeatures()
99 mtspr(SPRN_LPCR, lpcr); in __restore_cpu_cpufeatures()
231 u64 lpcr; in feat_enable_hv() local
240 lpcr = mfspr(SPRN_LPCR); in feat_enable_hv()
241 lpcr &= ~LPCR_LPES0; /* HV external interrupts */ in feat_enable_hv()
242 mtspr(SPRN_LPCR, lpcr); in feat_enable_hv()
264 u64 lpcr; in feat_enable_idle_nap() local
267 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_nap()
268 lpcr |= LPCR_PECE0; in feat_enable_idle_nap()
269 lpcr |= LPCR_PECE1; in feat_enable_idle_nap()
270 lpcr |= LPCR_PECE2; in feat_enable_idle_nap()
271 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_nap()
285 u64 lpcr; in feat_enable_idle_stop() local
288 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_stop()
289 lpcr |= LPCR_PECE0; in feat_enable_idle_stop()
290 lpcr |= LPCR_PECE1; in feat_enable_idle_stop()
291 lpcr |= LPCR_PECE2; in feat_enable_idle_stop()
292 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_stop()
299 u64 lpcr; in feat_enable_mmu_hash() local
301 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash()
302 lpcr &= ~LPCR_ISL; in feat_enable_mmu_hash()
305 lpcr |= LPCR_VPM0; in feat_enable_mmu_hash()
306 lpcr &= ~LPCR_VPM1; in feat_enable_mmu_hash()
307 lpcr |= 0x10UL << LPCR_VRMASD_SH; /* L=1 LP=00 */ in feat_enable_mmu_hash()
308 mtspr(SPRN_LPCR, lpcr); in feat_enable_mmu_hash()
318 u64 lpcr; in feat_enable_mmu_hash_v3() local
321 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash_v3()
322 lpcr &= ~(LPCR_ISL | LPCR_UPRT | LPCR_HR); in feat_enable_mmu_hash_v3()
323 mtspr(SPRN_LPCR, lpcr); in feat_enable_mmu_hash_v3()
347 u64 lpcr; in feat_enable_dscr() local
359 lpcr = mfspr(SPRN_LPCR); in feat_enable_dscr()
360 lpcr &= ~LPCR_DPFD; in feat_enable_dscr()
361 lpcr |= (4UL << LPCR_DPFD_SH); in feat_enable_dscr()
362 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()
828 system_registers.lpcr = mfspr(SPRN_LPCR); in cpufeatures_setup_finished()