Lines Matching refs:start_pfn
969 unsigned long start_pfn, in dma_pte_clear_range() argument
975 BUG_ON(!domain_pfn_supported(domain, start_pfn)); in dma_pte_clear_range()
977 BUG_ON(start_pfn > last_pfn); in dma_pte_clear_range()
982 first_pte = pte = dma_pfn_level_pte(domain, start_pfn, 1, &large_page); in dma_pte_clear_range()
984 start_pfn = align_to_level(start_pfn + 1, large_page + 1); in dma_pte_clear_range()
989 start_pfn += lvl_to_nr_pages(large_page); in dma_pte_clear_range()
991 } while (start_pfn <= last_pfn && !first_pte_in_page(pte)); in dma_pte_clear_range()
996 } while (start_pfn && start_pfn <= last_pfn); in dma_pte_clear_range()
1001 unsigned long pfn, unsigned long start_pfn, in dma_pte_free_level() argument
1004 pfn = max(start_pfn, pfn); in dma_pte_free_level()
1019 level_pte, level_pfn, start_pfn, in dma_pte_free_level()
1027 if (level < retain_level && !(start_pfn > level_pfn || in dma_pte_free_level()
1043 unsigned long start_pfn, in dma_pte_free_pagetable() argument
1047 BUG_ON(!domain_pfn_supported(domain, start_pfn)); in dma_pte_free_pagetable()
1049 BUG_ON(start_pfn > last_pfn); in dma_pte_free_pagetable()
1051 dma_pte_clear_range(domain, start_pfn, last_pfn); in dma_pte_free_pagetable()
1055 domain->pgd, 0, start_pfn, last_pfn); in dma_pte_free_pagetable()
1058 if (start_pfn == 0 && last_pfn == DOMAIN_MAX_PFN(domain->gaw)) { in dma_pte_free_pagetable()
1096 unsigned long start_pfn, in dma_pte_clear_level() argument
1102 pfn = max(start_pfn, pfn); in dma_pte_clear_level()
1114 if (start_pfn <= level_pfn && in dma_pte_clear_level()
1129 level_pfn, start_pfn, last_pfn, in dma_pte_clear_level()
1147 unsigned long start_pfn, in domain_unmap() argument
1152 BUG_ON(!domain_pfn_supported(domain, start_pfn)); in domain_unmap()
1154 BUG_ON(start_pfn > last_pfn); in domain_unmap()
1158 domain->pgd, 0, start_pfn, last_pfn, NULL); in domain_unmap()
1161 if (start_pfn == 0 && last_pfn == DOMAIN_MAX_PFN(domain->gaw)) { in domain_unmap()
2753 unsigned long start_pfn, end_pfn; in si_domain_init() local
2756 for_each_mem_pfn_range(i, nid, &start_pfn, &end_pfn, NULL) { in si_domain_init()
2758 PFN_PHYS(start_pfn), PFN_PHYS(end_pfn)); in si_domain_init()
3585 unsigned long start_pfn, last_pfn; in intel_unmap() local
3600 start_pfn = mm_to_dma_pfn(iova_pfn); in intel_unmap()
3601 last_pfn = start_pfn + nrpages - 1; in intel_unmap()
3606 freelist = domain_unmap(domain, start_pfn, last_pfn); in intel_unmap()
3609 iommu_flush_iotlb_psi(iommu, domain, start_pfn, in intel_unmap()
4666 start = mhp->start_pfn << PAGE_SHIFT; in intel_iommu_memory_notifier()
4667 end = ((mhp->start_pfn + mhp->nr_pages) << PAGE_SHIFT) - 1; in intel_iommu_memory_notifier()
4677 start_vpfn = mm_to_dma_pfn(mhp->start_pfn); in intel_iommu_memory_notifier()
4678 last_vpfn = mm_to_dma_pfn(mhp->start_pfn + mhp->nr_pages - 1); in intel_iommu_memory_notifier()
5486 unsigned long start_pfn, last_pfn; in intel_iommu_unmap() local
5497 start_pfn = iova >> VTD_PAGE_SHIFT; in intel_iommu_unmap()
5500 freelist = domain_unmap(dmar_domain, start_pfn, last_pfn); in intel_iommu_unmap()
5502 npages = last_pfn - start_pfn + 1; in intel_iommu_unmap()
5506 start_pfn, npages, !freelist, 0); in intel_iommu_unmap()