Home
last modified time | relevance | path

Searched refs:iova_domain (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
Diova.h38 struct iova_domain;
41 typedef void (* iova_flush_cb)(struct iova_domain *domain);
68 struct iova_domain { struct
105 static inline unsigned long iova_shift(struct iova_domain *iovad) in iova_shift() argument
110 static inline unsigned long iova_mask(struct iova_domain *iovad) in iova_mask()
115 static inline size_t iova_offset(struct iova_domain *iovad, dma_addr_t iova) in iova_offset()
120 static inline size_t iova_align(struct iova_domain *iovad, size_t size) in iova_align()
125 static inline dma_addr_t iova_dma_addr(struct iova_domain *iovad, struct iova *iova) in iova_dma_addr()
130 static inline unsigned long iova_pfn(struct iova_domain *iovad, dma_addr_t iova) in iova_pfn()
141 void free_iova(struct iova_domain *iovad, unsigned long pfn);
[all …]
Dintel-iommu.h544 struct iova_domain iovad; /* iova's that belong to this domain */
/kernel/linux/linux-5.10/drivers/staging/media/ipu3/
Dipu3-dmamap.c96 unsigned long shift = iova_shift(&imgu->iova_domain); in imgu_dmamap_alloc()
107 iova = alloc_iova(&imgu->iova_domain, size >> shift, in imgu_dmamap_alloc()
117 iovaddr = iova_dma_addr(&imgu->iova_domain, iova); in imgu_dmamap_alloc()
133 map->daddr = iova_dma_addr(&imgu->iova_domain, iova); in imgu_dmamap_alloc()
142 imgu_mmu_unmap(imgu->mmu, iova_dma_addr(&imgu->iova_domain, iova), in imgu_dmamap_alloc()
146 __free_iova(&imgu->iova_domain, iova); in imgu_dmamap_alloc()
155 iova = find_iova(&imgu->iova_domain, in imgu_dmamap_unmap()
156 iova_pfn(&imgu->iova_domain, map->daddr)); in imgu_dmamap_unmap()
160 imgu_mmu_unmap(imgu->mmu, iova_dma_addr(&imgu->iova_domain, iova), in imgu_dmamap_unmap()
161 iova_size(iova) << iova_shift(&imgu->iova_domain)); in imgu_dmamap_unmap()
[all …]
Dipu3.h139 struct iova_domain iova_domain; member
/kernel/linux/linux-5.10/drivers/iommu/
Diova.c18 static bool iova_rcache_insert(struct iova_domain *iovad,
21 static unsigned long iova_rcache_get(struct iova_domain *iovad,
24 static void init_iova_rcaches(struct iova_domain *iovad);
25 static void free_iova_rcaches(struct iova_domain *iovad);
26 static void fq_destroy_all_entries(struct iova_domain *iovad);
30 init_iova_domain(struct iova_domain *iovad, unsigned long granule, in init_iova_domain()
57 bool has_iova_flush_queue(struct iova_domain *iovad) in has_iova_flush_queue()
62 static void free_iova_flush_queue(struct iova_domain *iovad) in free_iova_flush_queue()
78 int init_iova_flush_queue(struct iova_domain *iovad, in init_iova_flush_queue()
116 __get_cached_rbnode(struct iova_domain *iovad, unsigned long limit_pfn) in __get_cached_rbnode()
[all …]
Ddma-iommu.c42 struct iova_domain iovad;
172 struct iova_domain *iovad = &cookie->iovad; in cookie_init_hw_msi_region()
195 struct iova_domain *iovad) in iova_reserve_pci_windows()
243 struct iova_domain *iovad = &cookie->iovad; in iova_reserve_iommu_regions()
277 static void iommu_dma_flush_iotlb_all(struct iova_domain *iovad) in iommu_dma_flush_iotlb_all()
308 struct iova_domain *iovad; in iommu_dma_init_domain()
408 struct iova_domain *iovad = &cookie->iovad; in iommu_dma_alloc_iova()
447 struct iova_domain *iovad = &cookie->iovad; in iommu_dma_free_iova()
465 struct iova_domain *iovad = &cookie->iovad; in __iommu_dma_unmap()
487 struct iova_domain *iovad = &cookie->iovad; in __iommu_dma_map()
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/tegra-vde/
Dvde.h48 struct iova_domain iova;
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/
Ddrm.h45 struct iova_domain domain;
/kernel/linux/linux-5.10/drivers/gpu/host1x/
Ddev.h119 struct iova_domain iova;
/kernel/linux/linux-5.10/drivers/iommu/intel/
Diommu.c1678 static void iommu_flush_iova(struct iova_domain *iovad) in iommu_flush_iova()
1972 static struct iova_domain reserved_iova_list;
/kernel/linux/patches/linux-5.10/yangfan_patch/
Dinclude.patch1589 @@ -95,6 +95,7 @@ struct iova_domain {
Ddrivers.patch39151 + struct iova_domain *iovad;
39177 + struct iova_domain *iovad;