Lines Matching refs:ptep

197 	pte_t *ptep;  in xen_build_mfn_list_list()  local
225 ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), in xen_build_mfn_list_list()
227 BUG_ON(!ptep || level != PG_LEVEL_4K); in xen_build_mfn_list_list()
228 mfn = pte_mfn(*ptep); in xen_build_mfn_list_list()
229 ptep = (pte_t *)((unsigned long)ptep & ~(PAGE_SIZE - 1)); in xen_build_mfn_list_list()
235 if (ptep == p2m_missing_pte || ptep == p2m_identity_pte) { in xen_build_mfn_list_list()
312 pte_t *ptep; in xen_rebuild_p2m_list() local
364 ptep = populate_extra_pte((unsigned long)(p2m + pfn)); in xen_rebuild_p2m_list()
365 set_pte(ptep, in xen_rebuild_p2m_list()
374 ptep = populate_extra_pte((unsigned long)(p2m + pfn)); in xen_rebuild_p2m_list()
375 set_pte(ptep, in xen_rebuild_p2m_list()
381 ptep = (type == P2M_TYPE_MISSING) ? in xen_rebuild_p2m_list()
386 set_pmd(pmdp, __pmd(__pa(ptep) | _KERNPG_TABLE)); in xen_rebuild_p2m_list()
415 pte_t *ptep; in get_phys_to_machine() local
425 ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), &level); in get_phys_to_machine()
426 BUG_ON(!ptep || level != PG_LEVEL_4K); in get_phys_to_machine()
433 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_identity))) in get_phys_to_machine()
509 pte_t *ptep, *pte_pg; in alloc_p2m() local
518 ptep = lookup_address(addr, &level); in alloc_p2m()
519 BUG_ON(!ptep || level != PG_LEVEL_4K); in alloc_p2m()
520 pte_pg = (pte_t *)((unsigned long)ptep & ~(PAGE_SIZE - 1)); in alloc_p2m()
524 ptep = alloc_p2m_pmd(addr, pte_pg); in alloc_p2m()
525 if (!ptep) in alloc_p2m()
561 p2m_pfn = pte_pfn(READ_ONCE(*ptep)); in alloc_p2m()
578 if (pte_pfn(*ptep) == p2m_pfn) { in alloc_p2m()
579 set_pte(ptep, in alloc_p2m()
620 pte_t *ptep; in __set_phys_to_machine() local
635 ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), &level); in __set_phys_to_machine()
636 BUG_ON(!ptep || level != PG_LEVEL_4K); in __set_phys_to_machine()
638 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_missing))) in __set_phys_to_machine()
641 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_identity))) in __set_phys_to_machine()