/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | dt_cpu_ftrs.c | 71 u64 lpcr; member 82 u64 lpcr; in __restore_cpu_cpufeatures() local 96 lpcr = mfspr(SPRN_LPCR); in __restore_cpu_cpufeatures() 97 lpcr |= system_registers.lpcr; in __restore_cpu_cpufeatures() 98 lpcr &= ~system_registers.lpcr_clear; in __restore_cpu_cpufeatures() 99 mtspr(SPRN_LPCR, lpcr); in __restore_cpu_cpufeatures() 231 u64 lpcr; in feat_enable_hv() local 240 lpcr = mfspr(SPRN_LPCR); in feat_enable_hv() 241 lpcr &= ~LPCR_LPES0; /* HV external interrupts */ in feat_enable_hv() 242 mtspr(SPRN_LPCR, lpcr); in feat_enable_hv() [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 | 235 unsigned long lpcr = mfspr(SPRN_LPCR); in cpu_ready_for_interrupts() local 236 unsigned long new_lpcr = lpcr; in cpu_ready_for_interrupts() 249 if (new_lpcr != lpcr) in cpu_ready_for_interrupts()
|
D | asm-offsets.c | 600 OFFSET(VCORE_LPCR, kvmppc_vcore, lpcr); in main()
|
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/ |
D | radix_pgtable.c | 636 unsigned long lpcr; in radix__early_init_mmu() local 691 lpcr = mfspr(SPRN_LPCR); in radix__early_init_mmu() 692 mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR); in radix__early_init_mmu() 708 unsigned long lpcr; in radix__early_init_mmu_secondary() local 713 lpcr = mfspr(SPRN_LPCR); in radix__early_init_mmu_secondary() 714 mtspr(SPRN_LPCR, lpcr | LPCR_UPRT | LPCR_HR); in radix__early_init_mmu_secondary() 728 unsigned long lpcr; in radix__mmu_cleanup_all() local 731 lpcr = mfspr(SPRN_LPCR); in radix__mmu_cleanup_all() 732 mtspr(SPRN_LPCR, lpcr & ~LPCR_UPRT); in radix__mmu_cleanup_all()
|
/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
D | book3s_hv_builtin.c | 796 (vcpu->arch.vcore->lpcr & LPCR_AIL) == LPCR_AIL_3 && in inject_interrupt() 822 unsigned long lpcr; in kvmppc_guest_entry_inject_int() local 826 lpcr = mfspr(SPRN_LPCR); in kvmppc_guest_entry_inject_int() 827 lpcr |= ext << LPCR_MER_SH; in kvmppc_guest_entry_inject_int() 828 mtspr(SPRN_LPCR, lpcr); in kvmppc_guest_entry_inject_int() 836 if (!(lpcr & LPCR_LD)) in kvmppc_guest_entry_inject_int()
|
D | book3s_hv.c | 437 vcpu->arch.vcore->lpcr, vcpu->kvm->arch.sdr1, in kvmppc_dump_regs() 1622 if ((new_lpcr & LPCR_ILE) != (vc->lpcr & LPCR_ILE)) { in kvmppc_set_lpcr() 1654 vc->lpcr = (vc->lpcr & ~mask) | (new_lpcr & mask); in kvmppc_set_lpcr() 1805 *val = get_reg_val(id, vcpu->arch.vcore->lpcr); in kvmppc_get_one_reg_hv() 2176 vcore->lpcr = kvm->arch.lpcr; in kvmppc_vcore_create() 3234 split_info.lpcr_req = vc->lpcr; in kvmppc_run_core() 3436 unsigned long lpcr) in kvmhv_load_hv_regs_and_go() argument 3503 mtspr(SPRN_LPCR, lpcr); in kvmhv_load_hv_regs_and_go() 3583 unsigned long lpcr) in kvmhv_p9_guest_entry() argument 3678 hvregs.lpcr = lpcr; in kvmhv_p9_guest_entry() [all …]
|
D | book3s_hv_nested.c | 68 hr->lpcr = swab64(hr->lpcr); in byteswap_hv_regs() 230 unsigned long lpcr; in kvmhv_enter_nested_guest() local 303 lpcr = (vc->lpcr & ~mask) | (l2_hv.lpcr & mask); in kvmhv_enter_nested_guest() 315 r = kvmhv_run_single_vcpu(vcpu, hdec_exp, lpcr); in kvmhv_enter_nested_guest()
|
D | book3s_64_mmu_hv.c | 1912 unsigned long senc, lpcr; in kvm_htab_write() local 1918 lpcr = senc << (LPCR_VRMASD_SH - 4); in kvm_htab_write() 1919 kvmppc_update_lpcr(kvm, lpcr, in kvm_htab_write()
|
/kernel/linux/linux-5.10/drivers/rtc/ |
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()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
D | idle.c | 297 u64 lpcr; member 347 sprs.lpcr = mfspr(SPRN_LPCR); in power7_idle_insn() 482 mtspr(SPRN_LPCR, sprs.lpcr); in power7_idle_insn() 584 u64 lpcr; member 663 sprs.lpcr = mfspr(SPRN_LPCR); in power9_idle_stop() 780 mtspr(SPRN_LPCR, sprs.lpcr); in power9_idle_stop()
|
D | vas-window.c | 275 u64 lpcr, val; in init_xlate_regs() local 290 lpcr = mfspr(SPRN_LPCR); in init_xlate_regs() 300 val = SET_FIELD(VAS_XLATE_LPCR_ISL, val, lpcr & LPCR_ISL); in init_xlate_regs() 301 val = SET_FIELD(VAS_XLATE_LPCR_TC, val, lpcr & LPCR_TC); in init_xlate_regs()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | kvm_book3s.h | 89 ulong lpcr; member 261 extern void kvmppc_update_lpcr(struct kvm *kvm, unsigned long lpcr, 302 u64 time_limit, unsigned long lpcr);
|
D | hvcall.h | 540 u64 lpcr; member
|
D | kvm_host.h | 296 unsigned long lpcr; member
|
D | opal.h | 35 uint64_t lpcr);
|