Home
last modified time | relevance | path

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

123

/linux/mm/
A Dmemremap.c68 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 Dkmemleak.c1123 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 Dsvm.c72 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 Dshm_channel.c186 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 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/arch/powerpc/platforms/powernv/
A Dmemtrace.c59 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 Dkasan_init_32.c28 __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 D8xx.c27 *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 Dbook3s_32.c50 pte_t pte = pfn_pte(PHYS_PFN(__pa(va)), PAGE_KERNEL); in kasan_init_region()
/linux/mm/damon/
A Dpaddr.c40 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 Dpfn_devs.c659 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 Dpmem.c57 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 Dio-mapping.h74 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 Dpfn.h22 #define PHYS_PFN(x) ((unsigned long)((x) >> PAGE_SHIFT)) macro
/linux/tools/testing/nvdimm/
A Ddax-dev.c20 pgoff_end = dax_range->pgoff + PHYS_PFN(range_len(range)) - 1; in dax_pgoff_to_phys()
A Dpmem-dax.c48 return PHYS_PFN(pmem->size - pmem->pfn_pad - offset); in __pmem_direct_access()
/linux/include/asm-generic/
A Dmemory_model.h49 #define __phys_to_pfn(paddr) PHYS_PFN(paddr)
/linux/arch/x86/mm/
A 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/drivers/dax/
A Dsuper.c76 *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 Dinit.c72 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 Dkasan_init.c64 set_pte(pte + j, pfn_pte(PHYS_PFN(phys), PAGE_KERNEL)); in populate()
/linux/kernel/
A Diomem.c33 unsigned long pfn = PHYS_PFN(offset); in try_ram_remap()
/linux/arch/mips/loongson64/
A Dnuma.c152 max_low_pfn = PHYS_PFN(memblock_end_of_DRAM()); in prom_meminit()
/linux/arch/x86/xen/
A Denlighten_hvm.c62 shared_info_pfn = PHYS_PFN(pa); in reserve_shared_info()
/linux/arch/arm64/mm/
A Dinit.c168 if (PHYS_PFN(addr) != pfn) in pfn_is_map_memory()

Completed in 40 milliseconds

123