/linux/mm/ |
A D | memremap.c | 68 xa_store_range(&pgmap_array, PHYS_PFN(range->start), PHYS_PFN(range->end), in pgmap_array_delete() 76 unsigned long pfn = PHYS_PFN(range->start); in pfn_first() 90 if (pfn >= PHYS_PFN(range->start) && in pgmap_pfn_valid() 91 pfn <= PHYS_PFN(range->end)) in pgmap_pfn_valid() 150 PHYS_PFN(range_len(range))); in pageunmap_range() 152 __remove_pages(PHYS_PFN(range->start), in pageunmap_range() 153 PHYS_PFN(range_len(range)), NULL); in pageunmap_range() 234 PHYS_PFN(range->end), pgmap, GFP_KERNEL)); in pagemap_range() 266 PHYS_PFN(range_len(range)), params); in pagemap_range() 296 PHYS_PFN(range->start), in pagemap_range() [all …]
|
A D | kmemleak.c | 1123 if (!IS_ENABLED(CONFIG_HIGHMEM) || PHYS_PFN(phys) < max_low_pfn) in kmemleak_alloc_phys() 1137 if (!IS_ENABLED(CONFIG_HIGHMEM) || PHYS_PFN(phys) < max_low_pfn) in kmemleak_free_part_phys() 1149 if (!IS_ENABLED(CONFIG_HIGHMEM) || PHYS_PFN(phys) < max_low_pfn) in kmemleak_not_leak_phys() 1161 if (!IS_ENABLED(CONFIG_HIGHMEM) || PHYS_PFN(phys) < max_low_pfn) in kmemleak_ignore_phys()
|
/linux/arch/powerpc/platforms/pseries/ |
A D | svm.c | 72 uv_unshare_page(PHYS_PFN(__pa(addr)), numpages); in set_memory_encrypted() 85 uv_share_page(PHYS_PFN(__pa(addr)), numpages); in set_memory_decrypted() 109 unsigned long pfn = PHYS_PFN(__pa(addr)); in dtl_cache_ctor()
|
/linux/drivers/net/ethernet/microsoft/mana/ |
A D | shm_channel.c | 186 frame_addr = PHYS_PFN(eq_addr); in mana_smc_setup_hwc() 194 frame_addr = PHYS_PFN(cq_addr); in mana_smc_setup_hwc() 202 frame_addr = PHYS_PFN(rq_addr); in mana_smc_setup_hwc() 210 frame_addr = PHYS_PFN(sq_addr); in mana_smc_setup_hwc()
|
/linux/arch/xtensa/include/asm/ |
A D | page.h | 30 #define MAX_LOW_PFN (PHYS_PFN(XCHAL_KSEG_PADDR) + \ 31 PHYS_PFN(XCHAL_KSEG_SIZE)) 35 #define MAX_LOW_PFN PHYS_PFN(0xfffffffful)
|
/linux/arch/powerpc/platforms/powernv/ |
A D | memtrace.c | 59 return remap_pfn_range(vma, vma->vm_start, PHYS_PFN(ent->start) + vma->vm_pgoff, in memtrace_mmap() 113 const unsigned long nr_pages = PHYS_PFN(size); in memtrace_alloc_node() 216 const unsigned long nr_pages = PHYS_PFN(size); in memtrace_free() 217 const unsigned long start_pfn = PHYS_PFN(start); in memtrace_free()
|
/linux/arch/powerpc/mm/kasan/ |
A D | kasan_init_32.c | 28 __set_pte_at(&init_mm, va, ptep, pfn_pte(PHYS_PFN(pa), prot), 0); in kasan_populate_pte() 74 pte_t pte = pfn_pte(PHYS_PFN(__pa(va)), PAGE_KERNEL); in kasan_init_region() 109 pfn_pte(PHYS_PFN(pa), prot)); in kasan_remap_early_shadow_ro()
|
A D | 8xx.c | 27 *new = pte_val(pte_mkhuge(pfn_pte(PHYS_PFN(__pa(block)), PAGE_KERNEL))); in kasan_init_shadow_8M() 63 pte_t pte = pfn_pte(PHYS_PFN(__pa(va)), PAGE_KERNEL); in kasan_init_region()
|
A D | book3s_32.c | 50 pte_t pte = pfn_pte(PHYS_PFN(__pa(va)), PAGE_KERNEL); in kasan_init_region()
|
/linux/mm/damon/ |
A D | paddr.c | 40 struct page *page = damon_get_page(PHYS_PFN(paddr)); in damon_pa_mkold() 132 struct page *page = damon_get_page(PHYS_PFN(paddr)); in damon_pa_young() 226 struct page *page = damon_get_page(PHYS_PFN(addr)); in damon_pa_apply_scheme()
|
/linux/drivers/nvdimm/ |
A D | pfn_devs.c | 659 unsigned long base_pfn = PHYS_PFN(base); in init_altmap_base() 667 unsigned long base_pfn = PHYS_PFN(base); in init_altmap_reserve() 689 .end_pfn = PHYS_PFN(end), in __nvdimm_setup_pfn() 702 nd_pfn->npfns = PHYS_PFN((range_len(range) - offset)); in __nvdimm_setup_pfn() 709 altmap->free = PHYS_PFN(offset - reserve); in __nvdimm_setup_pfn() 767 npfns = PHYS_PFN(size - SZ_8K); in nd_pfn_init() 808 npfns = PHYS_PFN(size - offset - end_trunc); in nd_pfn_init()
|
A D | pmem.c | 57 pfn_start = PHYS_PFN(phys); in hwpoison_clear() 58 pfn_end = pfn_start + PHYS_PFN(len); in hwpoison_clear() 277 return PHYS_PFN(pmem->size - pmem->pfn_pad - offset); in __pmem_direct_access()
|
/linux/include/linux/ |
A D | io-mapping.h | 74 return __iomap_local_pfn_prot(PHYS_PFN(phys_addr), mapping->prot); in io_mapping_map_atomic_wc() 92 return __iomap_local_pfn_prot(PHYS_PFN(phys_addr), mapping->prot); in io_mapping_map_local_wc()
|
A D | pfn.h | 22 #define PHYS_PFN(x) ((unsigned long)((x) >> PAGE_SHIFT)) macro
|
/linux/tools/testing/nvdimm/ |
A D | dax-dev.c | 20 pgoff_end = dax_range->pgoff + PHYS_PFN(range_len(range)) - 1; in dax_pgoff_to_phys()
|
A D | pmem-dax.c | 48 return PHYS_PFN(pmem->size - pmem->pfn_pad - offset); in __pmem_direct_access()
|
/linux/include/asm-generic/ |
A D | memory_model.h | 49 #define __phys_to_pfn(paddr) PHYS_PFN(paddr)
|
/linux/arch/x86/mm/ |
A D | numa_emulation.c | 203 unsigned long max_pfn = PHYS_PFN(max_addr); in uniform_size() 204 unsigned long base_pfn = PHYS_PFN(base); in uniform_size() 205 unsigned long hole_pfns = PHYS_PFN(hole); in uniform_size()
|
/linux/drivers/dax/ |
A D | super.c | 76 *pgoff = PHYS_PFN(phys_off); in bdev_dax_pgoff() 188 && pfn_t_to_pfn(pfn) == PHYS_PFN(__pa(kaddr)) in generic_fsdax_supported() 189 && pfn_t_to_pfn(end_pfn) == PHYS_PFN(__pa(end_kaddr))) in generic_fsdax_supported()
|
/linux/arch/ia64/mm/ |
A D | init.c | 72 unsigned long pfn = PHYS_PFN(paddr); in arch_dma_mark_clean() 76 } while (++pfn <= PHYS_PFN(paddr + size - 1)); in arch_dma_mark_clean()
|
/linux/arch/xtensa/mm/ |
A D | kasan_init.c | 64 set_pte(pte + j, pfn_pte(PHYS_PFN(phys), PAGE_KERNEL)); in populate()
|
/linux/kernel/ |
A D | iomem.c | 33 unsigned long pfn = PHYS_PFN(offset); in try_ram_remap()
|
/linux/arch/mips/loongson64/ |
A D | numa.c | 152 max_low_pfn = PHYS_PFN(memblock_end_of_DRAM()); in prom_meminit()
|
/linux/arch/x86/xen/ |
A D | enlighten_hvm.c | 62 shared_info_pfn = PHYS_PFN(pa); in reserve_shared_info()
|
/linux/arch/arm64/mm/ |
A D | init.c | 168 if (PHYS_PFN(addr) != pfn) in pfn_is_map_memory()
|