Lines Matching defs:hptp
1607 static int hpte_dirty(struct revmap_entry *revp, __be64 *hptp)
1616 if ((be64_to_cpu(hptp[0]) & HPTE_V_VALID) &&
1617 (be64_to_cpu(hptp[1]) & rcbits_unset))
1623 static long record_hpte(unsigned long flags, __be64 *hptp,
1633 dirty = hpte_dirty(revp, hptp);
1638 if (be64_to_cpu(hptp[0]) & (HPTE_V_VALID | HPTE_V_ABSENT)) {
1641 !(be64_to_cpu(hptp[0]) & HPTE_V_BOLTED))
1651 while (!try_lock_hpte(hptp, HPTE_V_HVLOCK))
1653 v = be64_to_cpu(hptp[0]);
1654 hr = be64_to_cpu(hptp[1]);
1686 unlock_hpte(hptp, be64_to_cpu(hptp[0]));
1702 __be64 *hptp;
1720 hptp = (__be64 *)(kvm->arch.hpt.virt + (i * HPTE_SIZE));
1737 !hpte_dirty(revp, hptp)) {
1739 hptp += 2;
1749 record_hpte(flags, hptp, hpte, revp, 1, first_pass)) {
1758 hptp += 2;
1764 record_hpte(flags, hptp, hpte, revp, 0, first_pass)) {
1768 hptp += 2;
1804 __be64 *hptp;
1849 hptp = (__be64 *)(kvm->arch.hpt.virt + (i * HPTE_SIZE));
1870 if (be64_to_cpu(hptp[0]) & (HPTE_V_VALID | HPTE_V_ABSENT))
1895 hptp += 2;
1899 if (be64_to_cpu(hptp[0]) & (HPTE_V_VALID | HPTE_V_ABSENT))
1902 hptp += 2;
2017 __be64 *hptp;
2046 hptp = (__be64 *)(kvm->arch.hpt.virt + (i * HPTE_SIZE));
2048 ++i, hptp += 2) {
2049 if (!(be64_to_cpu(hptp[0]) & (HPTE_V_VALID | HPTE_V_ABSENT)))
2054 while (!try_lock_hpte(hptp, HPTE_V_HVLOCK))
2056 v = be64_to_cpu(hptp[0]) & ~HPTE_V_HVLOCK;
2057 hr = be64_to_cpu(hptp[1]);
2059 unlock_hpte(hptp, v);