Lines Matching refs:ptep

211 	pte_t *ptep;  in xen_build_mfn_list_list()  local
239 ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), in xen_build_mfn_list_list()
241 BUG_ON(!ptep || level != PG_LEVEL_4K); in xen_build_mfn_list_list()
242 mfn = pte_mfn(*ptep); in xen_build_mfn_list_list()
243 ptep = (pte_t *)((unsigned long)ptep & ~(PAGE_SIZE - 1)); in xen_build_mfn_list_list()
249 if (ptep == p2m_missing_pte || ptep == p2m_identity_pte) { in xen_build_mfn_list_list()
327 pte_t *ptep; in xen_rebuild_p2m_list() local
379 ptep = populate_extra_pte((unsigned long)(p2m + pfn)); in xen_rebuild_p2m_list()
380 set_pte(ptep, in xen_rebuild_p2m_list()
389 ptep = populate_extra_pte((unsigned long)(p2m + pfn)); in xen_rebuild_p2m_list()
390 set_pte(ptep, in xen_rebuild_p2m_list()
396 ptep = (type == P2M_TYPE_MISSING) ? in xen_rebuild_p2m_list()
401 set_pmd(pmdp, __pmd(__pa(ptep) | _KERNPG_TABLE)); in xen_rebuild_p2m_list()
432 pte_t *ptep; in get_phys_to_machine() local
442 ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), &level); in get_phys_to_machine()
443 BUG_ON(!ptep || level != PG_LEVEL_4K); in get_phys_to_machine()
450 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_identity))) in get_phys_to_machine()
530 pte_t *ptep, *pte_pg; in xen_alloc_p2m_entry() local
536 ptep = lookup_address(addr, &level); in xen_alloc_p2m_entry()
537 BUG_ON(!ptep || level != PG_LEVEL_4K); in xen_alloc_p2m_entry()
538 pte_pg = (pte_t *)((unsigned long)ptep & ~(PAGE_SIZE - 1)); in xen_alloc_p2m_entry()
542 ptep = alloc_p2m_pmd(addr, pte_pg); in xen_alloc_p2m_entry()
543 if (!ptep) in xen_alloc_p2m_entry()
580 p2m_pfn = pte_pfn(READ_ONCE(*ptep)); in xen_alloc_p2m_entry()
597 if (pte_pfn(*ptep) == p2m_pfn) { in xen_alloc_p2m_entry()
600 set_pte(ptep, in xen_alloc_p2m_entry()
647 pte_t *ptep; in __set_phys_to_machine() local
663 ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), &level); in __set_phys_to_machine()
664 BUG_ON(!ptep || level != PG_LEVEL_4K); in __set_phys_to_machine()
666 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_missing))) in __set_phys_to_machine()
669 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_identity))) in __set_phys_to_machine()