Home
last modified time | relevance | path

Searched refs:ptcr (Results 1 – 6 of 6) sorted by relevance

/arch/powerpc/include/asm/
Dpowernv.h10 extern void powernv_set_nmmu_ptcr(unsigned long ptcr);
16 static inline void powernv_set_nmmu_ptcr(unsigned long ptcr) { } in powernv_set_nmmu_ptcr() argument
Dopal.h237 int64_t opal_nmmu_set_ptcr(uint64_t chip_id, uint64_t ptcr);
/arch/powerpc/mm/book3s64/
Dpgtable.c297 unsigned long ptcr; in mmu_partition_table_init() local
305 ptcr = __pa(partition_tb) | (PATB_SIZE_SHIFT - 12); in mmu_partition_table_init()
306 set_ptcr_when_no_uv(ptcr); in mmu_partition_table_init()
307 powernv_set_nmmu_ptcr(ptcr); in mmu_partition_table_init()
/arch/powerpc/kvm/
Dbook3s_hv_nested.c434 unsigned long ptcr; in kvmhv_nested_init() local
454 ptcr = __pa(pseries_partition_tb) | (ptb_order - 12); in kvmhv_nested_init()
455 rc = plpar_hcall_norets(H_SET_PARTITION_TABLE, ptcr); in kvmhv_nested_init()
533 unsigned long ptcr = kvmppc_get_gpr(vcpu, 4); in kvmhv_set_partition_table() local
539 if ((ptcr & PRTS_MASK) + 12 - 4 > KVM_MAX_NESTED_GUESTS_SHIFT || in kvmhv_set_partition_table()
540 !kvm_is_visible_gfn(vcpu->kvm, (ptcr & PRTB_MASK) >> PAGE_SHIFT)) in kvmhv_set_partition_table()
544 kvm->arch.l1_ptcr = ptcr; in kvmhv_set_partition_table()
/arch/powerpc/platforms/powernv/
Didle.c581 u64 ptcr; member
678 sprs.ptcr = mfspr(SPRN_PTCR); in power9_idle_stop()
759 mtspr(SPRN_PTCR, sprs.ptcr); in power9_idle_stop()
Dopal.c1224 void powernv_set_nmmu_ptcr(unsigned long ptcr) in powernv_set_nmmu_ptcr() argument
1229 rc = opal_nmmu_set_ptcr(-1UL, ptcr); in powernv_set_nmmu_ptcr()