/linux-master/arch/powerpc/kernel/ |
H A D | dt_cpu_ftrs.c | 70 u64 lpcr; member in struct:__anon38 80 mtspr(SPRN_LPCR, system_registers.lpcr); 211 u64 lpcr; local 221 lpcr = mfspr(SPRN_LPCR); 222 lpcr &= ~LPCR_LPES0; /* HV external interrupts */ 223 mtspr(SPRN_LPCR, lpcr); 245 u64 lpcr; local 248 lpcr = mfspr(SPRN_LPCR); 249 lpcr |= LPCR_PECE0; 250 lpcr | 259 u64 lpcr; local 273 u64 lpcr; local 295 u64 lpcr; local 326 u64 lpcr; local 535 u64 lpcr; local 551 u64 lpcr; local [all...] |
H A D | cpu_setup_power.c | 29 static void init_LPCR_ISA300(u64 lpcr, u64 lpes) argument 32 lpcr |= (lpes << LPCR_LPES_SH) & LPCR_LPES; 33 lpcr |= LPCR_PECE0|LPCR_PECE1|LPCR_PECE2; 34 lpcr |= (4ull << LPCR_DPFD_SH) & LPCR_DPFD; 35 lpcr &= ~LPCR_HDICE; /* clear HDICE */ 36 lpcr |= (4ull << LPCR_VC_SH); 37 mtspr(SPRN_LPCR, lpcr); 54 static void init_LPCR_ISA206(u64 lpcr, u64 lpes) argument 56 lpcr |= (0x10ull << LPCR_VRMASD_SH) & LPCR_VRMASD; 57 init_LPCR_ISA300(lpcr, lpe [all...] |
H A D | setup_64.c | 276 unsigned long lpcr = mfspr(SPRN_LPCR); local 277 unsigned long new_lpcr = lpcr; 290 if (new_lpcr != lpcr)
|
H A D | asm-offsets.c | 488 OFFSET(VCORE_LPCR, kvmppc_vcore, lpcr);
|
/linux-master/arch/powerpc/include/asm/ |
H A D | pnv-ocxl.h | 79 uint64_t lpcr, void __iomem **arva);
|
H A D | kvm_book3s.h | 90 ulong lpcr; member in struct:kvmppc_vcore 263 unsigned long lpcr); 264 extern void kvmppc_update_lpcr(struct kvm *kvm, unsigned long lpcr, 314 u64 time_limit, unsigned long lpcr); 598 KVMPPC_BOOK3S_VCORE_ACCESSOR_GET(lpcr, 64, KVMPPC_GSID_LPCR)
|
H A D | hvcall.h | 619 u64 lpcr; member in struct:hv_guest_state
|
H A D | kvm_book3s_64.h | 145 int kvmhv_vcpu_entry_p9(struct kvm_vcpu *vcpu, u64 time_limit, unsigned long lpcr, u64 *tb);
|
H A D | kvm_host.h | 289 unsigned long lpcr; member in struct:kvm_arch
|
H A D | opal.h | 32 uint64_t lpcr);
|
/linux-master/arch/powerpc/kvm/ |
H A D | book3s_hv.c | 511 pr_err("lpcr = %.16lx sdr1 = %.16lx last_inst = %.16lx\n", 512 vcpu->arch.vcore->lpcr, vcpu->kvm->arch.sdr1, 2159 unsigned long kvmppc_filter_lpcr_hv(struct kvm *kvm, unsigned long lpcr) argument 2163 lpcr &= ~LPCR_TC; 2167 lpcr &= ~LPCR_AIL; 2168 if ((lpcr & LPCR_AIL) != LPCR_AIL_3) 2169 lpcr &= ~LPCR_AIL; /* LPCR[AIL]=1/2 is disallowed */ 2177 lpcr &= ~LPCR_AIL; 2184 lpcr &= ~LPCR_LD; 2186 return lpcr; 2189 verify_lpcr(struct kvm *kvm, unsigned long lpcr) argument 4111 kvmhv_vcpu_entry_nestedv2(struct kvm_vcpu *vcpu, u64 time_limit, unsigned long lpcr, u64 *tb) argument 4163 kvmhv_vcpu_entry_p9_nested(struct kvm_vcpu *vcpu, u64 time_limit, unsigned long lpcr, u64 *tb) argument 4258 kvmhv_p9_guest_entry(struct kvm_vcpu *vcpu, u64 time_limit, unsigned long lpcr, u64 *tb) argument 4712 kvmhv_run_single_vcpu(struct kvm_vcpu *vcpu, u64 time_limit, unsigned long lpcr) argument 5246 kvmppc_update_lpcr(struct kvm *kvm, unsigned long lpcr, unsigned long mask) argument 5310 unsigned long lpcr = 0, senc; local 5395 unsigned long lpcr, lpcr_mask; local 5422 unsigned long lpcr, lpcr_mask; local 5533 unsigned long lpcr, lpid; local 6093 unsigned long lpcr; local [all...] |
H A D | book3s_hv_builtin.c | 547 (vcpu->arch.vcore->lpcr & LPCR_AIL) == LPCR_AIL_3 && 573 unsigned long lpcr; local 579 lpcr = mfspr(SPRN_LPCR); 580 lpcr |= ext << LPCR_MER_SH; 581 mtspr(SPRN_LPCR, lpcr); 589 if (!(lpcr & LPCR_LD))
|
H A D | book3s_hv_p9_entry.c | 301 static void switch_mmu_to_guest_radix(struct kvm *kvm, struct kvm_vcpu *vcpu, u64 lpcr) argument 318 mtspr(SPRN_LPCR, lpcr); 326 static void switch_mmu_to_guest_hpt(struct kvm *kvm, struct kvm_vcpu *vcpu, u64 lpcr) argument 343 mtspr(SPRN_LPCR, lpcr); 356 u64 lpcr = kvm->arch.host_lpcr; local 368 mtspr(SPRN_LPCR, lpcr); 532 int kvmhv_vcpu_entry_p9(struct kvm_vcpu *vcpu, u64 time_limit, unsigned long lpcr, u64 *tb) argument 698 switch_mmu_to_guest_radix(kvm, vcpu, lpcr); 700 switch_mmu_to_guest_hpt(kvm, vcpu, lpcr); 846 if (!(lpcr [all...] |
H A D | book3s_hv_nested.c | 72 hr->lpcr = swab64(hr->lpcr); 255 const struct hv_guest_state *l1_hv, u64 *lpcr) 271 *lpcr = kvmppc_filter_lpcr_hv(vcpu->kvm, 272 (vc->lpcr & ~mask) | (*lpcr & mask)); 297 u64 hdec_exp, lpcr; local 372 lpcr = l2_hv.lpcr; 373 load_l2_hv_regs(vcpu, &l2_hv, &saved_l1_hv, &lpcr); 253 load_l2_hv_regs(struct kvm_vcpu *vcpu, const struct hv_guest_state *l2_hv, const struct hv_guest_state *l1_hv, u64 *lpcr) argument [all...] |
H A D | book3s_hv_nestedv2.c | 316 vcpu->arch.vcore->lpcr); 547 vcpu->arch.vcore->lpcr = kvmppc_gse_get_u64(gse);
|
H A D | book3s_64_mmu_hv.c | 1909 unsigned long senc, lpcr; local 1915 lpcr = senc << (LPCR_VRMASD_SH - 4); 1916 kvmppc_update_lpcr(kvm, lpcr,
|
/linux-master/drivers/rtc/ |
H A D | rtc-snvs.c | 137 u32 lpcr; local 143 regmap_read(data->regmap, data->offset + SNVS_LPCR, &lpcr); 146 if (lpcr & SNVS_LPCR_SRTC_ENV) 149 if (!(lpcr & SNVS_LPCR_SRTC_ENV))
|
/linux-master/drivers/gpu/drm/imx/lcdc/ |
H A D | imx-lcdc.c | 144 u32 lpcr, lvcr, lhcr; local 176 lpcr = readl(lcdc->base + IMX21LCDC_LPCR); 177 lpcr &= ~IMX21LCDC_LPCR_BPIX; 178 lpcr |= FIELD_PREP(IMX21LCDC_LPCR_BPIX, imx_lcdc_get_format(fb->format->format)); 179 writel(lpcr, lcdc->base + IMX21LCDC_LPCR);
|
/linux-master/arch/powerpc/mm/book3s64/ |
H A D | radix_pgtable.c | 532 unsigned long lpcr; local 578 lpcr = mfspr(SPRN_LPCR); 579 mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR); 594 unsigned long lpcr; local 599 lpcr = mfspr(SPRN_LPCR); 600 mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR); 616 unsigned long lpcr; local 619 lpcr = mfspr(SPRN_LPCR); 620 mtspr(SPRN_LPCR, lpcr & ~LPCR_UPRT);
|
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | idle.c | 70 * hid0, hid1, hid4, hid5, hmeer and lpcr values are symmetric across 299 u64 lpcr; member in struct:p7_sprs 349 sprs.lpcr = mfspr(SPRN_LPCR); 483 mtspr(SPRN_LPCR, sprs.lpcr); 587 u64 lpcr; member in struct:p9_sprs 664 sprs.lpcr = mfspr(SPRN_LPCR); 780 mtspr(SPRN_LPCR, sprs.lpcr);
|
H A D | ocxl.c | 487 uint64_t lpcr, void __iomem **arva) 509 lparid, lpcr); 486 pnv_ocxl_map_lpar(struct pci_dev *dev, uint64_t lparid, uint64_t lpcr, void __iomem **arva) argument
|
H A D | vas-window.c | 276 u64 lpcr, val; local 291 lpcr = mfspr(SPRN_LPCR); 301 val = SET_FIELD(VAS_XLATE_LPCR_ISL, val, lpcr & LPCR_ISL); 302 val = SET_FIELD(VAS_XLATE_LPCR_TC, val, lpcr & LPCR_TC);
|