Lines Matching defs:iommu
20 #include <linux/iommu.h>
90 struct vhost_iotlb *iommu;
95 /* spinlock to synchronize iommu table */
163 vhost_iotlb_reset(vdpasim->iommu);
272 struct vhost_iotlb *iommu = vdpasim->iommu;
283 ret = vhost_iotlb_add_range(iommu, pa, pa + size - 1,
297 struct vhost_iotlb *iommu = vdpasim->iommu;
300 vhost_iotlb_del_range(iommu, (u64)dma_addr,
310 struct vhost_iotlb *iommu = vdpasim->iommu;
320 ret = vhost_iotlb_add_range(iommu, (u64)pa,
340 struct vhost_iotlb *iommu = vdpasim->iommu;
343 vhost_iotlb_del_range(iommu, (u64)dma_addr,
397 vdpasim->iommu = vhost_iotlb_alloc(2048, 0);
398 if (!vdpasim->iommu)
416 vringh_set_iotlb(&vdpasim->vqs[i].vring, vdpasim->iommu);
633 vhost_iotlb_reset(vdpasim->iommu);
637 ret = vhost_iotlb_add_range(vdpasim->iommu, map->start,
646 vhost_iotlb_reset(vdpasim->iommu);
658 ret = vhost_iotlb_add_range(vdpasim->iommu, iova, iova + size - 1, pa,
670 vhost_iotlb_del_range(vdpasim->iommu, iova, iova + size - 1);
682 if (vdpasim->iommu)
683 vhost_iotlb_free(vdpasim->iommu);