Lines Matching refs:iommu
150 vringh_set_iotlb(&vdpasim->vqs[i].vring, &vdpasim->iommu[0],
156 vhost_iotlb_reset(&vdpasim->iommu[i]);
157 vhost_iotlb_add_range(&vdpasim->iommu[i], 0, ULONG_MAX,
254 vdpasim->iommu = kmalloc_array(vdpasim->dev_attr.nas,
255 sizeof(*vdpasim->iommu), GFP_KERNEL);
256 if (!vdpasim->iommu)
265 vhost_iotlb_init(&vdpasim->iommu[i], max_iotlb_entries, 0);
266 vhost_iotlb_add_range(&vdpasim->iommu[i], 0, ULONG_MAX, 0,
272 vringh_set_iotlb(&vdpasim->vqs[i].vring, &vdpasim->iommu[0],
606 struct vhost_iotlb *iommu;
615 iommu = &vdpasim->iommu[asid];
621 vringh_set_iotlb(&vdpasim->vqs[i].vring, iommu,
634 struct vhost_iotlb *iommu;
643 iommu = &vdpasim->iommu[asid];
644 vhost_iotlb_reset(iommu);
649 ret = vhost_iotlb_add_range(iommu, map->start,
658 vhost_iotlb_reset(iommu);
673 vhost_iotlb_reset(&vdpasim->iommu[asid]);
674 vhost_iotlb_add_range(&vdpasim->iommu[asid], 0, ULONG_MAX,
718 vhost_iotlb_reset(&vdpasim->iommu[asid]);
721 ret = vhost_iotlb_add_range_ctx(&vdpasim->iommu[asid], iova,
737 vhost_iotlb_reset(&vdpasim->iommu[asid]);
742 vhost_iotlb_del_range(&vdpasim->iommu[asid], iova, iova + size - 1);
764 vhost_iotlb_reset(&vdpasim->iommu[i]);
765 kfree(vdpasim->iommu);