Home
last modified time | relevance | path

Searched refs:ptex (Results 1 – 5 of 5) sorted by relevance

/openbmc/qemu/hw/ppc/
H A Dspapr_vhyp_mmu.c23 target_ulong ptex = args[1]; in h_enter() local
60 if (!ppc_hash64_valid_ptex(cpu, ptex)) { in h_enter()
64 slot = ptex & 7ULL; in h_enter()
65 ptex = ptex & ~7ULL; in h_enter()
68 hptes = ppc_hash64_map_hptes(cpu, ptex, HPTES_PER_GROUP); in h_enter()
74 ppc_hash64_unmap_hptes(cpu, hptes, ptex, HPTES_PER_GROUP); in h_enter()
79 hptes = ppc_hash64_map_hptes(cpu, ptex + slot, 1); in h_enter()
81 ppc_hash64_unmap_hptes(cpu, hptes, ptex + slot, 1); in h_enter()
84 ppc_hash64_unmap_hptes(cpu, hptes, ptex, 1); in h_enter()
87 spapr_store_hpte(cpu, ptex + slot, pteh | HPTE64_V_HPTE_DIRTY, ptel); in h_enter()
[all …]
H A Dspapr.c1546 hwaddr ptex, int n) in spapr_map_hptes() argument
1549 hwaddr pte_offset = ptex * HASH_PTE_SIZE_64; in spapr_map_hptes()
1556 kvmppc_read_hptes(hptes, ptex, n); in spapr_map_hptes()
1569 hwaddr ptex, int n) in spapr_unmap_hptes() argument
1580 void spapr_store_hpte(PowerPCCPU *cpu, hwaddr ptex, in spapr_store_hpte() argument
1584 hwaddr offset = ptex * HASH_PTE_SIZE_64; in spapr_store_hpte()
1587 kvmppc_write_hpte(ptex, pte0, pte1); in spapr_store_hpte()
1611 static void spapr_hpte_set_c(PPCVirtualHypervisor *vhyp, hwaddr ptex, in spapr_hpte_set_c() argument
1614 hwaddr offset = ptex * HASH_PTE_SIZE_64 + HPTE64_DW1_C; in spapr_hpte_set_c()
1627 static void spapr_hpte_set_r(PPCVirtualHypervisor *vhyp, hwaddr ptex, in spapr_hpte_set_r() argument
[all …]
/openbmc/qemu/target/ppc/
H A Dmmu-hash64.c553 hwaddr ptex, int n) in ppc_hash64_map_hptes() argument
555 hwaddr pte_offset = ptex * HASH_PTE_SIZE_64; in ppc_hash64_map_hptes()
561 return cpu->vhyp_class->map_hptes(cpu->vhyp, ptex, n); in ppc_hash64_map_hptes()
578 hwaddr ptex, int n) in ppc_hash64_unmap_hptes() argument
581 cpu->vhyp_class->unmap_hptes(cpu->vhyp, hptes, ptex, n); in ppc_hash64_unmap_hptes()
589 bool ppc_hash64_valid_ptex(PowerPCCPU *cpu, target_ulong ptex) in ppc_hash64_valid_ptex() argument
592 if (((ptex & ~7ULL) / HPTES_PER_GROUP) & ~ppc_hash64_hpt_mask(cpu)) { in ppc_hash64_valid_ptex()
655 target_ulong ptex; in ppc_hash64_pteg_search() local
657 ptex = (hash & ppc_hash64_hpt_mask(cpu)) * HPTES_PER_GROUP; in ppc_hash64_pteg_search()
658 pteg = ppc_hash64_map_hptes(cpu, ptex, HPTES_PER_GROUP); in ppc_hash64_pteg_search()
[all …]
H A Dmmu-hash64.h120 hwaddr ptex, int n);
122 hwaddr ptex, int n);
123 bool ppc_hash64_valid_ptex(PowerPCCPU *cpu, target_ulong ptex);
H A Dcpu.h1615 hwaddr ptex, int n);
1618 hwaddr ptex, int n);
1619 void (*hpte_set_c)(PPCVirtualHypervisor *vhyp, hwaddr ptex, uint64_t pte1);
1620 void (*hpte_set_r)(PPCVirtualHypervisor *vhyp, hwaddr ptex, uint64_t pte1);