Lines Matching refs:ptex
23 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()
89 args[0] = ptex + slot; in h_enter()
101 , target_ulong ptex, in remove_hpte() argument
109 if (!ppc_hash64_valid_ptex(cpu, ptex)) { in remove_hpte()
113 hptes = ppc_hash64_map_hptes(cpu, ptex, 1); in remove_hpte()
116 ppc_hash64_unmap_hptes(cpu, hptes, ptex, 1); in remove_hpte()
125 spapr_store_hpte(cpu, ptex, HPTE64_V_HPTE_DIRTY, 0); in remove_hpte()
126 ppc_hash64_tlb_flush_hpte(cpu, ptex, v, r); in remove_hpte()
135 target_ulong ptex = args[1]; in h_remove() local
139 ret = remove_hpte(cpu, ptex, avpn, flags, in h_remove()
235 target_ulong ptex = args[1]; in h_protect() local
240 if (!ppc_hash64_valid_ptex(cpu, ptex)) { in h_protect()
244 hptes = ppc_hash64_map_hptes(cpu, ptex, 1); in h_protect()
247 ppc_hash64_unmap_hptes(cpu, hptes, ptex, 1); in h_protect()
259 spapr_store_hpte(cpu, ptex, in h_protect()
261 ppc_hash64_tlb_flush_hpte(cpu, ptex, v, r); in h_protect()
265 spapr_store_hpte(cpu, ptex, v | HPTE64_V_HPTE_DIRTY, r); in h_protect()
273 target_ulong ptex = args[1]; in h_read() local
277 if (!ppc_hash64_valid_ptex(cpu, ptex)) { in h_read()
283 ptex &= ~(3ULL); in h_read()
287 hptes = ppc_hash64_map_hptes(cpu, ptex, n_entries); in h_read()
292 ppc_hash64_unmap_hptes(cpu, hptes, ptex, n_entries); in h_read()
530 hwaddr ptex = pteg * HPTES_PER_GROUP; in rehash_hpt() local
532 = ppc_hash64_map_hptes(cpu, ptex, HPTES_PER_GROUP); in rehash_hpt()
542 ppc_hash64_unmap_hptes(cpu, hptes, ptex, HPTES_PER_GROUP); in rehash_hpt()
546 ppc_hash64_unmap_hptes(cpu, hptes, ptex, HPTES_PER_GROUP); in rehash_hpt()