/Linux-v6.6/arch/powerpc/kernel/ |
D | dt_cpu_ftrs.c | 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() [all …]
|
D | cpu_setup_power.c | 29 static void init_LPCR_ISA300(u64 lpcr, u64 lpes) in init_LPCR_ISA300() argument 32 lpcr |= (lpes << LPCR_LPES_SH) & LPCR_LPES; in init_LPCR_ISA300() 33 lpcr |= LPCR_PECE0|LPCR_PECE1|LPCR_PECE2; in init_LPCR_ISA300() 34 lpcr |= (4ull << LPCR_DPFD_SH) & LPCR_DPFD; in init_LPCR_ISA300() 35 lpcr &= ~LPCR_HDICE; /* clear HDICE */ in init_LPCR_ISA300() 36 lpcr |= (4ull << LPCR_VC_SH); in init_LPCR_ISA300() 37 mtspr(SPRN_LPCR, lpcr); in init_LPCR_ISA300() 54 static void init_LPCR_ISA206(u64 lpcr, u64 lpes) in init_LPCR_ISA206() argument 56 lpcr |= (0x10ull << LPCR_VRMASD_SH) & LPCR_VRMASD; in init_LPCR_ISA206() 57 init_LPCR_ISA300(lpcr, lpes); in init_LPCR_ISA206()
|
D | setup_64.c | 276 unsigned long lpcr = mfspr(SPRN_LPCR); in cpu_ready_for_interrupts() local 277 unsigned long new_lpcr = lpcr; in cpu_ready_for_interrupts() 290 if (new_lpcr != lpcr) in cpu_ready_for_interrupts()
|
D | asm-offsets.c | 490 OFFSET(VCORE_LPCR, kvmppc_vcore, lpcr); in main()
|
/Linux-v6.6/arch/powerpc/kvm/ |
D | book3s_hv.c | 481 vcpu->arch.vcore->lpcr, vcpu->kvm->arch.sdr1, in kvmppc_dump_regs() 2104 unsigned long kvmppc_filter_lpcr_hv(struct kvm *kvm, unsigned long lpcr) in kvmppc_filter_lpcr_hv() argument 2108 lpcr &= ~LPCR_TC; in kvmppc_filter_lpcr_hv() 2112 lpcr &= ~LPCR_AIL; in kvmppc_filter_lpcr_hv() 2113 if ((lpcr & LPCR_AIL) != LPCR_AIL_3) in kvmppc_filter_lpcr_hv() 2114 lpcr &= ~LPCR_AIL; /* LPCR[AIL]=1/2 is disallowed */ in kvmppc_filter_lpcr_hv() 2122 lpcr &= ~LPCR_AIL; in kvmppc_filter_lpcr_hv() 2129 lpcr &= ~LPCR_LD; in kvmppc_filter_lpcr_hv() 2131 return lpcr; in kvmppc_filter_lpcr_hv() 2134 static void verify_lpcr(struct kvm *kvm, unsigned long lpcr) in verify_lpcr() argument [all …]
|
D | book3s_hv_builtin.c | 542 (vcpu->arch.vcore->lpcr & LPCR_AIL) == LPCR_AIL_3 && in inject_interrupt() 568 unsigned long lpcr; in kvmppc_guest_entry_inject_int() local 574 lpcr = mfspr(SPRN_LPCR); in kvmppc_guest_entry_inject_int() 575 lpcr |= ext << LPCR_MER_SH; in kvmppc_guest_entry_inject_int() 576 mtspr(SPRN_LPCR, lpcr); in kvmppc_guest_entry_inject_int() 584 if (!(lpcr & LPCR_LD)) in kvmppc_guest_entry_inject_int()
|
D | book3s_hv_p9_entry.c | 301 static void switch_mmu_to_guest_radix(struct kvm *kvm, struct kvm_vcpu *vcpu, u64 lpcr) in switch_mmu_to_guest_radix() argument 318 mtspr(SPRN_LPCR, lpcr); in switch_mmu_to_guest_radix() 326 static void switch_mmu_to_guest_hpt(struct kvm *kvm, struct kvm_vcpu *vcpu, u64 lpcr) in switch_mmu_to_guest_hpt() argument 343 mtspr(SPRN_LPCR, lpcr); in switch_mmu_to_guest_hpt() 356 u64 lpcr = kvm->arch.host_lpcr; in switch_mmu_to_host() local 368 mtspr(SPRN_LPCR, lpcr); in switch_mmu_to_host() 532 int kvmhv_vcpu_entry_p9(struct kvm_vcpu *vcpu, u64 time_limit, unsigned long lpcr, u64 *tb) in kvmhv_vcpu_entry_p9() argument 698 switch_mmu_to_guest_radix(kvm, vcpu, lpcr); in kvmhv_vcpu_entry_p9() 700 switch_mmu_to_guest_hpt(kvm, vcpu, lpcr); in kvmhv_vcpu_entry_p9() 846 if (!(lpcr & LPCR_LD)) /* Sign extend if not using large decrementer */ in kvmhv_vcpu_entry_p9()
|
D | book3s_hv_nested.c | 72 hr->lpcr = swab64(hr->lpcr); in byteswap_hv_regs() 255 const struct hv_guest_state *l1_hv, u64 *lpcr) in load_l2_hv_regs() argument 271 *lpcr = kvmppc_filter_lpcr_hv(vcpu->kvm, in load_l2_hv_regs() 272 (vc->lpcr & ~mask) | (*lpcr & mask)); in load_l2_hv_regs() 297 u64 hdec_exp, lpcr; in kvmhv_enter_nested_guest() local 372 lpcr = l2_hv.lpcr; in kvmhv_enter_nested_guest() 373 load_l2_hv_regs(vcpu, &l2_hv, &saved_l1_hv, &lpcr); in kvmhv_enter_nested_guest() 378 r = kvmhv_run_single_vcpu(vcpu, hdec_exp, lpcr); in kvmhv_enter_nested_guest()
|
D | book3s_64_mmu_hv.c | 1908 unsigned long senc, lpcr; in kvm_htab_write() local 1914 lpcr = senc << (LPCR_VRMASD_SH - 4); in kvm_htab_write() 1915 kvmppc_update_lpcr(kvm, lpcr, in kvm_htab_write()
|
/Linux-v6.6/drivers/rtc/ |
D | rtc-snvs.c | 137 u32 lpcr; in snvs_rtc_enable() local 143 regmap_read(data->regmap, data->offset + SNVS_LPCR, &lpcr); in snvs_rtc_enable() 146 if (lpcr & SNVS_LPCR_SRTC_ENV) in snvs_rtc_enable() 149 if (!(lpcr & SNVS_LPCR_SRTC_ENV)) in snvs_rtc_enable()
|
/Linux-v6.6/drivers/gpu/drm/imx/lcdc/ |
D | imx-lcdc.c | 144 u32 lpcr, lvcr, lhcr; in imx_lcdc_update_hw_registers() local 176 lpcr = readl(lcdc->base + IMX21LCDC_LPCR); in imx_lcdc_update_hw_registers() 177 lpcr &= ~IMX21LCDC_LPCR_BPIX; in imx_lcdc_update_hw_registers() 178 lpcr |= FIELD_PREP(IMX21LCDC_LPCR_BPIX, imx_lcdc_get_format(fb->format->format)); in imx_lcdc_update_hw_registers() 179 writel(lpcr, lcdc->base + IMX21LCDC_LPCR); in imx_lcdc_update_hw_registers()
|
/Linux-v6.6/arch/powerpc/include/asm/ |
D | kvm_book3s.h | 89 ulong lpcr; member 262 unsigned long lpcr); 263 extern void kvmppc_update_lpcr(struct kvm *kvm, unsigned long lpcr, 311 u64 time_limit, unsigned long lpcr);
|
D | pnv-ocxl.h | 79 uint64_t lpcr, void __iomem **arva);
|
D | hvcall.h | 589 u64 lpcr; member
|
D | kvm_book3s_64.h | 145 int kvmhv_vcpu_entry_p9(struct kvm_vcpu *vcpu, u64 time_limit, unsigned long lpcr, u64 *tb);
|
D | kvm_host.h | 290 unsigned long lpcr; member
|
D | opal.h | 32 uint64_t lpcr);
|
/Linux-v6.6/arch/powerpc/mm/book3s64/ |
D | radix_pgtable.c | 532 unsigned long lpcr; in radix__early_init_mmu() local 578 lpcr = mfspr(SPRN_LPCR); in radix__early_init_mmu() 579 mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR); in radix__early_init_mmu() 594 unsigned long lpcr; in radix__early_init_mmu_secondary() local 599 lpcr = mfspr(SPRN_LPCR); in radix__early_init_mmu_secondary() 600 mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR); in radix__early_init_mmu_secondary() 616 unsigned long lpcr; in radix__mmu_cleanup_all() local 619 lpcr = mfspr(SPRN_LPCR); in radix__mmu_cleanup_all() 620 mtspr(SPRN_LPCR, lpcr & ~LPCR_UPRT); in radix__mmu_cleanup_all()
|
/Linux-v6.6/arch/powerpc/platforms/powernv/ |
D | idle.c | 299 u64 lpcr; member 349 sprs.lpcr = mfspr(SPRN_LPCR); in power7_idle_insn() 483 mtspr(SPRN_LPCR, sprs.lpcr); in power7_idle_insn() 587 u64 lpcr; member 664 sprs.lpcr = mfspr(SPRN_LPCR); in power9_idle_stop() 780 mtspr(SPRN_LPCR, sprs.lpcr); in power9_idle_stop()
|
D | ocxl.c | 487 uint64_t lpcr, void __iomem **arva) in pnv_ocxl_map_lpar() argument 509 lparid, lpcr); in pnv_ocxl_map_lpar()
|
D | vas-window.c | 276 u64 lpcr, val; in init_xlate_regs() local 291 lpcr = mfspr(SPRN_LPCR); in init_xlate_regs() 301 val = SET_FIELD(VAS_XLATE_LPCR_ISL, val, lpcr & LPCR_ISL); in init_xlate_regs() 302 val = SET_FIELD(VAS_XLATE_LPCR_TC, val, lpcr & LPCR_TC); in init_xlate_regs()
|