Lines Matching refs:hpte_v

270 	unsigned long hpte_v, hpte_r;  in native_hpte_insert()  local
299 hpte_v = hpte_encode_v(vpn, psize, apsize, ssize) | vflags | HPTE_V_VALID; in native_hpte_insert()
304 i, hpte_v, hpte_r); in native_hpte_insert()
308 hpte_r = hpte_old_to_new_r(hpte_v, hpte_r); in native_hpte_insert()
309 hpte_v = hpte_old_to_new_v(hpte_v); in native_hpte_insert()
320 hptep->v = cpu_to_be64(hpte_v); in native_hpte_insert()
331 unsigned long hpte_v, flags; in native_hpte_remove() local
345 hpte_v = be64_to_cpu(hptep->v); in native_hpte_remove()
347 if ((hpte_v & HPTE_V_VALID) && !(hpte_v & HPTE_V_BOLTED)) { in native_hpte_remove()
350 hpte_v = be64_to_cpu(hptep->v); in native_hpte_remove()
351 if ((hpte_v & HPTE_V_VALID) in native_hpte_remove()
352 && !(hpte_v & HPTE_V_BOLTED)) in native_hpte_remove()
379 unsigned long hpte_v, want_v; in native_hpte_updatepp() local
390 hpte_v = hpte_get_old_v(hptep); in native_hpte_updatepp()
398 if (!HPTE_V_COMPARE(hpte_v, want_v) || !(hpte_v & HPTE_V_VALID)) { in native_hpte_updatepp()
404 hpte_v = hpte_get_old_v(hptep); in native_hpte_updatepp()
405 if (unlikely(!HPTE_V_COMPARE(hpte_v, want_v) || in native_hpte_updatepp()
406 !(hpte_v & HPTE_V_VALID))) { in native_hpte_updatepp()
435 unsigned long hpte_v; in __native_hpte_find() local
441 hpte_v = hpte_get_old_v(hptep); in __native_hpte_find()
442 if (HPTE_V_COMPARE(hpte_v, want_v) && (hpte_v & HPTE_V_VALID)) in __native_hpte_find()
559 unsigned long hpte_v; in native_hpte_invalidate() local
568 hpte_v = hpte_get_old_v(hptep); in native_hpte_invalidate()
570 if (HPTE_V_COMPARE(hpte_v, want_v) && (hpte_v & HPTE_V_VALID)) { in native_hpte_invalidate()
573 hpte_v = hpte_get_old_v(hptep); in native_hpte_invalidate()
575 if (HPTE_V_COMPARE(hpte_v, want_v) && (hpte_v & HPTE_V_VALID)) { in native_hpte_invalidate()
605 unsigned long hpte_v, want_v, shift; in native_hugepage_invalidate() local
630 hpte_v = hpte_get_old_v(hptep); in native_hugepage_invalidate()
633 if (HPTE_V_COMPARE(hpte_v, want_v) && (hpte_v & HPTE_V_VALID)) { in native_hugepage_invalidate()
636 hpte_v = hpte_get_old_v(hptep); in native_hugepage_invalidate()
638 if (HPTE_V_COMPARE(hpte_v, want_v) && (hpte_v & HPTE_V_VALID)) { in native_hugepage_invalidate()
668 unsigned long hpte_v = be64_to_cpu(hpte->v); in hpte_decode() local
676 hpte_v = hpte_new_to_old_v(hpte_v, hpte_r); in hpte_decode()
679 if (!(hpte_v & HPTE_V_LARGE)) { in hpte_decode()
687 *ssize = hpte_v >> HPTE_V_SSIZE_SHIFT; in hpte_decode()
690 avpn = (HPTE_V_AVPN_VAL(hpte_v) & ~mmu_psize_defs[size].avpnm); in hpte_decode()
692 if (hpte_v & HPTE_V_SECONDARY) in hpte_decode()
745 unsigned long hpte_v; in native_hpte_clear() local
759 hpte_v = be64_to_cpu(hptep->v); in native_hpte_clear()
765 if (hpte_v & HPTE_V_VALID) { in native_hpte_clear()
784 unsigned long hpte_v; in native_flush_hash_range() local
812 hpte_v = hpte_get_old_v(hptep); in native_flush_hash_range()
814 if (!HPTE_V_COMPARE(hpte_v, want_v) || !(hpte_v & HPTE_V_VALID)) in native_flush_hash_range()
818 hpte_v = hpte_get_old_v(hptep); in native_flush_hash_range()
820 if (!HPTE_V_COMPARE(hpte_v, want_v) || !(hpte_v & HPTE_V_VALID)) in native_flush_hash_range()