Home
last modified time | relevance | path

Searched refs:PFN_DOWN (Results 1 – 25 of 118) sorted by relevance

12345

/openbmc/linux/arch/riscv/mm/
H A Dkasan_init.c36 set_pmd(pmd, pfn_pmd(PFN_DOWN(__pa(p)), PAGE_TABLE)); in kasan_populate_pte()
44 set_pte(ptep, pfn_pte(PFN_DOWN(phys_addr), PAGE_KERNEL)); in kasan_populate_pte()
58 set_pud(pud, pfn_pud(PFN_DOWN(__pa(p)), PAGE_TABLE)); in kasan_populate_pmd()
70 set_pmd(pmdp, pfn_pmd(PFN_DOWN(phys_addr), PAGE_KERNEL)); in kasan_populate_pmd()
89 set_p4d(p4d, pfn_p4d(PFN_DOWN(__pa(p)), PAGE_TABLE)); in kasan_populate_pud()
120 set_pgd(pgd, pfn_pgd(PFN_DOWN(__pa(p)), PAGE_TABLE)); in kasan_populate_p4d()
335 pfn_pmd(PFN_DOWN in kasan_early_init()
342 pfn_pud(PFN_DOWN in kasan_early_init()
350 pfn_p4d(PFN_DOWN in kasan_early_init()
460 pfn_pgd(PFN_DOWN(__pa(tmp_p4d)), PAGE_TABLE)); in create_tmp_mapping()
[all …]
H A Dinit.c75 max_zone_pfns[ZONE_DMA32] = PFN_DOWN(dma32_phys_limit); in zone_sizes_init()
262 max_low_pfn = max_pfn = PFN_DOWN(phys_ram_end); in setup_bootmem()
390 ptep[pte_idx] = pfn_pte(PFN_DOWN(pa), prot); in create_pte_mapping()
472 pmdp[pmd_idx] = pfn_pmd(PFN_DOWN(pa), prot); in create_pmd_mapping()
478 pmdp[pmd_idx] = pfn_pmd(PFN_DOWN(pte_phys), PAGE_TABLE); in create_pmd_mapping()
575 pudp[pud_index] = pfn_pud(PFN_DOWN(pa), prot); in create_pud_mapping()
581 pudp[pud_index] = pfn_pud(PFN_DOWN(next_phys), PAGE_TABLE); in create_pud_mapping()
602 p4dp[p4d_index] = pfn_p4d(PFN_DOWN(pa), prot); in create_p4d_mapping()
608 p4dp[p4d_index] = pfn_p4d(PFN_DOWN(next_phys), PAGE_TABLE); in create_p4d_mapping()
660 pgdp[pgd_idx] = pfn_pgd(PFN_DOWN(pa), prot); in create_pgd_mapping()
[all …]
/openbmc/linux/arch/x86/mm/
H A Dinit.c406 limit_pfn = PFN_DOWN(end); in split_mem_range()
409 pfn = start_pfn = PFN_DOWN(start); in split_mem_range()
418 end_pfn = PFN_DOWN(PMD_SIZE); in split_mem_range()
420 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
422 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
432 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
434 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
436 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
449 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
450 end_pfn = round_down(limit_pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
[all …]
/openbmc/linux/arch/x86/xen/
H A Dp2m.c383 pfn_pte(PFN_DOWN(__pa(mfns)), PAGE_KERNEL)); in xen_rebuild_p2m_list()
393 pfn_pte(PFN_DOWN(__pa(mfns)), PAGE_KERNEL_RO)); in xen_rebuild_p2m_list()
452 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_identity))) in get_phys_to_machine()
583 if (p2m_pfn == PFN_DOWN(__pa(p2m_identity)) || in xen_alloc_p2m_entry()
584 p2m_pfn == PFN_DOWN(__pa(p2m_missing))) { in xen_alloc_p2m_entry()
592 if (p2m_pfn == PFN_DOWN(__pa(p2m_missing))) in xen_alloc_p2m_entry()
603 pfn_pte(PFN_DOWN(__pa(p2m)), PAGE_KERNEL)); in xen_alloc_p2m_entry()
666 if (pte_pfn(*ptep) == PFN_DOWN(__pa(p2m_missing))) in __set_phys_to_machine()
722 mfn = PFN_DOWN(map_ops[i].dev_bus_addr); in set_foreign_p2m_mapping()
822 pfn = PFN_DOWN(remap->paddr); in xen_do_remap_nonram()
[all …]
H A Denlighten_pvh.c100 ram_pages += PFN_DOWN(e->addr + e->size) - PFN_UP(e->addr); in xen_reserve_extra_memory()
118 PFN_DOWN(e->addr + e->size) - PFN_UP(e->addr)); in xen_reserve_extra_memory()
120 if (pages != (PFN_DOWN(e->addr + e->size) - PFN_UP(e->addr))) { in xen_reserve_extra_memory()
H A Dmmu_pv.c760 PFN_DOWN(__pa(user_pgd))); in __xen_pgd_pin()
869 PFN_DOWN(__pa(user_pgd))); in __xen_pgd_unpin()
1326 mfn = pfn_to_mfn(PFN_DOWN(cr3)); in __xen_write_cr3()
1682 if (*pt_base == PFN_DOWN(__pa(addr))) { in check_pt_base()
1687 if (*pt_end == PFN_DOWN(__pa(addr))) { in check_pt_base()
1789 PFN_DOWN(__pa_symbol(init_top_pgt))); in xen_setup_kernel_pagetable()
1798 PFN_DOWN(__pa_symbol(level3_user_vsyscall))); in xen_setup_kernel_pagetable()
1925 p2m_pfn = PFN_DOWN(pt_phys) + n_pt; in xen_relocate_p2m()
1951 PFN_DOWN(pt_phys)); in xen_relocate_p2m()
1959 PFN_DOWN(pmd_phys)); in xen_relocate_p2m()
[all …]
/openbmc/linux/arch/csky/kernel/
H A Dsetup.c29 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()
/openbmc/linux/arch/x86/kernel/cpu/sgx/
H A Dencl.c86 entry = xa_load(&encl->page_array, PFN_DOWN(addr)); in reclaimer_writing_to_pcmd()
149 page_index = PFN_DOWN(encl->size); in __sgx_encl_eldu()
287 entry = xa_load(&encl->page_array, PFN_DOWN(addr)); in sgx_encl_load_page_in_vma()
307 entry = xa_load(&encl->page_array, PFN_DOWN(addr)); in sgx_encl_load_page()
408 vmret = vmf_insert_pfn(vma, addr, PFN_DOWN(phys_addr)); in sgx_encl_eaug_page()
417 xa_erase(&encl->page_array, PFN_DOWN(encl_page->desc)); in sgx_encl_eaug_page()
457 (!xa_load(&encl->page_array, PFN_DOWN(addr)))) in sgx_vma_fault()
474 ret = vmf_insert_pfn(vma, addr, PFN_DOWN(phys_addr)); in sgx_vma_fault()
530 XA_STATE(xas, &encl->page_array, PFN_DOWN(start)); in sgx_encl_may_map()
546 xas_for_each(&xas, page, PFN_DOWN(end - 1)) { in sgx_encl_may_map()
[all …]
/openbmc/linux/arch/sparc/power/
H A Dhibernate.c24 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()
/openbmc/linux/arch/csky/include/asm/
H A Dpage.h47 #define phys_to_page(paddr) (pfn_to_page(PFN_DOWN(paddr)))
73 #define ARCH_PFN_OFFSET PFN_DOWN(va_pa_offset + PHYS_OFFSET_OFFSET)
90 #define MAP_NR(x) PFN_DOWN((unsigned long)(x) - PAGE_OFFSET - \
/openbmc/linux/arch/arc/mm/
H A Dinit.c94 max_low_pfn = max_pfn = PFN_DOWN(low_mem_start + low_mem_sz); in setup_arch_memory()
139 min_high_pfn = PFN_DOWN(high_mem_start); in setup_arch_memory()
140 max_high_pfn = PFN_DOWN(high_mem_start + high_mem_sz); in setup_arch_memory()
/openbmc/linux/arch/sh/mm/
H A Dnuma.c33 start_pfn = PFN_DOWN(start); in setup_bootmem_node()
34 end_pfn = PFN_DOWN(end); in setup_bootmem_node()
/openbmc/linux/arch/m68k/mm/
H A Dmcfmmu.c83 max_zone_pfn[ZONE_DMA] = PFN_DOWN(_ramend); in paging_init()
172 num_pages = PFN_DOWN(_ramend - _rambase); in cf_bootmem_alloc()
176 min_low_pfn = PFN_DOWN(_rambase); in cf_bootmem_alloc()
177 max_pfn = max_low_pfn = PFN_DOWN(_ramend); in cf_bootmem_alloc()
/openbmc/linux/arch/nios2/include/asm/
H A Dpage.h89 # define virt_to_page(vaddr) pfn_to_page(PFN_DOWN(virt_to_phys(vaddr)))
90 # define virt_addr_valid(vaddr) pfn_valid(PFN_DOWN(virt_to_phys(vaddr)))
/openbmc/linux/arch/hexagon/mm/
H A Dinit.c130 bootmem_lastpg = PFN_DOWN(size); in early_mem()
155 bootmem_lastpg = PFN_DOWN((bootmem_lastpg << PAGE_SHIFT) & in setup_arch_memory()
168 max_low_pfn = bootmem_lastpg - PFN_DOWN(DMA_RESERVED_BYTES); in setup_arch_memory()
/openbmc/linux/drivers/xen/
H A Dswiotlb-xen.c107 if (pfn_valid(PFN_DOWN(paddr))) in is_xen_swiotlb_buffer()
243 if (pfn_valid(PFN_DOWN(dma_to_phys(dev, dev_addr)))) in xen_swiotlb_map_page()
267 if (pfn_valid(PFN_DOWN(dma_to_phys(hwdev, dev_addr)))) in xen_swiotlb_unmap_page()
285 if (pfn_valid(PFN_DOWN(dma_to_phys(dev, dma_addr)))) in xen_swiotlb_sync_single_for_cpu()
305 if (pfn_valid(PFN_DOWN(dma_to_phys(dev, dma_addr)))) in xen_swiotlb_sync_single_for_device()
/openbmc/linux/arch/mips/kernel/
H A Dsetup.c309 max_pfn = PFN_DOWN(ramend); in bootmem_init()
317 if (start >= PFN_DOWN(HIGHMEM_START)) in bootmem_init()
319 if (end > PFN_DOWN(HIGHMEM_START)) in bootmem_init()
320 end = PFN_DOWN(HIGHMEM_START); in bootmem_init()
328 if (max_pfn > PFN_DOWN(HIGHMEM_START)) { in bootmem_init()
329 max_low_pfn = PFN_DOWN(HIGHMEM_START); in bootmem_init()
/openbmc/linux/arch/mips/mm/
H A Dioremap.c79 pfn = PFN_DOWN(phys_addr); in ioremap_prot()
80 last_pfn = PFN_DOWN(last_addr); in ioremap_prot()
/openbmc/linux/arch/nios2/kernel/
H A Dsetup.c145 *max_low = PFN_DOWN(memblock_get_current_limit()); in find_limits()
147 *max_high = PFN_DOWN(memblock_end_of_DRAM()); in find_limits()
/openbmc/linux/arch/arm64/mm/
H A Dinit.c269 max_zone_pfns[ZONE_DMA] = PFN_DOWN(arm64_dma_phys_limit); in zone_sizes_init()
272 max_zone_pfns[ZONE_DMA32] = PFN_DOWN(dma32_phys_limit); in zone_sizes_init()
446 max = PFN_DOWN(memblock_end_of_DRAM()); in bootmem_init()
494 bool swiotlb = max_pfn > PFN_DOWN(arm64_dma_phys_limit); in mem_init()
/openbmc/linux/arch/m68k/kernel/
H A Dsetup_no.c156 min_low_pfn = PFN_DOWN(memory_start); in setup_arch()
157 max_pfn = max_low_pfn = PFN_DOWN(memory_end); in setup_arch()
/openbmc/linux/arch/x86/include/asm/xen/
H A Dpage.h233 return XMADDR(PFN_PHYS(pfn_to_mfn(PFN_DOWN(phys.paddr))) | offset); in phys_to_machine()
239 return XPADDR(PFN_PHYS(mfn_to_pfn(PFN_DOWN(machine.maddr))) | offset); in machine_to_phys()
300 return PFN_DOWN(__pa(v)); in virt_to_pfn()
/openbmc/linux/arch/csky/mm/
H A Dtcm.c34 if (pfn_valid(PFN_DOWN(CONFIG_ITCM_RAM_BASE)))
55 if (pfn_valid(PFN_DOWN(CONFIG_DTCM_RAM_BASE)))
/openbmc/linux/arch/x86/kernel/
H A Ddumpstack_64.c72 [PFN_DOWN(CEA_ESTACK_OFFS(st)) ... \
73 PFN_DOWN(CEA_ESTACK_OFFS(st) + CEA_ESTACK_SIZE(st) - 1)] = { \
/openbmc/linux/arch/powerpc/mm/
H A Dpgtable_32.c136 PFN_DOWN((unsigned long)_sinittext); in mark_initmem_nx()
166 PFN_DOWN((unsigned long)_stext); in mark_rodata_ro()

12345