Home
last modified time | relevance | path

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

123456789

/linux-6.1.9/mm/
Dpage_isolation.c36 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()
553 unset_migratetype_isolate(pfn_to_page(isolate_start), migratetype); in start_isolate_page_range()
566 pfn_to_page(isolate_end - pageblock_nr_pages), in start_isolate_page_range()
[all …]
Dcma.c111 zone = page_zone(pfn_to_page(base_pfn)); in cma_activate_area()
114 if (page_zone(pfn_to_page(pfn)) != zone) in cma_activate_area()
120 init_cma_reserved_pageblock(pfn_to_page(pfn)); in cma_activate_area()
137 free_reserved_page(pfn_to_page(pfn)); in cma_activate_area()
477 page = pfn_to_page(pfn); in cma_alloc()
486 __func__, pfn_to_page(pfn)); in cma_alloc()
488 trace_cma_alloc_busy_retry(cma->name, pfn, pfn_to_page(pfn), in cma_alloc()
Dmemory_hotplug.c283 return pfn_to_page(pfn); in pfn_to_online_page()
298 return pfn_to_page(pfn); in pfn_to_online_page()
358 if (zone != page_zone(pfn_to_page(start_pfn))) in find_smallest_section_pfn()
383 if (zone != page_zone(pfn_to_page(pfn))) in find_biggest_section_pfn()
475 page_init_poison(pfn_to_page(pfn), in remove_pfn_range_from_zone()
610 (*online_page_callback)(pfn_to_page(pfn), order); in online_pages_range()
1039 SetPageVmemmapSelfHosted(pfn_to_page(pfn + i)); in mhp_init_memmap_on_memory()
1068 remove_pfn_range_from_zone(page_zone(pfn_to_page(pfn)), pfn, nr_pages); in mhp_deinit_memmap_on_memory()
1125 adjust_present_page_count(pfn_to_page(pfn), group, nr_pages); in online_pages()
1587 page = pfn_to_page(pfn); in scan_movable_pages()
[all …]
Dsparse.c642 unsigned long start = (unsigned long) pfn_to_page(pfn); in depopulate_section_memmap()
715 kvfree(pfn_to_page(pfn)); in depopulate_section_memmap()
860 return pfn_to_page(pfn); in section_activate()
919 memmap = pfn_to_page(section_nr_to_pfn(section_nr)); in sparse_add_section()
929 clear_hwpoisoned_pages(pfn_to_page(pfn) + map_offset, in sparse_remove_section()
Ddebug_vm_pgtable.c138 page = (args->pte_pfn != ULONG_MAX) ? pfn_to_page(args->pte_pfn) : NULL; in pte_advanced_tests()
238 page = (args->pmd_pfn != ULONG_MAX) ? pfn_to_page(args->pmd_pfn) : NULL; in pmd_advanced_tests()
376 page = (args->pud_pfn != ULONG_MAX) ? pfn_to_page(args->pud_pfn) : NULL; in pud_advanced_tests()
639 page = (args->pte_pfn != ULONG_MAX) ? pfn_to_page(args->pte_pfn) : NULL; in pte_clear_tests()
899 page = (args->pte_pfn != ULONG_MAX) ? pfn_to_page(args->pte_pfn) : NULL; in swap_migration_tests()
935 page = pfn_to_page(args->fixed_pmd_pfn); in hugetlb_basic_tests()
1034 page = pfn_to_page(args->pud_pfn); in destroy_args()
1049 page = pfn_to_page(args->pmd_pfn); in destroy_args()
1058 page = pfn_to_page(args->pte_pfn); in destroy_args()
Dpage_table_check.c70 page = pfn_to_page(pfn); in page_table_check_clear()
106 page = pfn_to_page(pfn); in page_table_check_set()
/linux-6.1.9/include/trace/events/
Dkmem.h153 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),
/linux-6.1.9/Documentation/translations/zh_CN/mm/
Dmemory-model.rst31 每个内存模型都定义了 :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`,
/linux-6.1.9/drivers/gpu/drm/i915/selftests/
Dscatterlist.c92 if (page != pfn_to_page(pfn)) { in expect_pfn_sg_page_iter()
122 if (page != pfn_to_page(pfn)) { in expect_pfn_sgtiter()
241 if (!page_contiguous(pfn_to_page(pfn), in alloc_table()
242 pfn_to_page(pfn + npages), in alloc_table()
250 sg_set_page(sg, pfn_to_page(pfn), npages * PAGE_SIZE, 0); in alloc_table()
/linux-6.1.9/arch/loongarch/include/asm/
Dpgtable.h148 #define p4d_page(p4d) (pfn_to_page(p4d_phys(p4d) >> PAGE_SHIFT))
191 #define pud_page(pud) (pfn_to_page(pud_phys(pud) >> PAGE_SHIFT))
226 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))
234 #define pte_page(x) pfn_to_page(pte_pfn(x))
514 return pfn_to_page(pmd_pfn(pmd)); in pmd_page()
516 return pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT); in pmd_page()
/linux-6.1.9/arch/mips/include/asm/
Dpgtable-64.h213 #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))
/linux-6.1.9/tools/testing/scatterlist/linux/
Dmm.h53 #define pfn_to_page(pfn) (void *)((pfn) * PAGE_SIZE) macro
54 #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
/linux-6.1.9/arch/riscv/include/asm/
Dpgtable-64.h192 return pfn_to_page(__page_val_to_pfn(pud_val(pud))); in pud_page()
299 return pfn_to_page(__page_val_to_pfn(p4d_val(p4d))); in p4d_page()
362 return pfn_to_page(__page_val_to_pfn(pgd_val(pgd))); in pgd_page()
Dpage.h166 #define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
170 #define phys_to_page(paddr) (pfn_to_page(phys_to_pfn(paddr)))
/linux-6.1.9/arch/alpha/include/asm/
Dpgtable.h191 #define pte_page(pte) pfn_to_page(pte_pfn(pte))
220 #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> 32))
221 #define pud_page(pud) (pfn_to_page(pud_val(pud) >> 32))
/linux-6.1.9/arch/s390/include/asm/
Dpage.h194 #define phys_to_page(phys) pfn_to_page(phys_to_pfn(phys))
201 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
/linux-6.1.9/include/linux/
Dhighmem-internal.h197 return kmap_local_page(pfn_to_page(pfn)); in kmap_local_pfn()
224 return kmap_atomic(pfn_to_page(pfn)); in kmap_atomic_pfn()
Dhmm.h57 return pfn_to_page(hmm_pfn & ~HMM_PFN_FLAGS); in hmm_pfn_to_page()
/linux-6.1.9/arch/sparc/include/asm/
Dpgtable_32.h120 return pfn_to_page(pmd_pfn(pmd)); in pmd_page()
259 #define pfn_pte(pfn, prot) mk_pte(pfn_to_page(pfn), prot)
274 #define pte_page(pte) pfn_to_page(pte_pfn(pte))
/linux-6.1.9/arch/arm/include/asm/
Dmemory.h149 #define phys_to_page(phys) (pfn_to_page(__phys_to_pfn(phys)))
383 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr))
/linux-6.1.9/include/xen/
Dpage.h19 (pfn_to_page((unsigned long)(xen_pfn) >> (PAGE_SHIFT - XEN_PAGE_SHIFT)))
/linux-6.1.9/kernel/power/
Dsnapshot.c1199 clear_or_poison_free_page(pfn_to_page(pfn)); in clear_or_poison_free_pages()
1415 s_page = pfn_to_page(src_pfn); in copy_data_page()
1416 d_page = pfn_to_page(dst_pfn); in copy_data_page()
1443 safe_copy_page(page_address(pfn_to_page(dst_pfn)), in copy_data_page()
1444 pfn_to_page(src_pfn)); in copy_data_page()
1529 struct page *page = pfn_to_page(fr_pfn); in swsusp_free()
1664 struct page *page = pfn_to_page(pfn); in free_unnecessary_pages()
2158 page = pfn_to_page(memory_bm_next_pfn(&copy_bm)); in snapshot_read_next()
2305 if (PageHighMem(pfn_to_page(pfn))) in count_highmem_image_pages()
2415 tmp = pfn_to_page(memory_bm_next_pfn(safe_highmem_bm)); in get_highmem_page_buffer()
[all …]
/linux-6.1.9/arch/openrisc/mm/
Dcache.c46 struct page *page = pfn_to_page(pfn); in update_cache()
/linux-6.1.9/arch/xtensa/mm/
Dcache.c198 unsigned long phys = page_to_phys(pfn_to_page(pfn)); in local_flush_cache_page()
219 page = pfn_to_page(pfn); in update_mmu_cache()
/linux-6.1.9/arch/nios2/include/asm/
Dpgtable.h171 #define pte_page(pte) (pfn_to_page(pte_pfn(pte)))
220 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT))

123456789