Searched refs:iova_domain (Results 1 – 12 of 12) sorted by relevance
/kernel/linux/linux-5.10/include/linux/ |
D | iova.h | 38 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 …]
|
D | intel-iommu.h | 544 struct iova_domain iovad; /* iova's that belong to this domain */
|
/kernel/linux/linux-5.10/drivers/staging/media/ipu3/ |
D | ipu3-dmamap.c | 96 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 …]
|
D | ipu3.h | 139 struct iova_domain iova_domain; member
|
/kernel/linux/linux-5.10/drivers/iommu/ |
D | iova.c | 18 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 …]
|
D | dma-iommu.c | 42 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/ |
D | vde.h | 48 struct iova_domain iova;
|
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/ |
D | drm.h | 45 struct iova_domain domain;
|
/kernel/linux/linux-5.10/drivers/gpu/host1x/ |
D | dev.h | 119 struct iova_domain iova;
|
/kernel/linux/linux-5.10/drivers/iommu/intel/ |
D | iommu.c | 1678 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/ |
D | include.patch | 1589 @@ -95,6 +95,7 @@ struct iova_domain {
|
D | drivers.patch | 39151 + struct iova_domain *iovad; 39177 + struct iova_domain *iovad;
|