Lines Matching refs:vqs
348 __vhost_vq_meta_reset(d->vqs[i]); in vhost_vq_meta_reset()
437 vq = dev->vqs[i]; in vhost_dev_alloc_iovecs()
452 vhost_vq_free_iovecs(dev->vqs[i]); in vhost_dev_alloc_iovecs()
461 vhost_vq_free_iovecs(dev->vqs[i]); in vhost_dev_free_iovecs()
504 struct vhost_virtqueue **vqs, int nvqs, in vhost_dev_init() argument
513 dev->vqs = vqs; in vhost_dev_init()
532 vq = dev->vqs[i]; in vhost_dev_init()
612 rcu_assign_pointer(dev->vqs[i]->worker, NULL); in vhost_workers_free()
783 *vq = dev->vqs[idx]; in vhost_get_vq_from_user()
896 __vhost_vq_attach_worker(dev->vqs[i], worker); in vhost_dev_set_owner()
934 dev->vqs[i]->umem = umem; in vhost_dev_reset_owner()
943 if (dev->vqs[i]->kick && dev->vqs[i]->handle_kick) in vhost_dev_stop()
944 vhost_poll_stop(&dev->vqs[i]->poll); in vhost_dev_stop()
976 if (dev->vqs[i]->error_ctx) in vhost_dev_cleanup()
977 eventfd_ctx_put(dev->vqs[i]->error_ctx); in vhost_dev_cleanup()
978 if (dev->vqs[i]->kick) in vhost_dev_cleanup()
979 fput(dev->vqs[i]->kick); in vhost_dev_cleanup()
980 if (dev->vqs[i]->call_ctx.ctx) in vhost_dev_cleanup()
981 eventfd_ctx_put(dev->vqs[i]->call_ctx.ctx); in vhost_dev_cleanup()
982 vhost_vq_reset(dev, dev->vqs[i]); in vhost_dev_cleanup()
1074 mutex_lock(&d->vqs[i]->mutex); in memory_access_ok()
1075 log = log_all || vhost_has_feature(d->vqs[i], VHOST_F_LOG_ALL); in memory_access_ok()
1077 if (d->vqs[i]->private_data) in memory_access_ok()
1078 ok = vq_memory_access_ok(d->vqs[i]->log_base, in memory_access_ok()
1082 mutex_unlock(&d->vqs[i]->mutex); in memory_access_ok()
1283 mutex_lock_nested(&d->vqs[i]->mutex, i); in vhost_dev_lock_vqs()
1290 mutex_unlock(&d->vqs[i]->mutex); in vhost_dev_unlock_vqs()
1438 if (vhost_backend_has_feature(dev->vqs[0], in vhost_chr_write_iter()
1764 mutex_lock(&d->vqs[i]->mutex); in vhost_set_memory()
1765 d->vqs[i]->umem = newumem; in vhost_set_memory()
1766 mutex_unlock(&d->vqs[i]->mutex); in vhost_set_memory()
2028 struct vhost_virtqueue *vq = d->vqs[i]; in vhost_init_device_iotlb()
2077 vq = d->vqs[i]; in vhost_dev_ioctl()
2098 mutex_lock(&d->vqs[i]->mutex); in vhost_dev_ioctl()
2099 d->vqs[i]->log_ctx = d->log_ctx; in vhost_dev_ioctl()
2100 mutex_unlock(&d->vqs[i]->mutex); in vhost_dev_ioctl()
2913 vq = dev->vqs[i]; in vhost_set_backend_features()