Home
last modified time | relevance | path

Searched defs:iovad (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/include/linux/
H A Diova.h48 static inline unsigned long iova_shift(struct iova_domain *iovad) in iova_shift()
53 static inline unsigned long iova_mask(struct iova_domain *iovad) in iova_mask()
58 static inline size_t iova_offset(struct iova_domain *iovad, dma_addr_t iova) in iova_offset()
63 static inline size_t iova_align(struct iova_domain *iovad, size_t size) in iova_align()
118 static inline struct iova *alloc_iova(struct iova_domain *iovad, in alloc_iova()
126 static inline void free_iova_fast(struct iova_domain *iovad, in free_iova_fast()
132 static inline unsigned long alloc_iova_fast(struct iova_domain *iovad, in alloc_iova_fast()
140 static inline struct iova *reserve_iova(struct iova_domain *iovad, in reserve_iova()
147 static inline void init_iova_domain(struct iova_domain *iovad, in init_iova_domain()
153 static inline struct iova *find_iova(struct iova_domain *iovad, in find_iova()
[all …]
/openbmc/linux/drivers/iommu/
H A Diova.c36 struct iova_domain *iovad; in iova_cpuhp_dead() local
52 init_iova_domain(struct iova_domain *iovad, unsigned long granule, in init_iova_domain()
314 alloc_iova(struct iova_domain *iovad, unsigned long size, in alloc_iova()
392 __free_iova(struct iova_domain *iovad, struct iova *iova) in __free_iova()
411 free_iova(struct iova_domain *iovad, unsigned long pfn) in free_iova()
508 void put_iova_domain(struct iova_domain *iovad) in put_iova_domain()
546 __insert_new_range(struct iova_domain *iovad, in __insert_new_range()
577 reserve_iova(struct iova_domain *iovad, in reserve_iova()
720 int iova_domain_init_rcaches(struct iova_domain *iovad) in iova_domain_init_rcaches()
775 static bool __iova_rcache_insert(struct iova_domain *iovad, in __iova_rcache_insert()
[all …]
H A Ddma-iommu.c52 struct iova_domain iovad; member
404 struct iova_domain *iovad = &cookie->iovad; in cookie_init_hw_msi_region() local
436 struct iova_domain *iovad) in iova_reserve_pci_windows()
485 struct iova_domain *iovad = &cookie->iovad; in iova_reserve_iommu_regions() local
575 struct iova_domain *iovad; in iommu_dma_init_domain() local
663 struct iova_domain *iovad = &cookie->iovad; in iommu_dma_alloc_iova() local
708 struct iova_domain *iovad = &cookie->iovad; in iommu_dma_free_iova() local
727 struct iova_domain *iovad = &cookie->iovad; in __iommu_dma_unmap() local
750 struct iova_domain *iovad = &cookie->iovad; in __iommu_dma_map() local
840 struct iova_domain *iovad = &cookie->iovad; in __iommu_dma_alloc_noncontiguous() local
[all …]
/openbmc/linux/drivers/vdpa/vdpa_user/
H A Diova_domain.c355 vduse_domain_alloc_iova(struct iova_domain *iovad, in vduse_domain_alloc_iova()
367 static void vduse_domain_free_iova(struct iova_domain *iovad, in vduse_domain_free_iova()
381 struct iova_domain *iovad = &domain->stream_iovad; in vduse_domain_map_page() local
413 struct iova_domain *iovad = &domain->stream_iovad; in vduse_domain_unmap_page() local
428 struct iova_domain *iovad = &domain->consistent_iovad; in vduse_domain_alloc_coherent() local
462 struct iova_domain *iovad = &domain->consistent_iovad; in vduse_domain_free_coherent() local