Lines Matching refs:ptex

21 static inline bool valid_ptex(PowerPCCPU *cpu, target_ulong ptex)  in valid_ptex()  argument
26 if (((ptex & ~7ULL) / HPTES_PER_GROUP) & ~ppc_hash64_hpt_mask(cpu)) { in valid_ptex()
36 target_ulong ptex = args[1]; in h_enter() local
73 if (!valid_ptex(cpu, ptex)) { in h_enter()
77 slot = ptex & 7ULL; in h_enter()
78 ptex = ptex & ~7ULL; in h_enter()
81 hptes = ppc_hash64_map_hptes(cpu, ptex, HPTES_PER_GROUP); in h_enter()
87 ppc_hash64_unmap_hptes(cpu, hptes, ptex, HPTES_PER_GROUP); in h_enter()
92 hptes = ppc_hash64_map_hptes(cpu, ptex + slot, 1); in h_enter()
94 ppc_hash64_unmap_hptes(cpu, hptes, ptex + slot, 1); in h_enter()
97 ppc_hash64_unmap_hptes(cpu, hptes, ptex, 1); in h_enter()
100 spapr_store_hpte(cpu, ptex + slot, pteh | HPTE64_V_HPTE_DIRTY, ptel); in h_enter()
102 args[0] = ptex + slot; in h_enter()
114 , target_ulong ptex, in remove_hpte() argument
122 if (!valid_ptex(cpu, ptex)) { in remove_hpte()
126 hptes = ppc_hash64_map_hptes(cpu, ptex, 1); in remove_hpte()
129 ppc_hash64_unmap_hptes(cpu, hptes, ptex, 1); in remove_hpte()
138 spapr_store_hpte(cpu, ptex, HPTE64_V_HPTE_DIRTY, 0); in remove_hpte()
139 ppc_hash64_tlb_flush_hpte(cpu, ptex, v, r); in remove_hpte()
148 target_ulong ptex = args[1]; in h_remove() local
152 ret = remove_hpte(cpu, ptex, avpn, flags, in h_remove()
248 target_ulong ptex = args[1]; in h_protect() local
253 if (!valid_ptex(cpu, ptex)) { in h_protect()
257 hptes = ppc_hash64_map_hptes(cpu, ptex, 1); in h_protect()
260 ppc_hash64_unmap_hptes(cpu, hptes, ptex, 1); in h_protect()
272 spapr_store_hpte(cpu, ptex, in h_protect()
274 ppc_hash64_tlb_flush_hpte(cpu, ptex, v, r); in h_protect()
278 spapr_store_hpte(cpu, ptex, v | HPTE64_V_HPTE_DIRTY, r); in h_protect()
286 target_ulong ptex = args[1]; in h_read() local
290 if (!valid_ptex(cpu, ptex)) { in h_read()
296 ptex &= ~(3ULL); in h_read()
300 hptes = ppc_hash64_map_hptes(cpu, ptex, n_entries); in h_read()
305 ppc_hash64_unmap_hptes(cpu, hptes, ptex, n_entries); in h_read()
543 hwaddr ptex = pteg * HPTES_PER_GROUP; in rehash_hpt() local
545 = ppc_hash64_map_hptes(cpu, ptex, HPTES_PER_GROUP); in rehash_hpt()
555 ppc_hash64_unmap_hptes(cpu, hptes, ptex, HPTES_PER_GROUP); in rehash_hpt()
559 ppc_hash64_unmap_hptes(cpu, hptes, ptex, HPTES_PER_GROUP); in rehash_hpt()