Searched refs:pfn_to_page (Results 1 – 25 of 145) sorted by relevance
123456
72 #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))
67 #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)
81 #define phys_to_page(phys) (pfn_to_page(phys >> PAGE_SHIFT))91 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
77 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()
152 # 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)))
108 #define pfn_to_page(pfn) (mem_map + ((pfn) - __pfn_disp)) macro118 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
185 start = (unsigned long)(pfn_to_page(vmemmap_section_start(start))); in vmemmap_populated()336 struct page *page = pfn_to_page(addr >> PAGE_SHIFT); in vmemmap_free()386 unsigned long pg_va = (unsigned long) pfn_to_page(pfn); in realmode_pfn_to_page()410 struct page *page = pfn_to_page(pfn); in realmode_pfn_to_page()
175 put_page(pfn_to_page(mem->hpas[j] >> in mm_iommu_get()195 put_page(pfn_to_page(mem->hpas[j] >> in mm_iommu_get()233 page = pfn_to_page(mem->hpas[i] >> PAGE_SHIFT); in mm_iommu_unpin()
70 #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)))
149 pfn_to_page(virt_to_pfn(addr)); \155 #define pfn_to_page(pfn) ({ \ macro
28 #define pfn_to_page(pfn) virt_to_page(pfn_to_virt(pfn)) macro
60 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()
18 #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT))
108 #define phys_to_page(phys) (pfn_to_page(__phys_to_pfn(phys)))209 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
26 #define pte_page(x) pfn_to_page(pte_pfn(x))
76 return pfn_to_page(boot_pfn - (arch_phys_to_idmap_offset >> PAGE_SHIFT)); in boot_pfn_to_page()
127 #define phys_to_page(phys) (pfn_to_page(__phys_to_pfn(phys)))347 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
68 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
50 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()
107 # define pfn_to_page(pfn) (vmem_map + (pfn)) macro125 #define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
272 return kmap_atomic(pfn_to_page(pfn)); in kmap_atomic_pfn()276 return kmap_atomic_prot(pfn_to_page(pfn), prot); in kmap_atomic_prot_pfn()
341 start_pg = pfn_to_page(start_pfn - 1) + 1; in free_memmap()342 end_pg = pfn_to_page(end_pfn - 1) + 1; in free_memmap()413 set_max_mapnr(pfn_to_page(max_pfn) - mem_map); in mem_init()
225 page = pfn_to_page(__pa(table) >> PAGE_SHIFT); in page_table_free()253 page = pfn_to_page(__pa(table) >> PAGE_SHIFT); in page_table_free_rcu()276 struct page *page = pfn_to_page(__pa(table) >> PAGE_SHIFT); in __tlb_remove_table()
131 return pfn_to_page((pmd_val(pmd) & SRMMU_PTD_PMASK) >> (PAGE_SHIFT-4)); in pmd_page()262 #define pfn_pte(pfn, prot) mk_pte(pfn_to_page(pfn), prot)277 #define pte_page(pte) pfn_to_page(pte_pfn(pte))
229 #define pte_page(x) pfn_to_page(pte_pfn(x))259 #define pud_page(pud) (pfn_to_page(pud_phys(pud) >> PAGE_SHIFT))