Lines Matching refs:ptep
220 pte_t *ptep; in xen_build_mfn_list_list() local
248 ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), in xen_build_mfn_list_list()
250 BUG_ON(!ptep || level != PG_LEVEL_4K); in xen_build_mfn_list_list()
251 mfn = pte_mfn(*ptep); in xen_build_mfn_list_list()
252 ptep = (pte_t *)((unsigned long)ptep & ~(PAGE_SIZE - 1)); in xen_build_mfn_list_list()
258 if (ptep == p2m_missing_pte || ptep == p2m_identity_pte) { in xen_build_mfn_list_list()
336 pte_t *ptep; in xen_rebuild_p2m_list() local
384 ptep = populate_extra_pte((unsigned long)(p2m + pfn)); in xen_rebuild_p2m_list()
385 set_pte(ptep, in xen_rebuild_p2m_list()
394 ptep = populate_extra_pte((unsigned long)(p2m + pfn)); in xen_rebuild_p2m_list()
395 set_pte(ptep, in xen_rebuild_p2m_list()
401 ptep = (type == P2M_TYPE_MISSING) ? in xen_rebuild_p2m_list()
406 set_pmd(pmdp, __pmd(__pa(ptep) | _KERNPG_TABLE)); in xen_rebuild_p2m_list()
437 pte_t *ptep; in get_phys_to_machine() local
447 ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), &level); in get_phys_to_machine()
448 BUG_ON(!ptep || level != PG_LEVEL_4K); in get_phys_to_machine()
455 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_identity))) in get_phys_to_machine()
535 pte_t *ptep, *pte_pg; in xen_alloc_p2m_entry() local
541 ptep = lookup_address(addr, &level); in xen_alloc_p2m_entry()
542 BUG_ON(!ptep || level != PG_LEVEL_4K); in xen_alloc_p2m_entry()
543 pte_pg = (pte_t *)((unsigned long)ptep & ~(PAGE_SIZE - 1)); in xen_alloc_p2m_entry()
547 ptep = alloc_p2m_pmd(addr, pte_pg); in xen_alloc_p2m_entry()
548 if (!ptep) in xen_alloc_p2m_entry()
585 p2m_pfn = pte_pfn(READ_ONCE(*ptep)); in xen_alloc_p2m_entry()
602 if (pte_pfn(*ptep) == p2m_pfn) { in xen_alloc_p2m_entry()
605 set_pte(ptep, in xen_alloc_p2m_entry()
652 pte_t *ptep; in __set_phys_to_machine() local
666 ptep = lookup_address((unsigned long)(xen_p2m_addr + pfn), &level); in __set_phys_to_machine()
667 BUG_ON(!ptep || level != PG_LEVEL_4K); in __set_phys_to_machine()
669 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_missing))) in __set_phys_to_machine()
672 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_identity))) in __set_phys_to_machine()