Lines Matching refs:ptep

211 	pte_t *ptep;  in xen_build_mfn_list_list()  local
240 ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), in xen_build_mfn_list_list()
242 BUG_ON(!ptep || level != PG_LEVEL_4K); in xen_build_mfn_list_list()
243 mfn = pte_mfn(*ptep); in xen_build_mfn_list_list()
244 ptep = (pte_t *)((unsigned long)ptep & ~(PAGE_SIZE - 1)); in xen_build_mfn_list_list()
250 if (ptep == p2m_missing_pte || ptep == p2m_identity_pte) { in xen_build_mfn_list_list()
334 pte_t *ptep; in xen_rebuild_p2m_list() local
386 ptep = populate_extra_pte((unsigned long)(p2m + pfn)); in xen_rebuild_p2m_list()
387 set_pte(ptep, in xen_rebuild_p2m_list()
396 ptep = populate_extra_pte((unsigned long)(p2m + pfn)); in xen_rebuild_p2m_list()
397 set_pte(ptep, in xen_rebuild_p2m_list()
403 ptep = (type == P2M_TYPE_MISSING) ? in xen_rebuild_p2m_list()
408 set_pmd(pmdp, __pmd(__pa(ptep) | _KERNPG_TABLE)); in xen_rebuild_p2m_list()
439 pte_t *ptep; in get_phys_to_machine() local
449 ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), &level); in get_phys_to_machine()
450 BUG_ON(!ptep || level != PG_LEVEL_4K); in get_phys_to_machine()
457 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_identity))) in get_phys_to_machine()
537 pte_t *ptep, *pte_pg; in xen_alloc_p2m_entry() local
546 ptep = lookup_address(addr, &level); in xen_alloc_p2m_entry()
547 BUG_ON(!ptep || level != PG_LEVEL_4K); in xen_alloc_p2m_entry()
548 pte_pg = (pte_t *)((unsigned long)ptep & ~(PAGE_SIZE - 1)); in xen_alloc_p2m_entry()
552 ptep = alloc_p2m_pmd(addr, pte_pg); in xen_alloc_p2m_entry()
553 if (!ptep) in xen_alloc_p2m_entry()
590 p2m_pfn = pte_pfn(READ_ONCE(*ptep)); in xen_alloc_p2m_entry()
607 if (pte_pfn(*ptep) == p2m_pfn) { in xen_alloc_p2m_entry()
610 set_pte(ptep, in xen_alloc_p2m_entry()
660 pte_t *ptep; in __set_phys_to_machine() local
680 ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), &level); in __set_phys_to_machine()
681 BUG_ON(!ptep || level != PG_LEVEL_4K); in __set_phys_to_machine()
683 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_missing))) in __set_phys_to_machine()
686 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_identity))) in __set_phys_to_machine()