Home
last modified time | relevance | path

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

/linux/mm/
A Dcma.c43 return PFN_PHYS(cma->base_pfn); in cma_get_base()
71 return (cma->base_pfn & ((1UL << align_order) - 1)) in cma_bitmap_aligned_offset()
87 bitmap_no = (pfn - cma->base_pfn) >> cma->order_per_bit; in cma_clear_bitmap()
97 unsigned long base_pfn = cma->base_pfn, pfn; in cma_activate_area() local
109 WARN_ON_ONCE(!pfn_valid(base_pfn)); in cma_activate_area()
110 zone = page_zone(pfn_to_page(base_pfn)); in cma_activate_area()
111 for (pfn = base_pfn + 1; pfn < base_pfn + cma->count; pfn++) { in cma_activate_area()
117 for (pfn = base_pfn; pfn < base_pfn + cma->count; in cma_activate_area()
134 for (pfn = base_pfn; pfn < base_pfn + cma->count; pfn++) in cma_activate_area()
204 cma->base_pfn = PFN_DOWN(base); in cma_init_reserved_mem()
[all …]
A Dcma.h14 unsigned long base_pfn; member
A Dcma_debug.c175 &cma->base_pfn, &cma_debugfs_fops); in cma_debugfs_add_one()
A Dsparse-vmemmap.c446 return altmap->base_pfn + altmap->reserve + altmap->alloc in vmem_altmap_next_pfn()
A Dmemory_hotplug.c321 if (altmap->base_pfn != pfn in __add_pages()
1396 mhp_altmap.base_pfn = PHYS_PFN(start); in add_memory_resource()
A Dpage_alloc.c6528 if (start_pfn == altmap->base_pfn) in memmap_init_range()
6530 end_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_range()
6586 start_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_zone_device()
/linux/arch/powerpc/mm/
A Dinit_64.c194 if (start_pfn < altmap->base_pfn) in altmap_cross_boundary()
311 unsigned long base_pfn; in vmemmap_free() local
315 alt_start = altmap->base_pfn; in vmemmap_free()
316 alt_end = altmap->base_pfn + altmap->reserve + in vmemmap_free()
341 base_pfn = PHYS_PFN(addr); in vmemmap_free()
343 if (base_pfn >= alt_start && base_pfn < alt_end) { in vmemmap_free()
/linux/arch/x86/hyperv/
A Dhv_proc.c33 u64 base_pfn; in hv_call_deposit_pages() local
88 base_pfn = page_to_pfn(pages[i]); in hv_call_deposit_pages()
90 input_page->gpa_page_list[page_count] = base_pfn + j; in hv_call_deposit_pages()
106 base_pfn = page_to_pfn(pages[i]); in hv_call_deposit_pages()
108 __free_page(pfn_to_page(base_pfn + j)); in hv_call_deposit_pages()
/linux/arch/powerpc/kvm/
A Dbook3s_hv_uvmem.c228 unsigned long base_pfn; member
260 p->base_pfn = slot->base_gfn; in kvmppc_uvmem_slot_init()
278 if (p->base_pfn == slot->base_gfn) { in kvmppc_uvmem_slot_free()
294 if (gfn >= p->base_pfn && gfn < p->base_pfn + p->nr_pfns) { in kvmppc_mark_gfn()
295 unsigned long index = gfn - p->base_pfn; in kvmppc_mark_gfn()
338 if (gfn >= p->base_pfn && gfn < p->base_pfn + p->nr_pfns) { in kvmppc_gfn_is_uvmem_pfn()
339 unsigned long index = gfn - p->base_pfn; in kvmppc_gfn_is_uvmem_pfn()
368 if (*gfn >= p->base_pfn && *gfn < p->base_pfn + p->nr_pfns) in kvmppc_next_nontransitioned_gfn()
376 for (i = *gfn; i < p->base_pfn + p->nr_pfns; i++) { in kvmppc_next_nontransitioned_gfn()
377 unsigned long index = i - p->base_pfn; in kvmppc_next_nontransitioned_gfn()
/linux/arch/x86/kernel/cpu/mtrr/
A Dcleanup.c37 unsigned long base_pfn; member
77 base = range_state[i].base_pfn; in x86_get_mtrr_mem_range()
98 base = range_state[i].base_pfn; in x86_get_mtrr_mem_range()
207 range_state[reg].base_pfn = basek >> (PAGE_SHIFT - 10); in save_var_mtrr()
219 basek = range_state[reg].base_pfn << (PAGE_SHIFT - 10); in set_var_mtrr_all()
409 set_var_mtrr_range(struct var_mtrr_state *state, unsigned long base_pfn, in set_var_mtrr_range() argument
418 basek = base_pfn << (PAGE_SHIFT - 10); in set_var_mtrr_range()
541 start_base = range_state[i].base_pfn << (PAGE_SHIFT - 10); in print_out_mtrr_range_state()
704 range_state[i].base_pfn = base; in mtrr_cleanup()
901 range_state[i].base_pfn = base; in mtrr_trim_uncached_memory()
[all …]
/linux/drivers/staging/media/ipu3/
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/
A Dpfn_devs.c659 unsigned long base_pfn = PHYS_PFN(base); in init_altmap_base() local
661 return SUBSECTION_ALIGN_DOWN(base_pfn); in init_altmap_base()
667 unsigned long base_pfn = PHYS_PFN(base); in init_altmap_reserve() local
669 reserve += base_pfn - SUBSECTION_ALIGN_DOWN(base_pfn); in init_altmap_reserve()
687 .base_pfn = init_altmap_base(base), in __nvdimm_setup_pfn()
/linux/include/linux/
A Dmemremap.h20 unsigned long base_pfn; member
/linux/Documentation/admin-guide/mm/
A Dcma_debugfs.rst15 - [RO] base_pfn: The base PFN (Page Frame Number) of the zone.
/linux/drivers/iommu/
A Ddma-iommu.c358 unsigned long order, base_pfn; in iommu_dma_init_domain() local
368 base_pfn = max_t(unsigned long, 1, base >> order); in iommu_dma_init_domain()
378 base_pfn = max_t(unsigned long, base_pfn, in iommu_dma_init_domain()
385 base_pfn != iovad->start_pfn) { in iommu_dma_init_domain()
393 init_iova_domain(iovad, 1UL << order, base_pfn); in iommu_dma_init_domain()
/linux/arch/x86/mm/
A Dnuma_emulation.c204 unsigned long base_pfn = PHYS_PFN(base); in uniform_size() local
207 return PFN_PHYS((max_pfn - base_pfn - hole_pfns) / nr_nodes); in uniform_size()
/linux/drivers/gpu/drm/i915/gvt/
A Dkvmgt.c273 unsigned long base_pfn = 0; in gvt_pin_guest_page() local
303 base_pfn = pfn; in gvt_pin_guest_page()
304 else if (base_pfn + npage != pfn) { in gvt_pin_guest_page()
312 *page = pfn_to_page(base_pfn); in gvt_pin_guest_page()

Completed in 50 milliseconds