/kernel/linux/linux-5.10/arch/x86/mm/ |
D | init.c | 413 limit_pfn = PFN_DOWN(end); in split_mem_range() 416 pfn = start_pfn = PFN_DOWN(start); in split_mem_range() 425 end_pfn = PFN_DOWN(PMD_SIZE); in split_mem_range() 427 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 429 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 439 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 441 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 443 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 444 if (end_pfn > round_down(limit_pfn, PFN_DOWN(PMD_SIZE))) in split_mem_range() 445 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() [all …]
|
/kernel/linux/linux-5.10/arch/riscv/mm/ |
D | kasan_init.c | 28 pfn_pmd(PFN_DOWN in kasan_early_init() 35 pfn_pgd(PFN_DOWN in kasan_early_init() 45 pfn_pgd(PFN_DOWN in kasan_early_init() 76 pfn_pmd(PFN_DOWN(__pa(&pte[offset])), in populate() 81 pfn_pgd(PFN_DOWN(__pa(&pmd[offset])), in populate()
|
D | init.c | 55 max_zone_pfns[ZONE_DMA32] = PFN_DOWN(dma32_phys_limit); in zone_sizes_init() 207 max_pfn = PFN_DOWN(dram_end); in setup_bootmem() 312 ptep[pte_idx] = pfn_pte(PFN_DOWN(pa), prot); in create_pte_mapping() 369 pmdp[pmd_idx] = pfn_pmd(PFN_DOWN(pa), prot); in create_pmd_mapping() 375 pmdp[pmd_idx] = pfn_pmd(PFN_DOWN(pte_phys), PAGE_TABLE); in create_pmd_mapping() 411 pgdp[pgd_idx] = pfn_pgd(PFN_DOWN(pa), prot); in create_pgd_mapping() 417 pgdp[pgd_idx] = pfn_pgd(PFN_DOWN(next_phys), PAGE_TABLE); in create_pgd_mapping() 483 pfn_base = PFN_DOWN(load_pa); in setup_vm() 671 csr_write(CSR_SATP, PFN_DOWN(__pa_symbol(swapper_pg_dir)) | SATP_MODE); in setup_vm_final()
|
/kernel/linux/linux-5.10/arch/x86/xen/ |
D | p2m.c | 351 pfn_pte(PFN_DOWN(__pa(p2m_missing)), PAGE_KERNEL_RO)); in xen_rebuild_p2m_list() 353 pfn_pte(PFN_DOWN(__pa(p2m_identity)), PAGE_KERNEL_RO)); in xen_rebuild_p2m_list() 386 pfn_pte(PFN_DOWN(__pa(mfns)), PAGE_KERNEL)); in xen_rebuild_p2m_list() 396 pfn_pte(PFN_DOWN(__pa(mfns)), PAGE_KERNEL_RO)); in xen_rebuild_p2m_list() 455 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_identity))) in get_phys_to_machine() 586 if (p2m_pfn == PFN_DOWN(__pa(p2m_identity)) || in xen_alloc_p2m_entry() 587 p2m_pfn == PFN_DOWN(__pa(p2m_missing))) { in xen_alloc_p2m_entry() 595 if (p2m_pfn == PFN_DOWN(__pa(p2m_missing))) in xen_alloc_p2m_entry() 606 pfn_pte(PFN_DOWN(__pa(p2m)), PAGE_KERNEL)); in xen_alloc_p2m_entry() 669 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_missing))) in __set_phys_to_machine() [all …]
|
D | mmu_pv.c | 735 xen_do_pin(MMUEXT_PIN_L4_TABLE, PFN_DOWN(__pa(pgd))); in __xen_pgd_pin() 740 PFN_DOWN(__pa(user_pgd))); in __xen_pgd_pin() 843 xen_do_pin(MMUEXT_UNPIN_TABLE, PFN_DOWN(__pa(pgd))); in __xen_pgd_unpin() 847 PFN_DOWN(__pa(user_pgd))); in __xen_pgd_unpin() 1036 pin_pagetable_pfn(MMUEXT_UNPIN_TABLE, PFN_DOWN(pa)); in xen_cleanmfnmap_free_pgtbl() 1304 mfn = pfn_to_mfn(PFN_DOWN(cr3)); in __xen_write_cr3() 1654 if (*pt_base == PFN_DOWN(__pa(addr))) { in check_pt_base() 1659 if (*pt_end == PFN_DOWN(__pa(addr))) { in check_pt_base() 1690 max_pfn_mapped = PFN_DOWN(__pa(xen_start_info->mfn_list)); in xen_setup_kernel_pagetable() 1692 pt_base = PFN_DOWN(__pa(xen_start_info->pt_base)); in xen_setup_kernel_pagetable() [all …]
|
/kernel/linux/linux-5.10/arch/csky/kernel/ |
D | setup.c | 29 unsigned long lowmem_size = PFN_DOWN(LOWMEM_LIMIT - PHYS_OFFSET_OFFSET); in csky_memblock_init() 30 unsigned long sseg_size = PFN_DOWN(SSEG_SIZE - PHYS_OFFSET_OFFSET); in csky_memblock_init() 42 max_low_pfn = max_pfn = PFN_DOWN(memblock_end_of_DRAM()); in csky_memblock_init()
|
/kernel/linux/linux-5.10/arch/sparc/power/ |
D | hibernate.c | 24 unsigned long nosave_begin_pfn = PFN_DOWN((unsigned long)&__nosave_begin); in pfn_is_nosave() 25 unsigned long nosave_end_pfn = PFN_DOWN((unsigned long)&__nosave_end); in pfn_is_nosave()
|
/kernel/linux/linux-5.10/arch/csky/include/asm/ |
D | page.h | 51 #define phys_to_page(paddr) (pfn_to_page(PFN_DOWN(paddr))) 77 #define ARCH_PFN_OFFSET PFN_DOWN(va_pa_offset + PHYS_OFFSET_OFFSET) 84 #define MAP_NR(x) PFN_DOWN((unsigned long)(x) - PAGE_OFFSET - \
|
/kernel/linux/linux-5.10/arch/hexagon/mm/ |
D | init.c | 133 bootmem_lastpg = PFN_DOWN(size); in early_mem() 158 bootmem_lastpg = PFN_DOWN((bootmem_lastpg << PAGE_SHIFT) & in setup_arch_memory() 171 max_low_pfn = bootmem_lastpg - PFN_DOWN(DMA_RESERVED_BYTES); in setup_arch_memory()
|
/kernel/linux/linux-5.10/arch/arc/mm/ |
D | init.c | 104 max_low_pfn = max_pfn = PFN_DOWN(low_mem_start + low_mem_sz); in setup_arch_memory() 158 min_high_pfn = PFN_DOWN(high_mem_start); in setup_arch_memory() 159 max_high_pfn = PFN_DOWN(high_mem_start + high_mem_sz); in setup_arch_memory()
|
/kernel/linux/linux-5.10/arch/m68k/mm/ |
D | mcfmmu.c | 82 max_zone_pfn[ZONE_DMA] = PFN_DOWN(_ramend); in paging_init() 180 num_pages = PFN_DOWN(_ramend - _rambase); in cf_bootmem_alloc() 184 min_low_pfn = PFN_DOWN(_rambase); in cf_bootmem_alloc() 185 max_pfn = max_low_pfn = PFN_DOWN(_ramend); in cf_bootmem_alloc()
|
/kernel/linux/linux-5.10/arch/sh/mm/ |
D | numa.c | 33 start_pfn = PFN_DOWN(start); in setup_bootmem_node() 34 end_pfn = PFN_DOWN(end); in setup_bootmem_node()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
D | setup.c | 302 max_pfn = PFN_DOWN(ramend); in bootmem_init() 310 if (start >= PFN_DOWN(HIGHMEM_START)) in bootmem_init() 312 if (end > PFN_DOWN(HIGHMEM_START)) in bootmem_init() 313 end = PFN_DOWN(HIGHMEM_START); in bootmem_init() 321 if (max_pfn > PFN_DOWN(HIGHMEM_START)) { in bootmem_init() 323 highstart_pfn = PFN_DOWN(HIGHMEM_START); in bootmem_init() 326 max_low_pfn = PFN_DOWN(HIGHMEM_START); in bootmem_init()
|
/kernel/linux/linux-5.10/arch/arm/include/asm/ |
D | dma-direct.h | 15 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()
|
/kernel/linux/linux-5.10/arch/powerpc/mm/ |
D | pgtable_32.c | 185 PFN_DOWN((unsigned long)_sinittext); in mark_initmem_nx() 207 PFN_DOWN((unsigned long)_stext); in mark_rodata_ro() 216 PFN_DOWN((unsigned long)__start_rodata); in mark_rodata_ro()
|
/kernel/linux/linux-5.10/arch/nios2/include/asm/ |
D | page.h | 98 # define virt_to_page(vaddr) pfn_to_page(PFN_DOWN(virt_to_phys(vaddr))) 99 # define virt_addr_valid(vaddr) pfn_valid(PFN_DOWN(virt_to_phys(vaddr)))
|
/kernel/linux/linux-5.10/arch/mips/mm/ |
D | ioremap.c | 79 pfn = PFN_DOWN(phys_addr); in ioremap_prot() 80 last_pfn = PFN_DOWN(last_addr); in ioremap_prot()
|
/kernel/linux/linux-5.10/arch/s390/mm/ |
D | init.c | 123 max_zone_pfns[ZONE_DMA] = PFN_DOWN(MAX_DMA_ADDRESS); in paging_init() 284 unsigned long start_pfn = PFN_DOWN(start); in arch_add_memory() 285 unsigned long size_pages = PFN_DOWN(size); in arch_add_memory()
|
/kernel/linux/linux-5.10/arch/arm64/mm/ |
D | init.c | 232 max_zone_pfns[ZONE_DMA] = PFN_DOWN(arm64_dma_phys_limit); in zone_sizes_init() 235 max_zone_pfns[ZONE_DMA32] = PFN_DOWN(dma32_phys_limit); in zone_sizes_init() 445 max = PFN_DOWN(memblock_end_of_DRAM()); in bootmem_init() 560 max_pfn > PFN_DOWN(arm64_dma_phys_limit)) in mem_init()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/xen/ |
D | page.h | 241 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() 306 #define virt_to_pfn(v) (PFN_DOWN(__pa(v)))
|
/kernel/linux/linux-5.10/arch/m68k/kernel/ |
D | setup_no.c | 153 min_low_pfn = PFN_DOWN(memory_start); in setup_arch() 154 max_pfn = max_low_pfn = PFN_DOWN(memory_end); in setup_arch()
|
/kernel/linux/linux-5.10/drivers/xen/ |
D | swiotlb-xen.c | 114 if (pfn_valid(PFN_DOWN(paddr))) { in is_xen_swiotlb_buffer() 416 if (pfn_valid(PFN_DOWN(dma_to_phys(dev, dev_addr)))) in xen_swiotlb_map_page() 440 if (pfn_valid(PFN_DOWN(dma_to_phys(hwdev, dev_addr)))) in xen_swiotlb_unmap_page() 458 if (pfn_valid(PFN_DOWN(dma_to_phys(dev, dma_addr)))) in xen_swiotlb_sync_single_for_cpu() 478 if (pfn_valid(PFN_DOWN(dma_to_phys(dev, dma_addr)))) in xen_swiotlb_sync_single_for_device()
|
/kernel/linux/linux-5.10/arch/xtensa/mm/ |
D | init.c | 57 max_pfn = PFN_DOWN(memblock_end_of_DRAM()); in bootmem_init() 93 unsigned long end = PFN_DOWN(range_end); in free_highpages()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | dumpstack_64.c | 66 [PFN_DOWN(CEA_ESTACK_OFFS(st)) ... \ 67 PFN_DOWN(CEA_ESTACK_OFFS(st) + CEA_ESTACK_SIZE(st) - 1)] = { \
|
/kernel/linux/linux-5.10/arch/csky/mm/ |
D | tcm.c | 34 if (pfn_valid(PFN_DOWN(CONFIG_ITCM_RAM_BASE))) 55 if (pfn_valid(PFN_DOWN(CONFIG_DTCM_RAM_BASE)))
|