Lines Matching refs:vqs
48 struct vhost_virtqueue *vqs; member
155 ops->kick_vq(v->vdpa, vq - v->vqs); in handle_vq_kick()
182 struct vhost_virtqueue *vq = &v->vqs[qid]; in vhost_vdpa_setup_vq_irq()
208 struct vhost_virtqueue *vq = &v->vqs[qid]; in vhost_vdpa_unsetup_vq_irq()
442 struct vhost_virtqueue *vq = d->vqs[i]; in vhost_vdpa_set_features()
590 vq = &v->vqs[idx]; in vhost_vdpa_vring_ioctl()
1287 kfree(v->vdev.vqs); in vhost_vdpa_cleanup()
1294 struct vhost_virtqueue **vqs; in vhost_vdpa_open() local
1309 vqs = kmalloc_array(nvqs, sizeof(*vqs), GFP_KERNEL); in vhost_vdpa_open()
1310 if (!vqs) { in vhost_vdpa_open()
1317 vqs[i] = &v->vqs[i]; in vhost_vdpa_open()
1318 vqs[i]->handle_kick = handle_vq_kick; in vhost_vdpa_open()
1320 vhost_dev_init(dev, vqs, nvqs, 0, 0, 0, false, in vhost_vdpa_open()
1447 kfree(v->vqs); in vhost_vdpa_release_dev()
1486 v->vqs = kmalloc_array(v->nvqs, sizeof(struct vhost_virtqueue), in vhost_vdpa_probe()
1488 if (!v->vqs) { in vhost_vdpa_probe()