Lines Matching refs:iotlb
516 struct vhost_iotlb *iotlb = dev->iotlb; in vhost_vdpa_iotlb_unmap() local
521 while ((map = vhost_iotlb_itree_first(iotlb, start, last)) != NULL) { in vhost_vdpa_iotlb_unmap()
531 vhost_iotlb_map_free(iotlb, map); in vhost_vdpa_iotlb_unmap()
540 kfree(dev->iotlb); in vhost_vdpa_iotlb_free()
541 dev->iotlb = NULL; in vhost_vdpa_iotlb_free()
574 r = vhost_iotlb_add_range(dev->iotlb, iova, iova + size - 1, in vhost_vdpa_map()
583 r = ops->set_map(vdpa, dev->iotlb); in vhost_vdpa_map()
590 vhost_iotlb_del_range(dev->iotlb, iova, iova + size - 1); in vhost_vdpa_map()
609 ops->set_map(vdpa, dev->iotlb); in vhost_vdpa_unmap()
619 struct vhost_iotlb *iotlb = dev->iotlb; in vhost_vdpa_process_iotlb_update() local
634 if (vhost_iotlb_itree_first(iotlb, msg->iova, in vhost_vdpa_process_iotlb_update()
774 ops->set_map(vdpa, dev->iotlb); in vhost_vdpa_process_iotlb_msg()
895 dev->iotlb = vhost_iotlb_alloc(0, 0); in vhost_vdpa_open()
896 if (!dev->iotlb) { in vhost_vdpa_open()