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
220 lpcr = mfspr(SPRN_LPCR); in feat_enable_hv()
221 lpcr &= ~LPCR_LPES0; /* HV external interrupts */ in feat_enable_hv()
222 mtspr(SPRN_LPCR, lpcr); in feat_enable_hv()
244 u64 lpcr; in feat_enable_idle_nap() local
247 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_nap()
248 lpcr |= LPCR_PECE0; in feat_enable_idle_nap()
249 lpcr |= LPCR_PECE1; in feat_enable_idle_nap()
250 lpcr |= LPCR_PECE2; in feat_enable_idle_nap()
251 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_nap()
258 u64 lpcr; in feat_enable_idle_stop() local
261 lpcr = mfspr(SPRN_LPCR); in feat_enable_idle_stop()
262 lpcr |= LPCR_PECE0; in feat_enable_idle_stop()
263 lpcr |= LPCR_PECE1; in feat_enable_idle_stop()
264 lpcr |= LPCR_PECE2; in feat_enable_idle_stop()
265 mtspr(SPRN_LPCR, lpcr); in feat_enable_idle_stop()
272 u64 lpcr; in feat_enable_mmu_hash() local
274 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash()
275 lpcr &= ~LPCR_ISL; in feat_enable_mmu_hash()
278 lpcr |= LPCR_VPM0; in feat_enable_mmu_hash()
279 lpcr &= ~LPCR_VPM1; in feat_enable_mmu_hash()
280 lpcr |= 0x10UL << LPCR_VRMASD_SH; /* L=1 LP=00 */ in feat_enable_mmu_hash()
281 mtspr(SPRN_LPCR, lpcr); in feat_enable_mmu_hash()
291 u64 lpcr; in feat_enable_mmu_hash_v3() local
293 lpcr = mfspr(SPRN_LPCR); in feat_enable_mmu_hash_v3()
294 lpcr &= ~(LPCR_ISL | LPCR_UPRT | LPCR_HR); in feat_enable_mmu_hash_v3()
295 mtspr(SPRN_LPCR, lpcr); in feat_enable_mmu_hash_v3()
319 u64 lpcr; in feat_enable_dscr() local
331 lpcr = mfspr(SPRN_LPCR); in feat_enable_dscr()
332 lpcr &= ~LPCR_DPFD; in feat_enable_dscr()
333 lpcr |= (4UL << LPCR_DPFD_SH); in feat_enable_dscr()
334 mtspr(SPRN_LPCR, lpcr); in feat_enable_dscr()
523 u64 lpcr; in feat_enable_dbell() local
530 lpcr = mfspr(SPRN_LPCR); in feat_enable_dbell()
531 lpcr |= LPCR_PECEDH; /* hyp doorbell wakeup */ in feat_enable_dbell()
532 mtspr(SPRN_LPCR, lpcr); in feat_enable_dbell()
539 u64 lpcr; in feat_enable_hvi() local
553 lpcr = mfspr(SPRN_LPCR); in feat_enable_hvi()
554 lpcr |= LPCR_HVICE; /* enable hvi interrupts */ in feat_enable_hvi()
555 lpcr |= LPCR_HEIC; /* disable ee interrupts when MSR_HV */ in feat_enable_hvi()
556 lpcr |= LPCR_PECE_HVEE; /* hvi can wake from stop */ in feat_enable_hvi()
557 mtspr(SPRN_LPCR, lpcr); in feat_enable_hvi()
801 system_registers.lpcr = mfspr(SPRN_LPCR); in cpufeatures_setup_finished()