Home
last modified time | relevance | path

Searched refs:last_pfn (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.10/arch/sparc/mm/
Dinit_32.c84 unsigned long curr_pfn, last_pfn; in calc_max_low_pfn() local
86 last_pfn = (sp_banks[0].base_addr + sp_banks[0].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn()
91 if (last_pfn < tmp) in calc_max_low_pfn()
92 tmp = last_pfn; in calc_max_low_pfn()
96 last_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn()
/Linux-v5.10/arch/mips/mm/
Dioremap.c50 unsigned long offset, pfn, last_pfn; in ioremap_prot() local
80 last_pfn = PFN_DOWN(last_addr); in ioremap_prot()
81 if (walk_system_ram_range(pfn, last_pfn - pfn + 1, NULL, in ioremap_prot()
/Linux-v5.10/arch/x86/kernel/
De820.c833 unsigned long last_pfn = 0; in e820_end_pfn() local
850 last_pfn = limit_pfn; in e820_end_pfn()
853 if (end_pfn > last_pfn) in e820_end_pfn()
854 last_pfn = end_pfn; in e820_end_pfn()
857 if (last_pfn > max_arch_pfn) in e820_end_pfn()
858 last_pfn = max_arch_pfn; in e820_end_pfn()
861 last_pfn, max_arch_pfn); in e820_end_pfn()
862 return last_pfn; in e820_end_pfn()
/Linux-v5.10/drivers/vhost/
Dvdpa.c614 unsigned long npages, cur_base, map_pfn, last_pfn = 0; in vhost_vdpa_process_iotlb_update() local
669 if (!last_pfn) in vhost_vdpa_process_iotlb_update()
676 if (last_pfn && (this_pfn != last_pfn + 1)) { in vhost_vdpa_process_iotlb_update()
678 csize = (last_pfn - map_pfn + 1) << PAGE_SHIFT; in vhost_vdpa_process_iotlb_update()
701 last_pfn = this_pfn; in vhost_vdpa_process_iotlb_update()
709 ret = vhost_vdpa_map(v, iova, (last_pfn - map_pfn + 1) << PAGE_SHIFT, in vhost_vdpa_process_iotlb_update()
725 WARN_ON(!last_pfn); in vhost_vdpa_process_iotlb_update()
726 for (pfn = map_pfn; pfn <= last_pfn; pfn++) in vhost_vdpa_process_iotlb_update()
/Linux-v5.10/drivers/gpu/drm/i915/gem/
Di915_gem_shmem.c39 unsigned long last_pfn = 0; /* suppress gcc warning */ in shmem_get_pages() local
137 page_to_pfn(page) != last_pfn + 1) { in shmem_get_pages()
147 last_pfn = page_to_pfn(page); in shmem_get_pages()
150 GEM_BUG_ON(gfp & __GFP_DMA32 && last_pfn >= 0x00100000UL); in shmem_get_pages()
/Linux-v5.10/drivers/iommu/intel/
Diommu.c1068 unsigned long last_pfn) in dma_pte_clear_range() argument
1074 BUG_ON(!domain_pfn_supported(domain, last_pfn)); in dma_pte_clear_range()
1075 BUG_ON(start_pfn > last_pfn); in dma_pte_clear_range()
1089 } while (start_pfn <= last_pfn && !first_pte_in_page(pte)); in dma_pte_clear_range()
1094 } while (start_pfn && start_pfn <= last_pfn); in dma_pte_clear_range()
1100 unsigned long last_pfn) in dma_pte_free_level() argument
1118 last_pfn); in dma_pte_free_level()
1126 last_pfn < level_pfn + level_size(level) - 1)) { in dma_pte_free_level()
1133 } while (!first_pte_in_page(++pte) && pfn <= last_pfn); in dma_pte_free_level()
1142 unsigned long last_pfn, in dma_pte_free_pagetable() argument
[all …]
/Linux-v5.10/drivers/gpu/drm/radeon/
Dradeon_vm.c453 unsigned last_pfn, pt_idx; in radeon_vm_bo_set_addr() local
465 last_pfn = eoffset / RADEON_GPU_PAGE_SIZE; in radeon_vm_bo_set_addr()
466 if (last_pfn >= rdev->vm_manager.max_pfn) { in radeon_vm_bo_set_addr()
468 last_pfn, rdev->vm_manager.max_pfn); in radeon_vm_bo_set_addr()
474 eoffset = last_pfn = 0; in radeon_vm_bo_set_addr()
/Linux-v5.10/mm/
Dpage_alloc.c8643 unsigned long last_pfn = start_pfn + nr_pages - 1; in zone_spans_last_pfn() local
8645 return zone_spans_pfn(zone, last_pfn); in zone_spans_last_pfn()