Home
last modified time | relevance | path

Searched refs:hpt (Results 1 – 23 of 23) sorted by relevance

/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_64_mmu_hv.c69 struct kvm_hpt_info hpt; member
74 unsigned long hpt = 0; in kvmppc_allocate_hpt() local
85 hpt = (unsigned long)pfn_to_kaddr(page_to_pfn(page)); in kvmppc_allocate_hpt()
86 memset((void *)hpt, 0, (1ul << order)); in kvmppc_allocate_hpt()
90 if (!hpt) in kvmppc_allocate_hpt()
91 hpt = __get_free_pages(GFP_KERNEL|__GFP_ZERO|__GFP_RETRY_MAYFAIL in kvmppc_allocate_hpt()
94 if (!hpt) in kvmppc_allocate_hpt()
106 free_pages(hpt, order - PAGE_SHIFT); in kvmppc_allocate_hpt()
111 info->virt = hpt; in kvmppc_allocate_hpt()
121 kvm->arch.hpt = *info; in kvmppc_set_hpt()
[all …]
H A Dbook3s_hv_rm_mmu.c76 head = &kvm->arch.hpt.rev[i]; in kvmppc_add_revmap_chain()
79 tail = &kvm->arch.hpt.rev[head->back]; in kvmppc_add_revmap_chain()
166 next = real_vmalloc_addr(&kvm->arch.hpt.rev[rev->forw]); in remove_revmap_chain()
167 prev = real_vmalloc_addr(&kvm->arch.hpt.rev[rev->back]); in remove_revmap_chain()
303 if (pte_index >= kvmppc_hpt_npte(&kvm->arch.hpt)) in kvmppc_do_h_enter()
307 hpte = (__be64 *)(kvm->arch.hpt.virt + (pte_index << 4)); in kvmppc_do_h_enter()
338 hpte = (__be64 *)(kvm->arch.hpt.virt + (pte_index << 4)); in kvmppc_do_h_enter()
355 rev = &kvm->arch.hpt.rev[pte_index]; in kvmppc_do_h_enter()
496 if (pte_index >= kvmppc_hpt_npte(&kvm->arch.hpt)) in kvmppc_do_h_remove()
498 hpte = (__be64 *)(kvm->arch.hpt.virt + (pte_index << 4)); in kvmppc_do_h_remove()
[all …]
H A Dbook3s_hv.c5197 if (!kvm->arch.hpt.virt) { in kvmppc_hv_setup_htab_rma()
5315 kvmppc_free_hpt(&kvm->arch.hpt); in kvmppc_switch_mmu_to_radix()
5583 kvmppc_free_hpt(&kvm->arch.hpt); in kvmppc_core_destroy_vm_hv()
/openbmc/qemu/hw/ppc/
H A Dspapr_vhyp_mmu.c308 void *hpt; member
313 if (pending->hpt) { in free_pending_hpt()
314 qemu_vfree(pending->hpt); in free_pending_hpt()
325 pending->hpt = qemu_try_memalign(size, size); in hpt_prepare_thread()
326 if (pending->hpt) { in hpt_prepare_thread()
327 memset(pending->hpt, 0, size); in hpt_prepare_thread()
580 pending->hpt, newsize); in vhyp_mmu_resize_hpt_commit()
583 spapr->htab = pending->hpt; in vhyp_mmu_resize_hpt_commit()
588 pending->hpt = NULL; /* so it's not free()d */ in vhyp_mmu_resize_hpt_commit()
/openbmc/linux/arch/powerpc/include/asm/
H A Dkvm_book3s_64.h548 static inline unsigned long kvmppc_hpt_npte(struct kvm_hpt_info *hpt) in kvmppc_hpt_npte() argument
551 return 1UL << (hpt->order - 4); in kvmppc_hpt_npte()
554 static inline unsigned long kvmppc_hpt_mask(struct kvm_hpt_info *hpt) in kvmppc_hpt_mask() argument
557 return (1UL << (hpt->order - 7)) - 1; in kvmppc_hpt_mask()
H A Dkvm_host.h284 struct kvm_hpt_info hpt; member
/openbmc/qemu/tests/functional/
H A Dtest_ppc64_hv.py135 def do_test_kvm(self, hpt=False): argument
136 if hpt:
/openbmc/linux/arch/mips/boot/dts/brcm/
H A Dbcm3368.dtsi14 mips-hpt-frequency = <150000000>;
H A Dbcm3384_viper.dtsi20 mips-hpt-frequency = <300000000>;
H A Dbcm3384_zephyr.dtsi19 mips-hpt-frequency = <100000000>;
H A Dbcm6358.dtsi15 mips-hpt-frequency = <150000000>;
H A Dbcm6368.dtsi15 mips-hpt-frequency = <200000000>;
H A Dbcm6328.dtsi16 mips-hpt-frequency = <160000000>;
H A Dbcm6362.dtsi16 mips-hpt-frequency = <200000000>;
H A Dbcm63268.dtsi16 mips-hpt-frequency = <200000000>;
H A Dbcm7125.dtsi11 mips-hpt-frequency = <202500000>;
H A Dbcm7420.dtsi11 mips-hpt-frequency = <93750000>;
H A Dbcm7358.dtsi11 mips-hpt-frequency = <375000000>;
H A Dbcm7362.dtsi11 mips-hpt-frequency = <375000000>;
H A Dbcm7360.dtsi11 mips-hpt-frequency = <375000000>;
H A Dbcm7346.dtsi11 mips-hpt-frequency = <163125000>;
H A Dbcm7435.dtsi11 mips-hpt-frequency = <175625000>;
H A Dbcm7425.dtsi11 mips-hpt-frequency = <163125000>;