Home
last modified time | relevance | path

Searched refs:pfn_to_page (Results 1 – 25 of 136) sorted by relevance

123456

/arch/avr32/include/asm/
Dpage.h81 #define phys_to_page(phys) (pfn_to_page(phys >> PAGE_SHIFT))
88 #define pfn_to_page(pfn) (mem_map + ((pfn) - PHYS_PFN_OFFSET)) macro
93 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
/arch/alpha/include/asm/
Dmmzone.h72 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
74 #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> 32))
75 #define pgd_page(pgd) (pfn_to_page(pgd_val(pgd) >> 32))
/arch/unicore32/include/asm/
Dmemory.h67 #define phys_to_page(phys) (pfn_to_page(__phys_to_pfn(phys)))
103 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
/arch/unicore32/mm/
Dinit.c77 page = pfn_to_page(pfn1); in show_mem()
78 end = pfn_to_page(pfn2 - 1) + 1; in show_mem()
325 start_pg = pfn_to_page(start_pfn - 1) + 1; in free_memmap()
326 end_pg = pfn_to_page(end_pfn); in free_memmap()
383 max_mapnr = pfn_to_page(max_pfn + PHYS_PFN_OFFSET) - mem_map; in mem_init()
/arch/microblaze/include/asm/
Dpage.h152 # define virt_to_page(kaddr) (pfn_to_page(__pa(kaddr) >> PAGE_SHIFT))
157 # define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
161 # define phys_to_page(paddr) (pfn_to_page(phys_to_pfn(paddr)))
/arch/arm64/include/asm/
Dmemory.h79 #define phys_to_page(phys) (pfn_to_page(__phys_to_pfn(phys)))
142 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
/arch/mn10300/include/asm/
Dpage.h108 #define pfn_to_page(pfn) (mem_map + ((pfn) - __pfn_disp)) macro
117 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
/arch/powerpc/mm/
Dinit_64.c178 start = (unsigned long)(pfn_to_page(vmemmap_section_start(start))); in vmemmap_populated()
383 struct page *page = pfn_to_page(addr >> PAGE_SHIFT); in vmemmap_free()
433 unsigned long pg_va = (unsigned long) pfn_to_page(pfn); in realmode_pfn_to_page()
457 struct page *page = pfn_to_page(pfn); in realmode_pfn_to_page()
/arch/score/include/asm/
Dpage.h70 #define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
75 #define phys_to_page(paddr) (pfn_to_page(phys_to_pfn(paddr)))
/arch/arm/mm/
Dinit.c110 page = pfn_to_page(pfn1); in show_mem()
111 end = pfn_to_page(pfn2 - 1) + 1; in show_mem()
126 page = pfn_to_page(pfn1); in show_mem()
389 start_pg = pfn_to_page(start_pfn - 1) + 1; in free_memmap()
390 end_pg = pfn_to_page(end_pfn - 1) + 1; in free_memmap()
464 free_highmem_page(pfn_to_page(pfn)); in free_area_high()
529 set_max_mapnr(pfn_to_page(max_pfn) - mem_map); in mem_init()
/arch/arm64/mm/
Dinit.c196 start_pg = pfn_to_page(start_pfn - 1) + 1; in free_memmap()
197 end_pg = pfn_to_page(end_pfn - 1) + 1; in free_memmap()
262 set_max_mapnr(pfn_to_page(max_pfn) - mem_map); in mem_init()
/arch/m68k/include/asm/
Dpage_mm.h152 pfn_to_page(virt_to_pfn(addr)); \
158 #define pfn_to_page(pfn) ({ \ macro
Dpage_no.h31 #define pfn_to_page(pfn) virt_to_page(pfn_to_virt(pfn)) macro
/arch/sh/mm/
Dconsistent.c60 split_page(pfn_to_page(virt_to_phys(ret) >> PAGE_SHIFT), order); in dma_generic_alloc_coherent()
76 __free_pages(pfn_to_page(pfn + k), 0); in dma_generic_free_coherent()
/arch/m32r/include/asm/
Dmmzone.h18 #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT))
Dpage.h78 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
/arch/x86/include/asm/
Dpage.h63 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
/arch/arm/include/asm/
Dmemory.h125 #define phys_to_page(phys) (pfn_to_page(__phys_to_pfn(phys)))
325 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
/arch/x86/kernel/
Dkdebugfs.c50 pg = pfn_to_page((pa + count - 1) >> PAGE_SHIFT); in setup_data_read()
129 pg = pfn_to_page((pa_data+sizeof(*data)-1) >> PAGE_SHIFT); in create_setup_data_nodes()
/arch/ia64/include/asm/
Dpage.h107 # define pfn_to_page(pfn) (vmem_map + (pfn)) macro
124 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
/arch/tile/mm/
Dhighmem.c271 return kmap_atomic(pfn_to_page(pfn)); in kmap_atomic_pfn()
275 return kmap_atomic_prot(pfn_to_page(pfn), prot); in kmap_atomic_prot_pfn()
/arch/xtensa/mm/
Dcache.c204 unsigned long phys = page_to_phys(pfn_to_page(pfn)); in local_flush_cache_page()
222 page = pfn_to_page(pfn); in update_mmu_cache()
/arch/mips/include/asm/
Dpgtable-32.h107 #define pte_page(x) pfn_to_page(pte_pfn(x))
123 #define pte_page(x) pfn_to_page(pte_pfn(x))
Dpgtable-64.h225 #define pte_page(x) pfn_to_page(pte_pfn(x))
255 #define pud_page(pud) (pfn_to_page(pud_phys(pud) >> PAGE_SHIFT))
/arch/sparc/include/asm/
Dpgtable_32.h130 return pfn_to_page((pmd_val(pmd) & SRMMU_PTD_PMASK) >> (PAGE_SHIFT-4)); in pmd_page()
269 #define pfn_pte(pfn, prot) mk_pte(pfn_to_page(pfn), prot)
284 #define pte_page(pte) pfn_to_page(pte_pfn(pte))

123456