Home
last modified time | relevance | path

Searched refs:iova_pfn (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/drivers/iommu/
Diova.c414 unsigned long iova_pfn; in alloc_iova_fast() local
417 iova_pfn = iova_rcache_get(iovad, size, limit_pfn + 1); in alloc_iova_fast()
418 if (iova_pfn) in alloc_iova_fast()
419 return iova_pfn; in alloc_iova_fast()
494 fq->entries[idx].iova_pfn, in fq_ring_free()
572 fq->entries[idx].iova_pfn = pfn; in queue_iova()
892 unsigned long iova_pfn) in __iova_rcache_insert() argument
926 iova_magazine_push(cpu_rcache->loaded, iova_pfn); in __iova_rcache_insert()
958 unsigned long iova_pfn = 0; in __iova_rcache_get() local
981 iova_pfn = iova_magazine_pop(cpu_rcache->loaded, limit_pfn); in __iova_rcache_get()
[all …]
Ddma-iommu.c206 lo = iova_pfn(iovad, window->res->start - window->offset); in iova_reserve_pci_windows()
207 hi = iova_pfn(iovad, window->res->end - window->offset); in iova_reserve_pci_windows()
216 lo = iova_pfn(iovad, start); in iova_reserve_pci_windows()
217 hi = iova_pfn(iovad, end); in iova_reserve_pci_windows()
262 lo = iova_pfn(iovad, region->start); in iova_reserve_iommu_regions()
263 hi = iova_pfn(iovad, region->start + region->length - 1); in iova_reserve_iommu_regions()
453 queue_iova(iovad, iova_pfn(iovad, iova), in iommu_dma_free_iova()
456 free_iova_fast(iovad, iova_pfn(iovad, iova), in iommu_dma_free_iova()
/kernel/linux/linux-5.10/include/linux/
Diova.h54 unsigned long iova_pfn; member
130 static inline unsigned long iova_pfn(struct iova_domain *iovad, dma_addr_t iova) in iova_pfn() function
/kernel/linux/linux-5.10/drivers/iommu/intel/
Diommu.c3477 unsigned long iova_pfn; in intel_alloc_iova() local
3503 iova_pfn = alloc_iova_fast(&domain->iovad, nrpages, in intel_alloc_iova()
3505 if (iova_pfn) in intel_alloc_iova()
3506 return iova_pfn; in intel_alloc_iova()
3508 iova_pfn = alloc_iova_fast(&domain->iovad, nrpages, in intel_alloc_iova()
3510 if (unlikely(!iova_pfn)) { in intel_alloc_iova()
3516 return iova_pfn; in intel_alloc_iova()
3524 unsigned long iova_pfn; in __intel_map_single() local
3542 iova_pfn = intel_alloc_iova(dev, domain, dma_to_mm_pfn(size), dma_mask); in __intel_map_single()
3543 if (!iova_pfn) in __intel_map_single()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/ipu3/
Dipu3-dmamap.c156 iova_pfn(&imgu->iova_domain, map->daddr)); in imgu_dmamap_unmap()
/kernel/linux/linux-5.10/drivers/s390/cio/
Dvfio_ccw_cp.c136 unsigned long iova_pfn = iova >> PAGE_SHIFT; in pfn_array_iova_pinned() local
140 if (pa->pa_iova_pfn[i] == iova_pfn) in pfn_array_iova_pinned()
/kernel/linux/linux-5.10/drivers/gpu/host1x/
Dcdma.c58 free_iova(&host1x->iova, iova_pfn(&host1x->iova, pb->dma)); in host1x_pushbuffer_destroy()
Djob.c654 iova_pfn(&host->iova, job->addr_phys[i])); in host1x_job_unpin()
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/
Ddrm.c1034 iova_pfn(&tegra->carveout.domain, dma)); in tegra_drm_free()
/kernel/linux/patches/linux-5.10/yangfan_patch/
Ddrivers.patch39162 + pfn_lo = iova_pfn(iovad, base);
39163 + pfn_hi = iova_pfn(iovad, base + size - 1);