Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/arch/powerpc/kernel/
Ddt_cpu_ftrs.c71 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 …]
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.c235 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()
Dasm-offsets.c600 OFFSET(VCORE_LPCR, kvmppc_vcore, lpcr); in main()
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
Dradix_pgtable.c636 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/
Dbook3s_hv_builtin.c796 (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()
Dbook3s_hv.c437 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 …]
Dbook3s_hv_nested.c68 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()
Dbook3s_64_mmu_hv.c1912 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/
Drtc-snvs.c125 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/
Didle.c297 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()
Dvas-window.c275 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/
Dkvm_book3s.h89 ulong lpcr; member
261 extern void kvmppc_update_lpcr(struct kvm *kvm, unsigned long lpcr,
302 u64 time_limit, unsigned long lpcr);
Dhvcall.h540 u64 lpcr; member
Dkvm_host.h296 unsigned long lpcr; member
Dopal.h35 uint64_t lpcr);