/linux/arch/powerpc/kernel/ |
A D | dt_cpu_ftrs.c | 70 u64 lpcr; member 211 u64 lpcr; in feat_enable_hv() local 244 u64 lpcr; in feat_enable_idle_nap() local 258 u64 lpcr; in feat_enable_idle_stop() local 272 u64 lpcr; in feat_enable_mmu_hash() local 275 lpcr &= ~LPCR_ISL; in feat_enable_mmu_hash() 278 lpcr |= LPCR_VPM0; in feat_enable_mmu_hash() 291 u64 lpcr; in feat_enable_mmu_hash_v3() local 319 u64 lpcr; in feat_enable_dscr() local 523 u64 lpcr; in feat_enable_dbell() local [all …]
|
A 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()
|
A D | setup_64.c | 236 unsigned long lpcr = mfspr(SPRN_LPCR); in cpu_ready_for_interrupts() local 237 unsigned long new_lpcr = lpcr; in cpu_ready_for_interrupts() 250 if (new_lpcr != lpcr) in cpu_ready_for_interrupts()
|
A D | asm-offsets.c | 495 OFFSET(VCORE_LPCR, kvmppc_vcore, lpcr); in main()
|
/linux/arch/powerpc/kvm/ |
A D | book3s_hv.c | 1931 lpcr &= ~LPCR_TC; in kvmppc_filter_lpcr_hv() 1954 return lpcr; in kvmppc_filter_lpcr_hv() 1959 if (lpcr != kvmppc_filter_lpcr_hv(kvm, lpcr)) { in verify_lpcr() 1961 lpcr, kvmppc_filter_lpcr_hv(kvm, lpcr)); in verify_lpcr() 2543 vcore->lpcr = kvm->arch.lpcr; in kvmppc_vcore_create() 3956 hvregs.lpcr = lpcr; in kvmhv_p9_guest_entry() 4939 if ((kvm->arch.lpcr & mask) == lpcr) in kvmppc_update_lpcr() 4942 kvm->arch.lpcr = (kvm->arch.lpcr & ~mask) | lpcr; in kvmppc_update_lpcr() 4950 vc->lpcr = (vc->lpcr & ~mask) | lpcr; in kvmppc_update_lpcr() 5235 lpcr = 0; in kvmppc_core_init_vm_hv() [all …]
|
A D | book3s_hv_builtin.c | 624 (vcpu->arch.vcore->lpcr & LPCR_AIL) == LPCR_AIL_3 && in inject_interrupt() 650 unsigned long lpcr; in kvmppc_guest_entry_inject_int() local 654 lpcr = mfspr(SPRN_LPCR); in kvmppc_guest_entry_inject_int() 655 lpcr |= ext << LPCR_MER_SH; in kvmppc_guest_entry_inject_int() 656 mtspr(SPRN_LPCR, lpcr); in kvmppc_guest_entry_inject_int() 664 if (!(lpcr & LPCR_LD)) in kvmppc_guest_entry_inject_int()
|
A D | book3s_hv_p9_entry.c | 95 static void switch_mmu_to_guest_radix(struct kvm *kvm, struct kvm_vcpu *vcpu, u64 lpcr) in switch_mmu_to_guest_radix() argument 110 mtspr(SPRN_LPCR, lpcr); in switch_mmu_to_guest_radix() 116 static void switch_mmu_to_guest_hpt(struct kvm *kvm, struct kvm_vcpu *vcpu, u64 lpcr) in switch_mmu_to_guest_hpt() argument 124 mtspr(SPRN_LPCR, lpcr); in switch_mmu_to_guest_hpt() 186 int kvmhv_vcpu_entry_p9(struct kvm_vcpu *vcpu, u64 time_limit, unsigned long lpcr) in kvmhv_vcpu_entry_p9() argument 303 switch_mmu_to_guest_radix(kvm, vcpu, lpcr); in kvmhv_vcpu_entry_p9() 308 switch_mmu_to_guest_hpt(kvm, vcpu, lpcr); in kvmhv_vcpu_entry_p9()
|
A D | book3s_hv_nested.c | 71 hr->lpcr = swab64(hr->lpcr); in byteswap_hv_regs() 254 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 371 lpcr = l2_hv.lpcr; in kvmhv_enter_nested_guest() 372 load_l2_hv_regs(vcpu, &l2_hv, &saved_l1_hv, &lpcr); in kvmhv_enter_nested_guest() 382 r = kvmhv_run_single_vcpu(vcpu, hdec_exp, lpcr); in kvmhv_enter_nested_guest()
|
A D | book3s_64_mmu_hv.c | 1887 unsigned long senc, lpcr; in kvm_htab_write() local 1893 lpcr = senc << (LPCR_VRMASD_SH - 4); in kvm_htab_write() 1894 kvmppc_update_lpcr(kvm, lpcr, in kvm_htab_write()
|
/linux/arch/powerpc/mm/book3s64/ |
A D | radix_pgtable.c | 589 unsigned long lpcr; in radix__early_init_mmu() local 644 lpcr = mfspr(SPRN_LPCR); in radix__early_init_mmu() 645 mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR); in radix__early_init_mmu() 661 unsigned long lpcr; in radix__early_init_mmu_secondary() local 666 lpcr = mfspr(SPRN_LPCR); in radix__early_init_mmu_secondary() 667 mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR); in radix__early_init_mmu_secondary() 685 unsigned long lpcr; in radix__mmu_cleanup_all() local 688 lpcr = mfspr(SPRN_LPCR); in radix__mmu_cleanup_all() 689 mtspr(SPRN_LPCR, lpcr & ~LPCR_UPRT); in radix__mmu_cleanup_all()
|
/linux/drivers/rtc/ |
A D | rtc-snvs.c | 125 u32 lpcr; in snvs_rtc_enable() local 131 regmap_read(data->regmap, data->offset + SNVS_LPCR, &lpcr); in snvs_rtc_enable() 134 if (lpcr & SNVS_LPCR_SRTC_ENV) in snvs_rtc_enable() 137 if (!(lpcr & SNVS_LPCR_SRTC_ENV)) in snvs_rtc_enable()
|
/linux/arch/powerpc/include/asm/ |
A D | kvm_book3s.h | 89 ulong lpcr; member 262 unsigned long lpcr); 263 extern void kvmppc_update_lpcr(struct kvm *kvm, unsigned long lpcr, 314 u64 time_limit, unsigned long lpcr);
|
A D | pnv-ocxl.h | 79 uint64_t lpcr, void __iomem **arva);
|
A D | hvcall.h | 562 u64 lpcr; member
|
A D | kvm_book3s_64.h | 157 int kvmhv_vcpu_entry_p9(struct kvm_vcpu *vcpu, u64 time_limit, unsigned long lpcr);
|
A D | kvm_host.h | 283 unsigned long lpcr; member
|
A D | opal.h | 32 uint64_t lpcr);
|
/linux/arch/powerpc/platforms/powernv/ |
A D | idle.c | 298 u64 lpcr; member 348 sprs.lpcr = mfspr(SPRN_LPCR); in power7_idle_insn() 483 mtspr(SPRN_LPCR, sprs.lpcr); in power7_idle_insn() 585 u64 lpcr; member 663 sprs.lpcr = mfspr(SPRN_LPCR); in power9_idle_stop() 780 mtspr(SPRN_LPCR, sprs.lpcr); in power9_idle_stop()
|
A D | ocxl.c | 489 uint64_t lpcr, void __iomem **arva) in pnv_ocxl_map_lpar() argument 511 lparid, lpcr); in pnv_ocxl_map_lpar()
|
A 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()
|