Searched refs:last_pfn (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/arch/mips/mm/ |
D | ioremap.c | 50 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-6.1.9/arch/sparc/mm/ |
D | init_32.c | 84 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-6.1.9/arch/x86/kernel/ |
D | e820.c | 833 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-6.1.9/drivers/iommu/intel/ |
D | iommu.c | 1019 unsigned long last_pfn) in dma_pte_clear_range() argument 1025 BUG_ON(!domain_pfn_supported(domain, last_pfn)); in dma_pte_clear_range() 1026 BUG_ON(start_pfn > last_pfn); in dma_pte_clear_range() 1040 } while (start_pfn <= last_pfn && !first_pte_in_page(pte)); in dma_pte_clear_range() 1045 } while (start_pfn && start_pfn <= last_pfn); in dma_pte_clear_range() 1051 unsigned long last_pfn) in dma_pte_free_level() argument 1069 last_pfn); in dma_pte_free_level() 1077 last_pfn < level_pfn + level_size(level) - 1)) { in dma_pte_free_level() 1084 } while (!first_pte_in_page(++pte) && pfn <= last_pfn); in dma_pte_free_level() 1093 unsigned long last_pfn, in dma_pte_free_pagetable() argument [all …]
|
/linux-6.1.9/drivers/gpu/drm/i915/gem/ |
D | i915_gem_shmem.c | 67 unsigned long last_pfn = 0; /* suppress gcc warning */ in shmem_sg_alloc_table() local 146 page_to_pfn(page) != last_pfn + 1) { in shmem_sg_alloc_table() 155 last_pfn = page_to_pfn(page); in shmem_sg_alloc_table() 158 GEM_BUG_ON(gfp & __GFP_DMA32 && last_pfn >= 0x00100000UL); in shmem_sg_alloc_table()
|
/linux-6.1.9/drivers/vhost/ |
D | vdpa.c | 888 unsigned long npages, cur_base, map_pfn, last_pfn = 0; in vhost_vdpa_pa_map() local 935 if (!last_pfn) in vhost_vdpa_pa_map() 942 if (last_pfn && (this_pfn != last_pfn + 1)) { in vhost_vdpa_pa_map() 944 csize = PFN_PHYS(last_pfn - map_pfn + 1); in vhost_vdpa_pa_map() 967 last_pfn = this_pfn; in vhost_vdpa_pa_map() 975 ret = vhost_vdpa_map(v, iotlb, iova, PFN_PHYS(last_pfn - map_pfn + 1), in vhost_vdpa_pa_map() 991 WARN_ON(!last_pfn); in vhost_vdpa_pa_map() 992 for (pfn = map_pfn; pfn <= last_pfn; pfn++) in vhost_vdpa_pa_map()
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | radeon_vm.c | 454 unsigned last_pfn, pt_idx; in radeon_vm_bo_set_addr() local 466 last_pfn = eoffset / RADEON_GPU_PAGE_SIZE; in radeon_vm_bo_set_addr() 467 if (last_pfn >= rdev->vm_manager.max_pfn) { in radeon_vm_bo_set_addr() 469 last_pfn, rdev->vm_manager.max_pfn); in radeon_vm_bo_set_addr() 475 eoffset = last_pfn = 0; in radeon_vm_bo_set_addr()
|
/linux-6.1.9/mm/ |
D | page_alloc.c | 9424 unsigned long last_pfn = start_pfn + nr_pages - 1; in zone_spans_last_pfn() local 9426 return zone_spans_pfn(zone, last_pfn); in zone_spans_last_pfn()
|