Lines Matching refs:vqs
349 vq = dev->vqs[i]; in vhost_dev_alloc_iovecs()
361 vhost_vq_free_iovecs(dev->vqs[i]); in vhost_dev_alloc_iovecs()
370 vhost_vq_free_iovecs(dev->vqs[i]); in vhost_dev_free_iovecs()
374 struct vhost_virtqueue **vqs, int nvqs) in vhost_dev_init() argument
379 dev->vqs = vqs; in vhost_dev_init()
391 vq = dev->vqs[i]; in vhost_dev_init()
509 dev->vqs[i]->memory = memory; in vhost_dev_reset_owner()
518 if (dev->vqs[i]->kick && dev->vqs[i]->handle_kick) { in vhost_dev_stop()
519 vhost_poll_stop(&dev->vqs[i]->poll); in vhost_dev_stop()
520 vhost_poll_flush(&dev->vqs[i]->poll); in vhost_dev_stop()
532 if (dev->vqs[i]->error_ctx) in vhost_dev_cleanup()
533 eventfd_ctx_put(dev->vqs[i]->error_ctx); in vhost_dev_cleanup()
534 if (dev->vqs[i]->error) in vhost_dev_cleanup()
535 fput(dev->vqs[i]->error); in vhost_dev_cleanup()
536 if (dev->vqs[i]->kick) in vhost_dev_cleanup()
537 fput(dev->vqs[i]->kick); in vhost_dev_cleanup()
538 if (dev->vqs[i]->call_ctx) in vhost_dev_cleanup()
539 eventfd_ctx_put(dev->vqs[i]->call_ctx); in vhost_dev_cleanup()
540 if (dev->vqs[i]->call) in vhost_dev_cleanup()
541 fput(dev->vqs[i]->call); in vhost_dev_cleanup()
542 vhost_vq_reset(dev, dev->vqs[i]); in vhost_dev_cleanup()
614 mutex_lock(&d->vqs[i]->mutex); in memory_access_ok()
615 log = log_all || vhost_has_feature(d->vqs[i], VHOST_F_LOG_ALL); in memory_access_ok()
617 if (d->vqs[i]->private_data) in memory_access_ok()
618 ok = vq_memory_access_ok(d->vqs[i]->log_base, mem, log); in memory_access_ok()
621 mutex_unlock(&d->vqs[i]->mutex); in memory_access_ok()
725 mutex_lock(&d->vqs[i]->mutex); in vhost_set_memory()
726 d->vqs[i]->memory = newmem; in vhost_set_memory()
727 mutex_unlock(&d->vqs[i]->mutex); in vhost_set_memory()
752 vq = d->vqs[idx]; in vhost_vring_ioctl()
974 vq = d->vqs[i]; in vhost_dev_ioctl()
1002 mutex_lock(&d->vqs[i]->mutex); in vhost_dev_ioctl()
1003 d->vqs[i]->log_ctx = d->log_ctx; in vhost_dev_ioctl()
1004 mutex_unlock(&d->vqs[i]->mutex); in vhost_dev_ioctl()