Home
last modified time | relevance | path

Searched refs:pmd_phys (Results 1 - 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/arch/loongarch/mm/
H A Dkasan_init.c117 phys_addr_t pmd_phys = early ? in kasan_pmd_offset() local
121 memcpy(__va(pmd_phys), kasan_early_shadow_pmd, in kasan_pmd_offset()
123 kasan_set_pgd(pgdp, __pgd((unsigned long)__va(pmd_phys))); in kasan_pmd_offset()
/kernel/linux/linux-6.6/arch/csky/include/asm/
H A Dpgtable.h32 #define pmd_pfn(pmd) (pmd_phys(pmd) >> PAGE_SHIFT)
33 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
104 #define pmd_phys(pmd) pmd_val(pmd) macro
/kernel/linux/linux-6.6/arch/nios2/include/asm/
H A Dpgtable.h225 #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd)) macro
226 #define pmd_pfn(pmd) (pmd_phys(pmd) >> PAGE_SHIFT)
227 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
/kernel/linux/linux-6.6/arch/loongarch/mm/
H A Dkasan_init.c122 phys_addr_t pmd_phys = early ? in kasan_pmd_offset() local
125 memcpy(__va(pmd_phys), kasan_early_shadow_pmd, sizeof(kasan_early_shadow_pmd)); in kasan_pmd_offset()
126 pud_populate(&init_mm, pudp, (pmd_t *)__va(pmd_phys)); in kasan_pmd_offset()
/kernel/linux/linux-5.10/arch/nios2/include/asm/
H A Dpgtable.h239 #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd)) macro
240 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
/kernel/linux/linux-6.6/arch/loongarch/include/asm/
H A Dpgtable.h241 #define pmd_phys(pmd) PHYSADDR(pmd_val(pmd)) macro
244 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
568 return pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT); in pmd_page()
/kernel/linux/linux-5.10/arch/csky/include/asm/
H A Dpgtable.h35 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
124 #define pmd_phys(pmd) pmd_val(pmd) macro
/kernel/linux/linux-5.10/arch/arm64/mm/
H A Dkasan_init.c77 phys_addr_t pmd_phys = early ? in kasan_pmd_offset() local
80 __pud_populate(pudp, pmd_phys, PMD_TYPE_TABLE); in kasan_pmd_offset()
H A Dmmu.c263 phys_addr_t pmd_phys; in alloc_init_cont_pmd() local
265 pmd_phys = pgtable_alloc(PMD_SHIFT); in alloc_init_cont_pmd()
266 __pud_populate(pudp, pmd_phys, PUD_TYPE_TABLE); in alloc_init_cont_pmd()
/kernel/linux/linux-5.10/arch/loongarch/include/asm/
H A Dpgtable-64.h220 #define pmd_phys(pmd) PHYSADDR(pmd_val(pmd)) macro
223 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
H A Dpgtable.h279 return pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT); in pmd_page()
/kernel/linux/linux-6.6/arch/arm64/mm/
H A Dkasan_init.c80 phys_addr_t pmd_phys = early ? in kasan_pmd_offset() local
83 __pud_populate(pudp, pmd_phys, PUD_TYPE_TABLE); in kasan_pmd_offset()
H A Dmmu.c286 phys_addr_t pmd_phys; in alloc_init_cont_pmd() local
291 pmd_phys = pgtable_alloc(PMD_SHIFT); in alloc_init_cont_pmd()
292 __pud_populate(pudp, pmd_phys, pudval); in alloc_init_cont_pmd()
/kernel/linux/linux-5.10/arch/mips/include/asm/
H A Dpgtable.h92 #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd)) macro
94 #define __pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
696 return pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT);
/kernel/linux/linux-6.6/arch/mips/include/asm/
H A Dpgtable.h65 #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd)) macro
73 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
423 return pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT);
/kernel/linux/linux-5.10/arch/x86/xen/
H A Dmmu_pv.c1858 phys_addr_t size, new_area, pt_phys, pmd_phys, pud_phys; in xen_relocate_p2m() local
1889 pmd_phys = pud_phys + PFN_PHYS(n_pud); in xen_relocate_p2m()
1890 pt_phys = pmd_phys + PFN_PHYS(n_pmd); in xen_relocate_p2m()
1900 pmd = early_memremap(pmd_phys, PAGE_SIZE); in xen_relocate_p2m()
1923 make_lowmem_page_readonly(__va(pmd_phys)); in xen_relocate_p2m()
1925 PFN_DOWN(pmd_phys)); in xen_relocate_p2m()
1926 pud[idx_pmd] = __pud(_PAGE_TABLE | pmd_phys); in xen_relocate_p2m()
1927 pmd_phys += PAGE_SIZE; in xen_relocate_p2m()
/kernel/linux/linux-6.6/arch/x86/xen/
H A Dmmu_pv.c1892 phys_addr_t size, new_area, pt_phys, pmd_phys, pud_phys; in xen_relocate_p2m() local
1923 pmd_phys = pud_phys + PFN_PHYS(n_pud); in xen_relocate_p2m()
1924 pt_phys = pmd_phys + PFN_PHYS(n_pmd); in xen_relocate_p2m()
1934 pmd = early_memremap(pmd_phys, PAGE_SIZE); in xen_relocate_p2m()
1957 make_lowmem_page_readonly(__va(pmd_phys)); in xen_relocate_p2m()
1959 PFN_DOWN(pmd_phys)); in xen_relocate_p2m()
1960 pud[idx_pmd] = __pud(_PAGE_TABLE | pmd_phys); in xen_relocate_p2m()
1961 pmd_phys += PAGE_SIZE; in xen_relocate_p2m()

Completed in 19 milliseconds