Home
last modified time | relevance | path

Searched refs:base_pfn (Results 1 – 17 of 17) sorted by relevance

/linux/mm/
H A Dcma.c40 return PFN_PHYS(cma->base_pfn); in cma_get_base()
68 return (cma->base_pfn & ((1UL << align_order) - 1)) in cma_bitmap_aligned_offset()
84 bitmap_no = (pfn - cma->base_pfn) >> cma->order_per_bit; in cma_clear_bitmap()
94 unsigned long base_pfn = cma->base_pfn, pfn; in cma_activate_area() local
106 WARN_ON_ONCE(!pfn_valid(base_pfn)); in cma_activate_area()
107 zone = page_zone(pfn_to_page(base_pfn)); in cma_activate_area()
108 for (pfn = base_pfn + 1; pfn < base_pfn + cma->count; pfn++) { in cma_activate_area()
114 for (pfn = base_pfn; pfn < base_pfn + cma->count; in cma_activate_area()
132 for (pfn = base_pfn; pfn < base_pfn + cma->count; pfn++) in cma_activate_area()
200 cma->base_pfn = PFN_DOWN(base); in cma_init_reserved_mem()
[all …]
H A Dcma.h14 unsigned long base_pfn; member
H A Dnuma_emulation.c206 unsigned long base_pfn = PHYS_PFN(base); in uniform_size() local
209 return PFN_PHYS((max_pfn - base_pfn - hole_pfns) / nr_nodes); in uniform_size()
H A Dcma_debug.c172 &cma->base_pfn, &cma_debugfs_fops); in cma_debugfs_add_one()
H A Dsparse-vmemmap.c93 return altmap->base_pfn + altmap->reserve + altmap->alloc in vmem_altmap_next_pfn()
H A Dmm_init.c872 if (start_pfn == altmap->base_pfn) in memmap_init_range()
874 end_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_range()
1092 start_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_zone_device()
H A Dmemory_hotplug.c386 if (altmap->base_pfn != pfn in __add_pages()
1432 .base_pfn = PHYS_PFN(cur_start), in create_altmaps_and_memory_blocks()
/linux/arch/x86/hyperv/
H A Dhv_proc.c32 u64 base_pfn; in hv_call_deposit_pages() local
87 base_pfn = page_to_pfn(pages[i]); in hv_call_deposit_pages()
89 input_page->gpa_page_list[page_count] = base_pfn + j; in hv_call_deposit_pages()
105 base_pfn = page_to_pfn(pages[i]); in hv_call_deposit_pages()
107 __free_page(pfn_to_page(base_pfn + j)); in hv_call_deposit_pages()
/linux/arch/powerpc/mm/
H A Dinit_64.c196 if (start_pfn < altmap->base_pfn) in altmap_cross_boundary()
325 unsigned long base_pfn; in __vmemmap_free() local
329 alt_start = altmap->base_pfn; in __vmemmap_free()
330 alt_end = altmap->base_pfn + altmap->reserve + altmap->free; in __vmemmap_free()
354 base_pfn = PHYS_PFN(addr); in __vmemmap_free()
356 if (base_pfn >= alt_start && base_pfn < alt_end) { in __vmemmap_free()
/linux/arch/powerpc/kvm/
H A Dbook3s_hv_uvmem.c229 unsigned long base_pfn; member
261 p->base_pfn = slot->base_gfn; in kvmppc_uvmem_slot_init()
279 if (p->base_pfn == slot->base_gfn) { in kvmppc_uvmem_slot_free()
295 if (gfn >= p->base_pfn && gfn < p->base_pfn + p->nr_pfns) { in kvmppc_mark_gfn()
296 unsigned long index = gfn - p->base_pfn; in kvmppc_mark_gfn()
339 if (gfn >= p->base_pfn && gfn < p->base_pfn + p->nr_pfns) { in kvmppc_gfn_is_uvmem_pfn()
340 unsigned long index = gfn - p->base_pfn; in kvmppc_gfn_is_uvmem_pfn()
369 if (*gfn >= iter->base_pfn && *gfn < iter->base_pfn + iter->nr_pfns) { in kvmppc_next_nontransitioned_gfn()
379 for (i = *gfn; i < p->base_pfn + p->nr_pfns; i++) { in kvmppc_next_nontransitioned_gfn()
380 unsigned long index = i - p->base_pfn; in kvmppc_next_nontransitioned_gfn()
/linux/arch/x86/kernel/cpu/mtrr/
H A Dcleanup.c37 unsigned long base_pfn; member
74 base = range_state[i].base_pfn; in x86_get_mtrr_mem_range()
94 base = range_state[i].base_pfn; in x86_get_mtrr_mem_range()
194 range_state[reg].base_pfn = basek >> (PAGE_SHIFT - 10); in save_var_mtrr()
206 basek = range_state[reg].base_pfn << (PAGE_SHIFT - 10); in set_var_mtrr_all()
396 set_var_mtrr_range(struct var_mtrr_state *state, unsigned long base_pfn, in set_var_mtrr_range() argument
405 basek = base_pfn << (PAGE_SHIFT - 10); in set_var_mtrr_range()
528 start_base = range_state[i].base_pfn << (PAGE_SHIFT - 10); in print_out_mtrr_range_state()
694 range_state[i].base_pfn = base; in mtrr_cleanup()
894 range_state[i].base_pfn = base; in mtrr_trim_uncached_memory()
[all …]
/linux/drivers/staging/media/ipu3/
H A Dipu3-dmamap.c233 unsigned long order, base_pfn; in imgu_dmamap_init() local
240 base_pfn = max_t(unsigned long, 1, imgu->mmu->aperture_start >> order); in imgu_dmamap_init()
241 init_iova_domain(&imgu->iova_domain, 1UL << order, base_pfn); in imgu_dmamap_init()
/linux/drivers/nvdimm/
H A Dpfn_devs.c668 unsigned long base_pfn = PHYS_PFN(base); in init_altmap_base() local
670 return SUBSECTION_ALIGN_DOWN(base_pfn); in init_altmap_base()
676 unsigned long base_pfn = PHYS_PFN(base); in init_altmap_reserve() local
678 reserve += base_pfn - SUBSECTION_ALIGN_DOWN(base_pfn); in init_altmap_reserve()
696 .base_pfn = init_altmap_base(base), in __nvdimm_setup_pfn()
/linux/Documentation/admin-guide/mm/
H A Dcma_debugfs.rst15 - [RO] base_pfn: The base PFN (Page Frame Number) of the zone.
/linux/include/linux/
H A Dmemremap.h22 unsigned long base_pfn; member
/linux/drivers/iommu/
H A Ddma-iommu.c675 unsigned long order, base_pfn; in iommu_dma_init_domain() local
686 base_pfn = 1; in iommu_dma_init_domain()
697 base_pfn = max_t(unsigned long, base_pfn, in iommu_dma_init_domain()
704 base_pfn != iovad->start_pfn) { in iommu_dma_init_domain()
714 init_iova_domain(iovad, 1UL << order, base_pfn); in iommu_dma_init_domain()
/linux/arch/powerpc/mm/book3s64/
H A Dradix_pgtable.c774 unsigned long base_pfn = page_to_pfn(page); in free_vmemmap_pages() local
781 alt_start = altmap->base_pfn; in free_vmemmap_pages()
782 alt_end = altmap->base_pfn + altmap->reserve + altmap->free; in free_vmemmap_pages()
784 if (base_pfn >= alt_start && base_pfn < alt_end) { in free_vmemmap_pages()