Home
last modified time | relevance | path

Searched refs:lpcr (Results 1 – 13 of 13) sorted by relevance

/linux/arch/powerpc/kernel/
H A Ddt_cpu_ftrs.c71 u64 lpcr; member
81 mtspr(SPRN_LPCR, system_registers.lpcr); in __restore_cpu_cpufeatures()
210 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()
[all …]
H A Dsetup_64.c273 unsigned long lpcr = mfspr(SPRN_LPCR); in cpu_ready_for_interrupts() local
274 unsigned long new_lpcr = lpcr; in cpu_ready_for_interrupts()
287 if (new_lpcr != lpcr) in cpu_ready_for_interrupts()
/linux/arch/powerpc/kvm/
H A Dbook3s_hv.c531 pr_err("lpcr = %.16lx sdr1 = %.16lx last_inst = %.16lx\n", in kvmppc_dump_regs()
532 vcpu->arch.vcore->lpcr, vcpu->kvm->arch.sdr1, in kvmppc_dump_regs()
2160 unsigned long kvmppc_filter_lpcr_hv(struct kvm *kvm, unsigned long lpcr) in kvmppc_filter_lpcr_hv() argument
2164 lpcr &= ~LPCR_TC; in kvmppc_filter_lpcr_hv()
2168 lpcr &= ~LPCR_AIL; in kvmppc_filter_lpcr_hv()
2169 if ((lpcr & LPCR_AIL) != LPCR_AIL_3) in kvmppc_filter_lpcr_hv()
2170 lpcr &= ~LPCR_AIL; /* LPCR[AIL]=1/2 is disallowed */ in kvmppc_filter_lpcr_hv()
2178 lpcr &= ~LPCR_AIL; in kvmppc_filter_lpcr_hv()
2185 lpcr &= ~LPCR_LD; in kvmppc_filter_lpcr_hv()
2187 return lpcr; in kvmppc_filter_lpcr_hv()
2190 verify_lpcr(struct kvm * kvm,unsigned long lpcr) verify_lpcr() argument
4268 kvmhv_vcpu_entry_nestedv2(struct kvm_vcpu * vcpu,u64 time_limit,unsigned long lpcr,u64 * tb) kvmhv_vcpu_entry_nestedv2() argument
4328 kvmhv_vcpu_entry_p9_nested(struct kvm_vcpu * vcpu,u64 time_limit,unsigned long lpcr,u64 * tb) kvmhv_vcpu_entry_p9_nested() argument
4433 kvmhv_p9_guest_entry(struct kvm_vcpu * vcpu,u64 time_limit,unsigned long lpcr,u64 * tb) kvmhv_p9_guest_entry() argument
4893 kvmhv_run_single_vcpu(struct kvm_vcpu * vcpu,u64 time_limit,unsigned long lpcr) kvmhv_run_single_vcpu() argument
5441 kvmppc_update_lpcr(struct kvm * kvm,unsigned long lpcr,unsigned long mask) kvmppc_update_lpcr() argument
5505 unsigned long lpcr = 0, senc; kvmppc_hv_setup_htab_rma() local
5590 unsigned long lpcr, lpcr_mask; kvmppc_switch_mmu_to_hpt() local
5617 unsigned long lpcr, lpcr_mask; kvmppc_switch_mmu_to_radix() local
5728 unsigned long lpcr, lpid; kvmppc_core_init_vm_hv() local
6288 unsigned long lpcr; kvmhv_configure_mmu() local
[all...]
H A Dbook3s_hv_builtin.c547 (vcpu->arch.vcore->lpcr & LPCR_AIL) == LPCR_AIL_3 && in inject_interrupt()
573 unsigned long lpcr; in kvmppc_guest_entry_inject_int() local
579 lpcr = mfspr(SPRN_LPCR); in kvmppc_guest_entry_inject_int()
580 lpcr |= ext << LPCR_MER_SH; in kvmppc_guest_entry_inject_int()
581 mtspr(SPRN_LPCR, lpcr); in kvmppc_guest_entry_inject_int()
589 if (!(lpcr & LPCR_LD)) in kvmppc_guest_entry_inject_int()
H A Dbook3s_hv_p9_entry.c301 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()
H A Dbook3s_hv_nested.c72 hr->lpcr = swab64(hr->lpcr); in byteswap_hv_regs()
261 const struct hv_guest_state *l1_hv, u64 *lpcr) in load_l2_hv_regs() argument
277 *lpcr = kvmppc_filter_lpcr_hv(vcpu->kvm, in load_l2_hv_regs()
278 (vc->lpcr & ~mask) | (*lpcr & mask)); in load_l2_hv_regs()
303 u64 hdec_exp, lpcr; in kvmhv_enter_nested_guest() local
378 lpcr = l2_hv.lpcr; in kvmhv_enter_nested_guest()
379 load_l2_hv_regs(vcpu, &l2_hv, &saved_l1_hv, &lpcr); in kvmhv_enter_nested_guest()
384 r = kvmhv_run_single_vcpu(vcpu, hdec_exp, lpcr); in kvmhv_enter_nested_guest()
H A Dbook3s_64_mmu_hv.c1880 unsigned long senc, lpcr; in kvm_htab_write() local
1886 lpcr = senc << (LPCR_VRMASD_SH - 4); in kvm_htab_write()
1887 kvmppc_update_lpcr(kvm, lpcr, in kvm_htab_write()
/linux/drivers/rtc/
H A Drtc-snvs.c137 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/drivers/gpu/drm/imx/lcdc/
H A Dimx-lcdc.c145 u32 lpcr, lvcr, lhcr; in imx_lcdc_update_hw_registers() local
177 lpcr = readl(lcdc->base + IMX21LCDC_LPCR); in imx_lcdc_update_hw_registers()
178 lpcr &= ~IMX21LCDC_LPCR_BPIX; in imx_lcdc_update_hw_registers()
179 lpcr |= FIELD_PREP(IMX21LCDC_LPCR_BPIX, imx_lcdc_get_format(fb->format->format)); in imx_lcdc_update_hw_registers()
180 writel(lpcr, lcdc->base + IMX21LCDC_LPCR); in imx_lcdc_update_hw_registers()
/linux/arch/powerpc/include/asm/
H A Dpnv-ocxl.h79 uint64_t lpcr, void __iomem **arva);
H A Dopal.h32 uint64_t lpcr);
/linux/arch/powerpc/platforms/powernv/
H A Docxl.c481 uint64_t lpcr, void __iomem **arva) in pnv_ocxl_map_lpar() argument
503 lparid, lpcr); in pnv_ocxl_map_lpar()
H A Dvas-window.c276 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()