Lines Matching defs:iommu
150 vringh_set_iotlb(&vdpasim->vqs[i].vring, &vdpasim->iommu[0],
155 vhost_iotlb_reset(&vdpasim->iommu[i]);
156 vhost_iotlb_add_range(&vdpasim->iommu[i], 0, ULONG_MAX,
252 vdpasim->iommu = kmalloc_array(vdpasim->dev_attr.nas,
253 sizeof(*vdpasim->iommu), GFP_KERNEL);
254 if (!vdpasim->iommu)
263 vhost_iotlb_init(&vdpasim->iommu[i], max_iotlb_entries, 0);
266 vringh_set_iotlb(&vdpasim->vqs[i].vring, &vdpasim->iommu[0],
584 struct vhost_iotlb *iommu;
593 iommu = &vdpasim->iommu[asid];
599 vringh_set_iotlb(&vdpasim->vqs[i].vring, iommu,
612 struct vhost_iotlb *iommu;
621 iommu = &vdpasim->iommu[asid];
622 vhost_iotlb_reset(iommu);
627 ret = vhost_iotlb_add_range(iommu, map->start,
636 vhost_iotlb_reset(iommu);
677 vhost_iotlb_reset(&vdpasim->iommu[asid]);
680 ret = vhost_iotlb_add_range_ctx(&vdpasim->iommu[asid], iova,
696 vhost_iotlb_reset(&vdpasim->iommu[asid]);
701 vhost_iotlb_del_range(&vdpasim->iommu[asid], iova, iova + size - 1);
723 vhost_iotlb_reset(&vdpasim->iommu[i]);
724 kfree(vdpasim->iommu);