Lines Matching refs:ptep
126 pte_t *ptep; in stage2_get_leaf_entry() local
130 ptep = (pte_t *)kvm->arch.pgd; in stage2_get_leaf_entry()
131 ptep = &ptep[stage2_pte_index(addr, current_level)]; in stage2_get_leaf_entry()
132 while (ptep && pte_val(*ptep)) { in stage2_get_leaf_entry()
133 if (stage2_pte_leaf(ptep)) { in stage2_get_leaf_entry()
135 *ptepp = ptep; in stage2_get_leaf_entry()
142 ptep = (pte_t *)stage2_pte_page_vaddr(*ptep); in stage2_get_leaf_entry()
143 ptep = &ptep[stage2_pte_index(addr, current_level)]; in stage2_get_leaf_entry()
145 ptep = NULL; in stage2_get_leaf_entry()
179 pte_t *ptep = &next_ptep[stage2_pte_index(addr, current_level)]; in stage2_set_pte() local
185 if (stage2_pte_leaf(ptep)) in stage2_set_pte()
188 if (!pte_val(*ptep)) { in stage2_set_pte()
192 *ptep = pfn_pte(PFN_DOWN(__pa(next_ptep)), in stage2_set_pte()
195 if (stage2_pte_leaf(ptep)) in stage2_set_pte()
197 next_ptep = (pte_t *)stage2_pte_page_vaddr(*ptep); in stage2_set_pte()
201 ptep = &next_ptep[stage2_pte_index(addr, current_level)]; in stage2_set_pte()
204 *ptep = *new_pte; in stage2_set_pte()
205 if (stage2_pte_leaf(ptep)) in stage2_set_pte()
263 pte_t *ptep, u32 ptep_level, enum stage2_op op) in stage2_op_pte() argument
276 if (!pte_val(*ptep)) in stage2_op_pte()
279 if (ptep_level && !stage2_pte_leaf(ptep)) { in stage2_op_pte()
280 next_ptep = (pte_t *)stage2_pte_page_vaddr(*ptep); in stage2_op_pte()
288 set_pte(ptep, __pte(0)); in stage2_op_pte()
296 set_pte(ptep, __pte(0)); in stage2_op_pte()
298 set_pte(ptep, __pte(pte_val(*ptep) & ~_PAGE_WRITE)); in stage2_op_pte()
307 pte_t *ptep; in stage2_unmap_range() local
315 &ptep, &ptep_level); in stage2_unmap_range()
324 stage2_op_pte(kvm, addr, ptep, in stage2_unmap_range()
342 pte_t *ptep; in stage2_wp_range() local
350 &ptep, &ptep_level); in stage2_wp_range()
359 stage2_op_pte(kvm, addr, ptep, in stage2_wp_range()
604 pte_t *ptep; in kvm_age_gfn() local
614 &ptep, &ptep_level)) in kvm_age_gfn()
617 return ptep_test_and_clear_young(NULL, 0, ptep); in kvm_age_gfn()
622 pte_t *ptep; in kvm_test_age_gfn() local
632 &ptep, &ptep_level)) in kvm_test_age_gfn()
635 return pte_young(*ptep); in kvm_test_age_gfn()