Searched refs:iova_domain (Results 1 – 12 of 12) sorted by relevance
/Linux-v5.4/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 | 492 struct iova_domain iovad; /* iova's that belong to this domain */
|
/Linux-v5.4/drivers/staging/media/ipu3/ |
D | ipu3-dmamap.c | 96 unsigned long shift = iova_shift(&imgu->iova_domain); in imgu_dmamap_alloc() 106 iova = alloc_iova(&imgu->iova_domain, size >> shift, in imgu_dmamap_alloc() 116 iovaddr = iova_dma_addr(&imgu->iova_domain, iova); in imgu_dmamap_alloc() 137 map->daddr = iova_dma_addr(&imgu->iova_domain, iova); in imgu_dmamap_alloc() 150 imgu_mmu_unmap(imgu->mmu, iova_dma_addr(&imgu->iova_domain, iova), in imgu_dmamap_alloc() 155 __free_iova(&imgu->iova_domain, iova); in imgu_dmamap_alloc() 164 iova = find_iova(&imgu->iova_domain, in imgu_dmamap_unmap() 165 iova_pfn(&imgu->iova_domain, map->daddr)); in imgu_dmamap_unmap() 169 imgu_mmu_unmap(imgu->mmu, iova_dma_addr(&imgu->iova_domain, iova), in imgu_dmamap_unmap() 170 iova_size(iova) << iova_shift(&imgu->iova_domain)); in imgu_dmamap_unmap() [all …]
|
D | ipu3.h | 139 struct iova_domain iova_domain; member
|
/Linux-v5.4/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() 79 int init_iova_flush_queue(struct iova_domain *iovad, in init_iova_flush_queue() 117 __get_cached_rbnode(struct iova_domain *iovad, unsigned long limit_pfn) in __get_cached_rbnode() [all …]
|
D | dma-iommu.c | 41 struct iova_domain iovad; 173 struct iova_domain *iovad = &cookie->iovad; in cookie_init_hw_msi_region() 196 struct iova_domain *iovad) in iova_reserve_pci_windows() 242 struct iova_domain *iovad = &cookie->iovad; in iova_reserve_iommu_regions() 276 static void iommu_dma_flush_iotlb_all(struct iova_domain *iovad) in iommu_dma_flush_iotlb_all() 307 struct iova_domain *iovad; in iommu_dma_init_domain() 389 struct iova_domain *iovad = &cookie->iovad; in iommu_dma_alloc_iova() 429 struct iova_domain *iovad = &cookie->iovad; in iommu_dma_free_iova() 447 struct iova_domain *iovad = &cookie->iovad; in __iommu_dma_unmap() 469 struct iova_domain *iovad = &cookie->iovad; in __iommu_dma_map() [all …]
|
D | amd_iommu.c | 105 static void iova_domain_flush_tlb(struct iova_domain *iovad); 115 struct iova_domain iovad; 118 static struct iova_domain reserved_iova_ranges; 1879 static void iova_domain_flush_tlb(struct iova_domain *iovad) in iova_domain_flush_tlb()
|
D | intel-iommu.c | 1532 static void iommu_flush_iova(struct iova_domain *iovad) in iommu_flush_iova() 1786 static struct iova_domain reserved_iova_list;
|
/Linux-v5.4/drivers/staging/media/tegra-vde/ |
D | vde.h | 48 struct iova_domain iova;
|
/Linux-v5.4/drivers/gpu/drm/tegra/ |
D | drm.h | 44 struct iova_domain domain;
|
/Linux-v5.4/drivers/misc/mic/scif/ |
D | scif_rma.h | 102 struct iova_domain iovad;
|
/Linux-v5.4/drivers/gpu/host1x/ |
D | dev.h | 118 struct iova_domain iova;
|