Lines Matching refs:vqs
270 vq = dev->vqs[i]; in vhost_dev_alloc_iovecs()
282 vhost_vq_free_iovecs(dev->vqs[i]); in vhost_dev_alloc_iovecs()
291 vhost_vq_free_iovecs(dev->vqs[i]); in vhost_dev_free_iovecs()
295 struct vhost_virtqueue **vqs, int nvqs) in vhost_dev_init() argument
300 dev->vqs = vqs; in vhost_dev_init()
312 vq = dev->vqs[i]; in vhost_dev_init()
430 dev->vqs[i]->memory = memory; in vhost_dev_reset_owner()
439 if (dev->vqs[i]->kick && dev->vqs[i]->handle_kick) { in vhost_dev_stop()
440 vhost_poll_stop(&dev->vqs[i]->poll); in vhost_dev_stop()
441 vhost_poll_flush(&dev->vqs[i]->poll); in vhost_dev_stop()
453 if (dev->vqs[i]->error_ctx) in vhost_dev_cleanup()
454 eventfd_ctx_put(dev->vqs[i]->error_ctx); in vhost_dev_cleanup()
455 if (dev->vqs[i]->error) in vhost_dev_cleanup()
456 fput(dev->vqs[i]->error); in vhost_dev_cleanup()
457 if (dev->vqs[i]->kick) in vhost_dev_cleanup()
458 fput(dev->vqs[i]->kick); in vhost_dev_cleanup()
459 if (dev->vqs[i]->call_ctx) in vhost_dev_cleanup()
460 eventfd_ctx_put(dev->vqs[i]->call_ctx); in vhost_dev_cleanup()
461 if (dev->vqs[i]->call) in vhost_dev_cleanup()
462 fput(dev->vqs[i]->call); in vhost_dev_cleanup()
463 vhost_vq_reset(dev, dev->vqs[i]); in vhost_dev_cleanup()
535 mutex_lock(&d->vqs[i]->mutex); in memory_access_ok()
536 log = log_all || vhost_has_feature(d->vqs[i], VHOST_F_LOG_ALL); in memory_access_ok()
538 if (d->vqs[i]->private_data) in memory_access_ok()
539 ok = vq_memory_access_ok(d->vqs[i]->log_base, mem, log); in memory_access_ok()
542 mutex_unlock(&d->vqs[i]->mutex); in memory_access_ok()
625 mutex_lock(&d->vqs[i]->mutex); in vhost_set_memory()
626 d->vqs[i]->memory = newmem; in vhost_set_memory()
627 mutex_unlock(&d->vqs[i]->mutex); in vhost_set_memory()
652 vq = d->vqs[idx]; in vhost_vring_ioctl()
868 vq = d->vqs[i]; in vhost_dev_ioctl()
896 mutex_lock(&d->vqs[i]->mutex); in vhost_dev_ioctl()
897 d->vqs[i]->log_ctx = d->log_ctx; in vhost_dev_ioctl()
898 mutex_unlock(&d->vqs[i]->mutex); in vhost_dev_ioctl()