Home
last modified time | relevance | path

Searched refs:PHYS_PFN (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v4.19/kernel/
Dmemremap.c22 unsigned long phys_pgoff = PHYS_PFN(res->start) + pgoff; in order_at()
25 nr_pages = PHYS_PFN(resource_size(res)); in order_at()
81 radix_tree_delete(&pgmap_radix, PHYS_PFN(res->start) + pgoff); in pgmap_radix_release()
144 untrack_pfn(NULL, PHYS_PFN(align_start), align_size); in devm_memremap_pages_release()
188 conflict_pgmap = get_dev_pagemap(PHYS_PFN(align_start), NULL); in devm_memremap_pages()
195 conflict_pgmap = get_dev_pagemap(PHYS_PFN(align_end), NULL); in devm_memremap_pages()
224 PHYS_PFN(res->start) + pgoff, order, pgmap); in devm_memremap_pages()
238 error = track_pfn_remap(NULL, &pgprot, PHYS_PFN(align_start), 0, in devm_memremap_pages()
280 untrack_pfn(NULL, PHYS_PFN(align_start), align_size); in devm_memremap_pages()
323 pgmap = radix_tree_lookup(&pgmap_radix, PHYS_PFN(phys)); in get_dev_pagemap()
Diomem.c33 unsigned long pfn = PHYS_PFN(offset); in try_ram_remap()
/Linux-v4.19/drivers/nvdimm/
Dpfn.h55 #define PHYS_SECTION_ALIGN_DOWN(x) PFN_PHYS(PFN_SECTION_ALIGN_DOWN(PHYS_PFN(x)))
56 #define PHYS_SECTION_ALIGN_UP(x) PFN_PHYS(PFN_SECTION_ALIGN_UP(PHYS_PFN(x)))
Dpfn_devs.c530 unsigned long base_pfn = PHYS_PFN(base); in init_altmap_base()
537 unsigned long reserve = PHYS_PFN(SZ_8K); in init_altmap_reserve()
538 unsigned long base_pfn = PHYS_PFN(base); in init_altmap_reserve()
578 altmap->free = PHYS_PFN(offset - SZ_8K); in __nvdimm_setup_pfn()
Dpmem.c64 pfn_start = PHYS_PFN(phys); in hwpoison_clear()
65 pfn_end = pfn_start + PHYS_PFN(len); in hwpoison_clear()
267 return PHYS_PFN(pmem->size - pmem->pfn_pad - offset); in __pmem_direct_access()
Dregion_devs.c42 unsigned long pfn = PHYS_PFN(res->start); in nvdimm_map_flush()
48 unsigned long pfn_j = PHYS_PFN(res_j->start); in nvdimm_map_flush()
/Linux-v4.19/arch/xtensa/include/asm/
Dpage.h30 #define MAX_LOW_PFN (PHYS_PFN(XCHAL_KSEG_PADDR) + \
31 PHYS_PFN(XCHAL_KSEG_SIZE))
35 #define MAX_LOW_PFN PHYS_PFN(0xfffffffful)
/Linux-v4.19/include/linux/
Dpfn.h22 #define PHYS_PFN(x) ((unsigned long)((x) >> PAGE_SHIFT)) macro
Ddma-mapping.h329 BUG_ON(pfn_valid(PHYS_PFN(phys_addr))); in dma_map_resource()
/Linux-v4.19/tools/testing/nvdimm/
Ddax-dev.c29 pgoff -= PHYS_PFN(resource_size(res)); in dax_pgoff_to_phys()
Dpmem-dax.c56 return PHYS_PFN(pmem->size - pmem->pfn_pad - offset); in __pmem_direct_access()
/Linux-v4.19/include/asm-generic/
Dmemory_model.h78 #define __phys_to_pfn(paddr) PHYS_PFN(paddr)
/Linux-v4.19/arch/x86/mm/
Dnuma_emulation.c203 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-v4.19/arch/xtensa/mm/
Dkasan_init.c58 set_pte(pte + j, pfn_pte(PHYS_PFN(phys), PAGE_KERNEL)); in populate()
/Linux-v4.19/arch/x86/xen/
Denlighten_hvm.c58 shared_info_pfn = PHYS_PFN(pa); in reserve_shared_info()
/Linux-v4.19/arch/xtensa/kernel/
Dpci-dma.c207 page = pfn_to_page(PHYS_PFN(dma_to_phys(dev, dma_handle))); in arch_dma_free()
/Linux-v4.19/arch/powerpc/kernel/
Dfadump.c151 unsigned long start_pfn = PHYS_PFN(RMA_START); in is_boot_memory_area_contiguous()
152 unsigned long end_pfn = PHYS_PFN(RMA_START + fw_dump.boot_memory_size); in is_boot_memory_area_contiguous()
1299 unsigned long start_pfn = PHYS_PFN(start); in fadump_release_reserved_area()
1300 unsigned long end_pfn = PHYS_PFN(end); in fadump_release_reserved_area()
/Linux-v4.19/mm/
Dkmemleak.c1199 if (!IS_ENABLED(CONFIG_HIGHMEM) || PHYS_PFN(phys) < max_low_pfn) in kmemleak_alloc_phys()
1213 if (!IS_ENABLED(CONFIG_HIGHMEM) || PHYS_PFN(phys) < max_low_pfn) in kmemleak_free_part_phys()
1225 if (!IS_ENABLED(CONFIG_HIGHMEM) || PHYS_PFN(phys) < max_low_pfn) in kmemleak_not_leak_phys()
1237 if (!IS_ENABLED(CONFIG_HIGHMEM) || PHYS_PFN(phys) < max_low_pfn) in kmemleak_ignore_phys()
Dhmm.c1120 untrack_pfn(NULL, PHYS_PFN(align_start), align_size); in hmm_devmem_pages_create()
/Linux-v4.19/fs/
Ddax.c783 rc = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), &kaddr, NULL); in copy_user_dax()
1101 length = dax_direct_access(iomap->dax_dev, pgoff, PHYS_PFN(size), in dax_iomap_pfn()
1110 if (pfn_t_to_pfn(*pfnp) & (PHYS_PFN(size)-1)) in dax_iomap_pfn()
1241 map_len = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), in dax_iomap_actor()
/Linux-v4.19/arch/mips/kernel/
Dsetup.c509 if (PHYS_PFN(mapstart_addr) < mapstart) in bootmem_init()
515 mapstart = PHYS_PFN(mapstart_addr); in bootmem_init()
/Linux-v4.19/drivers/misc/
Dvmw_balloon.c433 unsigned long pfn = PHYS_PFN(virt_to_phys(b->batch_page)); in vmballoon_send_batched_lock()
481 unsigned long pfn = PHYS_PFN(virt_to_phys(b->batch_page)); in vmballoon_send_batched_unlock()
/Linux-v4.19/drivers/dax/
Dsuper.c58 *pgoff = PHYS_PFN(phys_off); in bdev_dax_pgoff()
Ddevice.c239 pgoff -= PHYS_PFN(resource_size(res)); in dax_pgoff_to_phys()
/Linux-v4.19/drivers/xen/
Dswiotlb-xen.c685 unsigned long bfn = PHYS_PFN(dma_to_phys(dev, handle)); in xen_swiotlb_get_sgtable()

12