Home
last modified time | relevance | path

Searched refs:PFN_PHYS (Results 1 – 25 of 74) sorted by relevance

123

/linux/tools/testing/nvdimm/
A Dpmem-dax.c13 resource_size_t offset = PFN_PHYS(pgoff) + pmem->data_offset; in __pmem_direct_access()
15 if (unlikely(is_bad_pmem(&pmem->bb, PFN_PHYS(pgoff) / 512, in __pmem_direct_access()
16 PFN_PHYS(nr_pages)))) in __pmem_direct_access()
A Ddax-dev.c23 addr = PFN_PHYS(pgoff - dax_range->pgoff) + range->start; in dax_pgoff_to_phys()
32 return PFN_PHYS(page_to_pfn(page)); in dax_pgoff_to_phys()
/linux/arch/x86/mm/
A Dnuma_emulation.c38 return PFN_PHYS(absent_pages_in_range(start_pfn, end_pfn)); in mem_hole_size()
106 size = PFN_PHYS((unsigned long)(size >> PAGE_SHIFT) / nr_nodes); in split_nodes_interleave()
128 u64 dma32_end = PFN_PHYS(MAX_DMA32_PFN); in split_nodes_interleave()
207 return PFN_PHYS((max_pfn - base_pfn - hole_pfns) / nr_nodes); in uniform_size()
275 u64 dma32_end = PFN_PHYS(MAX_DMA32_PFN); in split_nodes_size_interleave_uniform()
375 const u64 max_addr = PFN_PHYS(max_pfn); in numa_emulation()
451 PFN_PHYS(max_pfn_mapped)); in numa_emulation()
A Dnuma.c241 const u64 high = PFN_PHYS(max_pfn); in numa_cleanup_meminfo()
380 PFN_PHYS(max_pfn_mapped)); in numa_alloc_distance()
581 PFN_PHYS(pfn_align) >> 20, in numa_register_memblks()
582 PFN_PHYS(PAGES_PER_SECTION) >> 20); in numa_register_memblks()
591 u64 start = PFN_PHYS(max_pfn); in numa_register_memblks()
710 0LLU, PFN_PHYS(max_pfn) - 1); in dummy_numa_init()
713 numa_add_memblk(0, 0, PFN_PHYS(max_pfn)); in dummy_numa_init()
A Damdtopology.c57 u64 start = PFN_PHYS(0); in amd_numa_init()
58 u64 end = PFN_PHYS(max_pfn); in amd_numa_init()
/linux/arch/x86/xen/
A Dsetup.c120 memblock_reserve(PFN_PHYS(start_pfn), PFN_PHYS(n_pfns)); in xen_add_extra_mem()
156 memblock_phys_free(PFN_PHYS(start_pfn), PFN_PHYS(n_pfns)); in xen_del_extra_mem()
709 start = PFN_PHYS(xen_start_info->first_p2m_pfn); in xen_reserve_xen_mfnlist()
710 size = PFN_PHYS(xen_start_info->nr_p2m_frames); in xen_reserve_xen_mfnlist()
739 mem_end = PFN_PHYS(max_pfn); in xen_memory_setup()
810 chunk_size = min(size, PFN_PHYS(extra_pages)); in xen_memory_setup()
A Dmmu_pv.c1476 make_lowmem_page_readonly(__va(PFN_PHYS(pfn))); in xen_alloc_pte_init()
1486 make_lowmem_page_readonly(__va(PFN_PHYS(pfn))); in xen_alloc_pmd_init()
1494 make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); in xen_release_pte_init()
1499 make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); in xen_release_pmd_init()
1809 xen_pt_base = PFN_PHYS(pt_base); in xen_setup_kernel_pagetable()
1898 new_area = xen_find_free_area(PFN_PHYS(n_frames)); in xen_relocate_p2m()
1913 pmd_phys = pud_phys + PFN_PHYS(n_pud); in xen_relocate_p2m()
1914 pt_phys = pmd_phys + PFN_PHYS(n_pmd); in xen_relocate_p2m()
1980 memblock_phys_free(PFN_PHYS(pfn), PAGE_SIZE * (pfn_end - pfn)); in xen_relocate_p2m()
1986 make_lowmem_page_readwrite(__va(PFN_PHYS(pfn))); in xen_relocate_p2m()
[all …]
/linux/arch/arm/include/asm/
A Ddma-direct.h15 pfn = PFN_DOWN(translate_phys_to_dma(dev, PFN_PHYS(pfn))); in pfn_to_dma()
24 pfn = PFN_DOWN(translate_dma_to_phys(dev, PFN_PHYS(pfn))); in dma_to_pfn()
/linux/arch/mips/kernel/
A Dsetup.c220 if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) { in finalize_initrd()
656 memblock_set_current_limit(PFN_PHYS(max_low_pfn)); in arch_mem_init()
675 dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); in arch_mem_init()
681 early_memtest(PFN_PHYS(ARCH_PFN_OFFSET), PFN_PHYS(max_low_pfn)); in arch_mem_init()
/linux/arch/powerpc/platforms/powernv/
A Dmemtrace.c100 clear_page(__va(PFN_PHYS(pfn))); in memtrace_clear_range()
141 arch_remove_linear_mapping(PFN_PHYS(start_pfn), size); in memtrace_alloc_node()
143 return PFN_PHYS(start_pfn); in memtrace_alloc_node()
/linux/arch/xtensa/mm/
A Dinit.c63 memblock_set_current_limit(PFN_PHYS(max_low_pfn)); in bootmem_init()
64 dma_contiguous_reserve(PFN_PHYS(max_low_pfn)); in bootmem_init()
/linux/arch/mips/mm/
A Dinit.c286 cfg->lower = ALIGN(PFN_PHYS(start_pfn), maar_align); in maar_res_walk()
287 cfg->upper = ALIGN_DOWN(PFN_PHYS(start_pfn + nr_pages), maar_align) - 1; in maar_res_walk()
440 if (!memblock_is_memory(PFN_PHYS(tmp))) in mem_init_free_highmem()
484 void *addr = phys_to_virt(PFN_PHYS(pfn)); in free_init_pages()
/linux/arch/mips/loongson64/
A Dinit.c80 memblock_add_node(PFN_PHYS(start_pfn), in szmem()
81 PFN_PHYS(node_psize), node, in szmem()
/linux/lib/
A Ddevmem_is_allowed.c22 if (iomem_is_exclusive(PFN_PHYS(pfn))) in devmem_is_allowed()
/linux/arch/sh/kernel/
A Dsetup.c239 memblock_set_node(PFN_PHYS(start_pfn), PFN_PHYS(end_pfn - start_pfn), in __add_active_range()
/linux/include/linux/
A Dpfn.h21 #define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT) macro
/linux/arch/hexagon/kernel/
A Ddma.c41 return dma_init_global_coherent(PFN_PHYS(max_low_pfn), in hexagon_dma_init()
/linux/arch/x86/include/asm/xen/
A Dpage.h241 return XMADDR(PFN_PHYS(pfn_to_mfn(PFN_DOWN(phys.paddr))) | offset); in phys_to_machine()
247 return XPADDR(PFN_PHYS(mfn_to_pfn(PFN_DOWN(machine.maddr))) | offset); in machine_to_phys()
/linux/arch/alpha/kernel/
A Dsetup.c326 memblock_add(PFN_PHYS(cluster->start_pfn), in setup_memory()
333 memblock_reserve(PFN_PHYS(cluster->start_pfn), in setup_memory()
374 if ((void *)initrd_end > phys_to_virt(PFN_PHYS(max_low_pfn))) { in setup_memory()
375 if (!move_initrd(PFN_PHYS(max_low_pfn))) in setup_memory()
379 phys_to_virt(PFN_PHYS(max_low_pfn))); in setup_memory()
/linux/include/asm-generic/
A Dmemory_model.h50 #define __pfn_to_phys(pfn) PFN_PHYS(pfn)
/linux/arch/m68k/include/asm/
A Dpage.h67 #define __pfn_to_phys(pfn) PFN_PHYS(pfn)
/linux/arch/riscv/mm/
A Dinit.c127 high_memory = (void *)(__va(PFN_PHYS(max_low_pfn))); in mem_init()
211 dma32_phys_limit = min(4UL * SZ_1G, (unsigned long)PFN_PHYS(max_low_pfn)); in setup_bootmem()
394 pte_phys = PFN_PHYS(_pmd_pfn(pmdp[pmd_idx])); in create_pmd_mapping()
437 next_phys = PFN_PHYS(_pgd_pfn(pgdp[pgd_idx])); in create_pgd_mapping()
/linux/drivers/nvdimm/
A Dpmem.c260 resource_size_t offset = PFN_PHYS(pgoff) + pmem->data_offset; in __pmem_direct_access()
262 if (unlikely(is_bad_pmem(&pmem->bb, PFN_PHYS(pgoff) / 512, in __pmem_direct_access()
263 PFN_PHYS(nr_pages)))) in __pmem_direct_access()
292 PFN_PHYS(pgoff) >> SECTOR_SHIFT, in pmem_dax_zero_page_range()
/linux/arch/mips/include/asm/mach-generic/
A Dspaces.h26 # define PHYS_OFFSET ((unsigned long)PFN_PHYS(ARCH_PFN_OFFSET))
/linux/arch/nds32/kernel/
A Dsetup.c281 memblock_reserve(PFN_PHYS(ram_start_pfn), PFN_PHYS(free_ram_start_pfn - ram_start_pfn)); in setup_memory()

Completed in 35 milliseconds

123