/openbmc/linux/mm/ |
H A D | page_isolation.c | 36 struct page *page = pfn_to_page(start_pfn); in has_unmovable_pages() 56 page = pfn_to_page(pfn); in has_unmovable_pages() 328 zone = page_zone(pfn_to_page(isolate_pageblock)); in isolate_single_pageblock() 333 int mt __maybe_unused = get_pageblock_migratetype(pfn_to_page(isolate_pageblock)); in isolate_single_pageblock() 337 ret = set_migratetype_isolate(pfn_to_page(isolate_pageblock), migratetype, in isolate_single_pageblock() 412 .zone = page_zone(pfn_to_page(head_pfn)), in isolate_single_pageblock() 460 while (!PageBuddy(pfn_to_page(outer_pfn))) { in isolate_single_pageblock() 479 unset_migratetype_isolate(pfn_to_page(isolate_pageblock), migratetype); in isolate_single_pageblock() 552 unset_migratetype_isolate(pfn_to_page(isolate_start), migratetype); in start_isolate_page_range() 565 pfn_to_page(isolate_end - pageblock_nr_pages), in start_isolate_page_range() [all …]
|
H A D | cma.c | 112 zone = page_zone(pfn_to_page(base_pfn)); in cma_activate_area() 115 if (page_zone(pfn_to_page(pfn)) != zone) in cma_activate_area() 121 init_cma_reserved_pageblock(pfn_to_page(pfn)); in cma_activate_area() 138 free_reserved_page(pfn_to_page(pfn)); in cma_activate_area() 478 page = pfn_to_page(pfn); in cma_alloc() 487 __func__, pfn, pfn_to_page(pfn)); in cma_alloc() 489 trace_cma_alloc_busy_retry(cma->name, pfn, pfn_to_page(pfn), in cma_alloc()
|
H A D | memory_hotplug.c | 350 return pfn_to_page(pfn); in pfn_to_online_page() 365 return pfn_to_page(pfn); in pfn_to_online_page() 425 if (zone != page_zone(pfn_to_page(start_pfn))) in find_smallest_section_pfn() 450 if (zone != page_zone(pfn_to_page(pfn))) in find_biggest_section_pfn() 542 page_init_poison(pfn_to_page(pfn), in remove_pfn_range_from_zone() 672 (*online_page_callback)(pfn_to_page(pfn), order); in online_pages_range() 1101 SetPageVmemmapSelfHosted(pfn_to_page(pfn + i)); in mhp_init_memmap_on_memory() 1189 adjust_present_page_count(pfn_to_page(pfn), group, nr_pages); in online_pages() 1667 page = pfn_to_page(pfn); in scan_movable_pages() 1717 page = pfn_to_page(pfn); in do_migrate_range() [all …]
|
/openbmc/u-boot/arch/arm/include/asm/ |
H A D | memory.h | 72 #define pfn_to_page(pfn) ((mem_map + (pfn)) - PHYS_PFN_OFFSET) 75 #define virt_to_page(kaddr) (pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)) 92 #define pfn_to_page(pfn) \
|
/openbmc/linux/Documentation/translations/zh_CN/mm/ |
H A D | memory-model.rst | 31 每个内存模型都定义了 :c:func:`pfn_to_page` 和 :c:func:`page_to_pfn` 95 Sparse vmemmapvmemmap使用虚拟映射的内存映射来优化pfn_to_page和page_to_pfn操 115 为给定的pfns范围执行足够的内存热插拔来开启 :c:func:`pfn_to_page`,
|
/openbmc/linux/include/trace/events/ |
H A D | kmem.h | 153 pfn_to_page(__entry->pfn), 173 pfn_to_page(__entry->pfn), 199 __entry->pfn != -1UL ? pfn_to_page(__entry->pfn) : NULL, 228 __entry->pfn != -1UL ? pfn_to_page(__entry->pfn) : NULL, 262 pfn_to_page(__entry->pfn), __entry->pfn, 296 pfn_to_page(__entry->pfn),
|
/openbmc/linux/drivers/gpu/drm/i915/selftests/ |
H A D | scatterlist.c | 92 if (page != pfn_to_page(pfn)) { in expect_pfn_sg_page_iter() 122 if (page != pfn_to_page(pfn)) { in expect_pfn_sgtiter() 245 if (!page_contiguous(pfn_to_page(pfn), in alloc_table() 246 pfn_to_page(pfn + npages), in alloc_table() 254 sg_set_page(sg, pfn_to_page(pfn), npages * PAGE_SIZE, 0); in alloc_table()
|
/openbmc/linux/scripts/gdb/linux/ |
H A D | page_owner.py | 57 self.read_page_owner_by_addr(self.p_ops.pfn_to_page(pfn)) 106 page = self.p_ops.pfn_to_page(pfn) 163 page = self.p_ops.pfn_to_page(pfn)
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A D | pgtable.h | 166 #define p4d_page(p4d) (pfn_to_page(p4d_phys(p4d) >> PAGE_SHIFT)) 209 #define pud_page(pud) (pfn_to_page(pud_phys(pud) >> PAGE_SHIFT)) 244 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT)) 252 #define pte_page(x) pfn_to_page(pte_pfn(x)) 566 return pfn_to_page(pmd_pfn(pmd)); in pmd_page() 568 return pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT); in pmd_page()
|
/openbmc/linux/arch/loongarch/mm/ |
H A D | pgtable.c | 14 return pfn_to_page(virt_to_pfn(kaddr)); in dmw_virt_to_page() 20 return pfn_to_page(pte_pfn(*virt_to_kpte(kaddr))); in tlb_virt_to_page()
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | pgtable-64.h | 213 #define p4d_page(p4d) (pfn_to_page(p4d_phys(p4d) >> PAGE_SHIFT)) 299 #define pte_page(x) pfn_to_page(pte_pfn(x)) 311 #define pud_page(pud) (pfn_to_page(pud_phys(pud) >> PAGE_SHIFT))
|
/openbmc/linux/tools/testing/scatterlist/linux/ |
H A D | mm.h | 53 #define pfn_to_page(pfn) (void *)((pfn) * PAGE_SIZE) macro 54 #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | page.h | 191 #define phys_to_page(phys) pfn_to_page(phys_to_pfn(phys)) 206 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
|
/openbmc/linux/arch/alpha/include/asm/ |
H A D | pgtable.h | 194 #define pte_page(pte) pfn_to_page(pte_pfn(pte)) 223 #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> 32)) 224 #define pud_page(pud) (pfn_to_page(pud_val(pud) >> 32))
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | pgtable-64.h | 226 return pfn_to_page(__page_val_to_pfn(pud_val(pud))); in pud_page() 333 return pfn_to_page(__page_val_to_pfn(p4d_val(p4d))); in p4d_page() 390 return pfn_to_page(__page_val_to_pfn(pgd_val(pgd))); in pgd_page()
|
H A D | page.h | 181 #define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr))) 185 #define phys_to_page(paddr) (pfn_to_page(phys_to_pfn(paddr)))
|
/openbmc/linux/include/linux/ |
H A D | hmm.h | 57 return pfn_to_page(hmm_pfn & ~HMM_PFN_FLAGS); in hmm_pfn_to_page()
|
H A D | highmem-internal.h | 200 return kmap_local_page(pfn_to_page(pfn)); in kmap_local_pfn() 227 return kmap_atomic(pfn_to_page(pfn)); in kmap_atomic_pfn()
|
/openbmc/linux/tools/include/linux/ |
H A D | mm.h | 19 #define pfn_to_page(pfn) ((void *)((pfn) * PAGE_SIZE)) macro
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | pgtable_32.h | 118 return pfn_to_page(pmd_pfn(pmd)); in pmd_page() 258 #define pfn_pte(pfn, prot) mk_pte(pfn_to_page(pfn), prot) 273 #define pte_page(pte) pfn_to_page(pte_pfn(pte))
|
/openbmc/linux/include/xen/ |
H A D | page.h | 19 (pfn_to_page((unsigned long)(xen_pfn) >> (PAGE_SHIFT - XEN_PAGE_SHIFT)))
|
/openbmc/linux/kernel/power/ |
H A D | snapshot.c | 1209 clear_or_poison_free_page(pfn_to_page(pfn)); in clear_or_poison_free_pages() 1261 page = pfn_to_page(pfn); in mark_free_pages() 1286 swsusp_set_page_free(pfn_to_page(pfn + i)); in mark_free_pages() 1487 s_page = pfn_to_page(src_pfn); in copy_data_page() 1488 d_page = pfn_to_page(dst_pfn); in copy_data_page() 1517 pfn_to_page(src_pfn)); in copy_data_page() 1624 struct page *page = pfn_to_page(fr_pfn); in swsusp_free() 1760 struct page *page = pfn_to_page(pfn); in free_unnecessary_pages() 2270 page = pfn_to_page(memory_bm_next_pfn(©_bm)); in snapshot_read_next() 2432 if (PageHighMem(pfn_to_page(pfn))) in count_highmem_image_pages() [all …]
|
/openbmc/linux/arch/arm/include/asm/ |
H A D | memory.h | 154 #define phys_to_page(phys) (pfn_to_page(__phys_to_pfn(phys))) 390 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
|
/openbmc/linux/arch/openrisc/mm/ |
H A D | cache.c | 46 struct folio *folio = page_folio(pfn_to_page(pfn)); in update_cache()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | irq_64.c | 45 pages[i] = pfn_to_page(pa >> PAGE_SHIFT); in map_irq_stack()
|