Lines Matching refs:lpcr

70 	u64	lpcr;  member
80 mtspr(SPRN_LPCR, system_registers.lpcr); in __restore_cpu_cpufeatures()
211 u64 lpcr; in feat_enable_hv() local
221 lpcr = mfspr(SPRN_LPCR); in feat_enable_hv()
222 lpcr &= ~LPCR_LPES0; /* HV external interrupts */ in feat_enable_hv()
223 mtspr(SPRN_LPCR, lpcr); in feat_enable_hv()
245 u64 lpcr; in feat_enable_idle_nap() local
248 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_nap()
249 lpcr |= LPCR_PECE0; in feat_enable_idle_nap()
250 lpcr |= LPCR_PECE1; in feat_enable_idle_nap()
251 lpcr |= LPCR_PECE2; in feat_enable_idle_nap()
252 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_nap()
259 u64 lpcr; in feat_enable_idle_stop() local
262 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_stop()
263 lpcr |= LPCR_PECE0; in feat_enable_idle_stop()
264 lpcr |= LPCR_PECE1; in feat_enable_idle_stop()
265 lpcr |= LPCR_PECE2; in feat_enable_idle_stop()
266 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_stop()
273 u64 lpcr; in feat_enable_mmu_hash() local
278 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash()
279 lpcr &= ~LPCR_ISL; in feat_enable_mmu_hash()
282 lpcr |= LPCR_VPM0; in feat_enable_mmu_hash()
283 lpcr &= ~LPCR_VPM1; in feat_enable_mmu_hash()
284 lpcr |= 0x10UL << LPCR_VRMASD_SH; /* L=1 LP=00 */ in feat_enable_mmu_hash()
285 mtspr(SPRN_LPCR, lpcr); in feat_enable_mmu_hash()
295 u64 lpcr; in feat_enable_mmu_hash_v3() local
300 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash_v3()
301 lpcr &= ~(LPCR_ISL | LPCR_UPRT | LPCR_HR); in feat_enable_mmu_hash_v3()
302 mtspr(SPRN_LPCR, lpcr); in feat_enable_mmu_hash_v3()
326 u64 lpcr; in feat_enable_dscr() local
338 lpcr = mfspr(SPRN_LPCR); in feat_enable_dscr()
339 lpcr &= ~LPCR_DPFD; in feat_enable_dscr()
340 lpcr |= (4UL << LPCR_DPFD_SH); in feat_enable_dscr()
341 mtspr(SPRN_LPCR, lpcr); in feat_enable_dscr()
527 u64 lpcr; in feat_enable_dbell() local
534 lpcr = mfspr(SPRN_LPCR); in feat_enable_dbell()
535 lpcr |= LPCR_PECEDH; /* hyp doorbell wakeup */ in feat_enable_dbell()
536 mtspr(SPRN_LPCR, lpcr); in feat_enable_dbell()
543 u64 lpcr; in feat_enable_hvi() local
557 lpcr = mfspr(SPRN_LPCR); in feat_enable_hvi()
558 lpcr |= LPCR_HVICE; /* enable hvi interrupts */ in feat_enable_hvi()
559 lpcr |= LPCR_HEIC; /* disable ee interrupts when MSR_HV */ in feat_enable_hvi()
560 lpcr |= LPCR_PECE_HVEE; /* hvi can wake from stop */ in feat_enable_hvi()
561 mtspr(SPRN_LPCR, lpcr); in feat_enable_hvi()
811 system_registers.lpcr = mfspr(SPRN_LPCR); in cpufeatures_setup_finished()