Home
last modified time | relevance | path

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

/arch/powerpc/kernel/
Ddt_cpu_ftrs.c70 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()
[all …]
Dcpu_setup_power.c29 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()
Dsetup_64.c236 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()
Dasm-offsets.c497 OFFSET(VCORE_LPCR, kvmppc_vcore, lpcr); in main()
/arch/powerpc/kvm/
Dbook3s_hv_builtin.c625 (vcpu->arch.vcore->lpcr & LPCR_AIL) == LPCR_AIL_3 && in inject_interrupt()
651 unsigned long lpcr; in kvmppc_guest_entry_inject_int() local
655 lpcr = mfspr(SPRN_LPCR); in kvmppc_guest_entry_inject_int()
656 lpcr |= ext << LPCR_MER_SH; in kvmppc_guest_entry_inject_int()
657 mtspr(SPRN_LPCR, lpcr); in kvmppc_guest_entry_inject_int()
665 if (!(lpcr & LPCR_LD)) in kvmppc_guest_entry_inject_int()
Dbook3s_hv_p9_entry.c86 static void switch_mmu_to_guest_radix(struct kvm *kvm, struct kvm_vcpu *vcpu, u64 lpcr) in switch_mmu_to_guest_radix() argument
101 mtspr(SPRN_LPCR, lpcr); in switch_mmu_to_guest_radix()
107 static void switch_mmu_to_guest_hpt(struct kvm *kvm, struct kvm_vcpu *vcpu, u64 lpcr) in switch_mmu_to_guest_hpt() argument
115 mtspr(SPRN_LPCR, lpcr); in switch_mmu_to_guest_hpt()
177 int kvmhv_vcpu_entry_p9(struct kvm_vcpu *vcpu, u64 time_limit, unsigned long lpcr) in kvmhv_vcpu_entry_p9() argument
294 switch_mmu_to_guest_radix(kvm, vcpu, lpcr); in kvmhv_vcpu_entry_p9()
299 switch_mmu_to_guest_hpt(kvm, vcpu, lpcr); in kvmhv_vcpu_entry_p9()
Dbook3s_hv.c432 vcpu->arch.vcore->lpcr, vcpu->kvm->arch.sdr1, in kvmppc_dump_regs()
1926 unsigned long kvmppc_filter_lpcr_hv(struct kvm *kvm, unsigned long lpcr) in kvmppc_filter_lpcr_hv() argument
1930 lpcr &= ~LPCR_TC; in kvmppc_filter_lpcr_hv()
1934 lpcr &= ~LPCR_AIL; in kvmppc_filter_lpcr_hv()
1935 if ((lpcr & LPCR_AIL) != LPCR_AIL_3) in kvmppc_filter_lpcr_hv()
1936 lpcr &= ~LPCR_AIL; /* LPCR[AIL]=1/2 is disallowed */ in kvmppc_filter_lpcr_hv()
1944 lpcr &= ~LPCR_AIL; in kvmppc_filter_lpcr_hv()
1951 lpcr &= ~LPCR_LD; in kvmppc_filter_lpcr_hv()
1953 return lpcr; in kvmppc_filter_lpcr_hv()
1956 static void verify_lpcr(struct kvm *kvm, unsigned long lpcr) in verify_lpcr() argument
[all …]
Dbook3s_hv_nested.c71 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
270 *lpcr = kvmppc_filter_lpcr_hv(vcpu->kvm, in load_l2_hv_regs()
271 (vc->lpcr & ~mask) | (*lpcr & mask)); in load_l2_hv_regs()
296 u64 hdec_exp, lpcr; in kvmhv_enter_nested_guest() local
370 lpcr = l2_hv.lpcr; in kvmhv_enter_nested_guest()
371 load_l2_hv_regs(vcpu, &l2_hv, &saved_l1_hv, &lpcr); in kvmhv_enter_nested_guest()
381 r = kvmhv_run_single_vcpu(vcpu, hdec_exp, lpcr); in kvmhv_enter_nested_guest()
Dbook3s_64_mmu_hv.c1887 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()
/arch/powerpc/mm/book3s64/
Dradix_pgtable.c613 unsigned long lpcr; in radix__early_init_mmu() local
668 lpcr = mfspr(SPRN_LPCR); in radix__early_init_mmu()
669 mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR); in radix__early_init_mmu()
685 unsigned long lpcr; in radix__early_init_mmu_secondary() local
690 lpcr = mfspr(SPRN_LPCR); in radix__early_init_mmu_secondary()
691 mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR); in radix__early_init_mmu_secondary()
709 unsigned long lpcr; in radix__mmu_cleanup_all() local
712 lpcr = mfspr(SPRN_LPCR); in radix__mmu_cleanup_all()
713 mtspr(SPRN_LPCR, lpcr & ~LPCR_UPRT); in radix__mmu_cleanup_all()
/arch/powerpc/include/asm/
Dpnv-ocxl.h79 uint64_t lpcr, void __iomem **arva);
Dkvm_book3s.h89 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);
Dhvcall.h562 u64 lpcr; member
Dkvm_book3s_64.h156 int kvmhv_vcpu_entry_p9(struct kvm_vcpu *vcpu, u64 time_limit, unsigned long lpcr);
Dkvm_host.h283 unsigned long lpcr; member
Dopal.h32 uint64_t lpcr);
/arch/powerpc/platforms/powernv/
Didle.c298 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()
Docxl.c488 uint64_t lpcr, void __iomem **arva) in pnv_ocxl_map_lpar() argument
510 lparid, lpcr); in pnv_ocxl_map_lpar()
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()