Lines Matching refs:hptp
1142 static int hpte_dirty(struct revmap_entry *revp, __be64 *hptp) in hpte_dirty() argument
1151 if ((be64_to_cpu(hptp[0]) & HPTE_V_VALID) && in hpte_dirty()
1152 (be64_to_cpu(hptp[1]) & rcbits_unset)) in hpte_dirty()
1158 static long record_hpte(unsigned long flags, __be64 *hptp, in record_hpte() argument
1168 dirty = hpte_dirty(revp, hptp); in record_hpte()
1173 if (be64_to_cpu(hptp[0]) & (HPTE_V_VALID | HPTE_V_ABSENT)) { in record_hpte()
1176 !(be64_to_cpu(hptp[0]) & HPTE_V_BOLTED)) in record_hpte()
1186 while (!try_lock_hpte(hptp, HPTE_V_HVLOCK)) in record_hpte()
1188 v = be64_to_cpu(hptp[0]); in record_hpte()
1196 if (valid && (rcbits_unset & be64_to_cpu(hptp[1]))) { in record_hpte()
1197 revp->guest_rpte |= (be64_to_cpu(hptp[1]) & in record_hpte()
1216 unlock_hpte(hptp, be64_to_cpu(hptp[0])); in record_hpte()
1232 __be64 *hptp; in kvm_htab_read() local
1248 hptp = (__be64 *)(kvm->arch.hpt_virt + (i * HPTE_SIZE)); in kvm_htab_read()
1265 !hpte_dirty(revp, hptp)) { in kvm_htab_read()
1267 hptp += 2; in kvm_htab_read()
1277 record_hpte(flags, hptp, hpte, revp, 1, first_pass)) { in kvm_htab_read()
1286 hptp += 2; in kvm_htab_read()
1292 record_hpte(flags, hptp, hpte, revp, 0, first_pass)) { in kvm_htab_read()
1296 hptp += 2; in kvm_htab_read()
1332 __be64 *hptp; in kvm_htab_write() local
1374 hptp = (__be64 *)(kvm->arch.hpt_virt + (i * HPTE_SIZE)); in kvm_htab_write()
1392 if (be64_to_cpu(hptp[0]) & (HPTE_V_VALID | HPTE_V_ABSENT)) in kvm_htab_write()
1414 hptp += 2; in kvm_htab_write()
1418 if (be64_to_cpu(hptp[0]) & (HPTE_V_VALID | HPTE_V_ABSENT)) in kvm_htab_write()
1421 hptp += 2; in kvm_htab_write()
1535 __be64 *hptp; in debugfs_htab_read() local
1561 hptp = (__be64 *)(kvm->arch.hpt_virt + (i * HPTE_SIZE)); in debugfs_htab_read()
1562 for (; len != 0 && i < kvm->arch.hpt_npte; ++i, hptp += 2) { in debugfs_htab_read()
1563 if (!(be64_to_cpu(hptp[0]) & (HPTE_V_VALID | HPTE_V_ABSENT))) in debugfs_htab_read()
1568 while (!try_lock_hpte(hptp, HPTE_V_HVLOCK)) in debugfs_htab_read()
1570 v = be64_to_cpu(hptp[0]) & ~HPTE_V_HVLOCK; in debugfs_htab_read()
1571 hr = be64_to_cpu(hptp[1]); in debugfs_htab_read()
1573 unlock_hpte(hptp, v); in debugfs_htab_read()