Searched refs:pmd_phys (Results 1 – 5 of 5) sorted by relevance
249 #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd)) macro250 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
139 phys_addr_t pmd_phys; in alloc_init_pmd() local141 pmd_phys = pgtable_alloc(); in alloc_init_pmd()142 pmd = pmd_set_fixmap(pmd_phys); in alloc_init_pmd()143 __pud_populate(pud, pmd_phys, PUD_TYPE_TABLE); in alloc_init_pmd()
97 #define pmd_phys(pmd) __pa((void *)pmd_val(pmd)) macro98 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
92 #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd)) macro94 #define __pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))631 return pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT);
2080 phys_addr_t size, new_area, pt_phys, pmd_phys, pud_phys; in xen_relocate_p2m() local2111 pmd_phys = pud_phys + PFN_PHYS(n_pud); in xen_relocate_p2m()2112 pt_phys = pmd_phys + PFN_PHYS(n_pmd); in xen_relocate_p2m()2122 pmd = early_memremap(pmd_phys, PAGE_SIZE); in xen_relocate_p2m()2146 make_lowmem_page_readonly(__va(pmd_phys)); in xen_relocate_p2m()2148 PFN_DOWN(pmd_phys)); in xen_relocate_p2m()2149 set_pud(pud + idx_pmd, __pud(_PAGE_TABLE | pmd_phys)); in xen_relocate_p2m()2150 pmd_phys += PAGE_SIZE; in xen_relocate_p2m()