Lines Matching refs:vqs
189 struct vhost_scsi_virtqueue vqs[VHOST_SCSI_MAX_VQ]; member
249 vq = &vs->vqs[i].vq; in vhost_scsi_init_inflight()
254 idx = vs->vqs[i].inflight_idx; in vhost_scsi_init_inflight()
256 old_inflight[i] = &vs->vqs[i].inflights[idx]; in vhost_scsi_init_inflight()
259 vs->vqs[i].inflight_idx = idx ^ 1; in vhost_scsi_init_inflight()
260 new_inflight = &vs->vqs[i].inflights[idx ^ 1]; in vhost_scsi_init_inflight()
433 struct vhost_virtqueue *vq = &vs->vqs[VHOST_SCSI_VQ_EVT].vq; in vhost_scsi_allocate_evt()
463 struct vhost_virtqueue *vq = &vs->vqs[VHOST_SCSI_VQ_EVT].vq; in vhost_scsi_do_evt_work()
514 struct vhost_virtqueue *vq = &vs->vqs[VHOST_SCSI_VQ_EVT].vq; in vhost_scsi_evt_work()
568 vq = q - vs->vqs; in vhost_scsi_complete_cmd_work()
579 vhost_signal(&vs->dev, &vs->vqs[vq].vq); in vhost_scsi_complete_cmd_work()
1548 if (!vhost_vq_access_ok(&vs->vqs[index].vq)) { in vhost_scsi_set_endpoint()
1607 vq = &vs->vqs[i].vq; in vhost_scsi_set_endpoint()
1617 vq = &vs->vqs[i].vq; in vhost_scsi_set_endpoint()
1639 if (!vhost_vq_get_backend(&vs->vqs[i].vq)) in vhost_scsi_set_endpoint()
1640 vhost_scsi_destroy_vq_cmds(&vs->vqs[i].vq); in vhost_scsi_set_endpoint()
1673 if (!vhost_vq_access_ok(&vs->vqs[index].vq)) { in vhost_scsi_clear_endpoint()
1719 vq = &vs->vqs[i].vq; in vhost_scsi_clear_endpoint()
1728 vq = &vs->vqs[i].vq; in vhost_scsi_clear_endpoint()
1768 vq = &vs->vqs[i].vq; in vhost_scsi_set_features()
1780 struct vhost_virtqueue **vqs; in vhost_scsi_open() local
1787 vqs = kmalloc_array(VHOST_SCSI_MAX_VQ, sizeof(*vqs), GFP_KERNEL); in vhost_scsi_open()
1788 if (!vqs) in vhost_scsi_open()
1797 vqs[VHOST_SCSI_VQ_CTL] = &vs->vqs[VHOST_SCSI_VQ_CTL].vq; in vhost_scsi_open()
1798 vqs[VHOST_SCSI_VQ_EVT] = &vs->vqs[VHOST_SCSI_VQ_EVT].vq; in vhost_scsi_open()
1799 vs->vqs[VHOST_SCSI_VQ_CTL].vq.handle_kick = vhost_scsi_ctl_handle_kick; in vhost_scsi_open()
1800 vs->vqs[VHOST_SCSI_VQ_EVT].vq.handle_kick = vhost_scsi_evt_handle_kick; in vhost_scsi_open()
1802 vqs[i] = &vs->vqs[i].vq; in vhost_scsi_open()
1803 vs->vqs[i].vq.handle_kick = vhost_scsi_handle_kick; in vhost_scsi_open()
1805 vhost_dev_init(&vs->dev, vqs, VHOST_SCSI_MAX_VQ, UIO_MAXIOV, in vhost_scsi_open()
1832 kfree(vs->dev.vqs); in vhost_scsi_release()
1850 struct vhost_virtqueue *vq = &vs->vqs[VHOST_SCSI_VQ_EVT].vq; in vhost_scsi_ioctl()
1965 vq = &vs->vqs[VHOST_SCSI_VQ_EVT].vq; in vhost_scsi_do_plug()