Lines Matching refs:nvqs

254 	for (i = 0; i < vs->dev.nvqs;  i++) {  in vhost_scsi_init_inflight()
549 bitmap_zero(vs->compl_bitmap, vs->dev.nvqs); in vhost_scsi_complete_cmd_work()
582 while ((vq = find_next_bit(vs->compl_bitmap, vs->dev.nvqs, vq + 1)) in vhost_scsi_complete_cmd_work()
583 < vs->dev.nvqs) in vhost_scsi_complete_cmd_work()
1441 for (i = 0; i < vs->dev.nvqs; i++) in vhost_scsi_flush()
1448 for (i = 0; i < vs->dev.nvqs; i++) in vhost_scsi_flush()
1561 for (index = 0; index < vs->dev.nvqs; ++index) { in vhost_scsi_set_endpoint()
1621 for (i = VHOST_SCSI_VQ_IO; i < vs->dev.nvqs; i++) { in vhost_scsi_set_endpoint()
1631 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_set_endpoint()
1687 for (index = 0; index < vs->dev.nvqs; ++index) { in vhost_scsi_clear_endpoint()
1733 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_clear_endpoint()
1742 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_clear_endpoint()
1782 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_set_features()
1796 int r = -ENOMEM, i, nvqs = vhost_scsi_max_io_vqs; in vhost_scsi_open() local
1802 if (nvqs > VHOST_SCSI_MAX_IO_VQ) { in vhost_scsi_open()
1803 pr_err("Invalid max_io_vqs of %d. Using %d.\n", nvqs, in vhost_scsi_open()
1805 nvqs = VHOST_SCSI_MAX_IO_VQ; in vhost_scsi_open()
1806 } else if (nvqs == 0) { in vhost_scsi_open()
1807 pr_err("Invalid max_io_vqs of %d. Using 1.\n", nvqs); in vhost_scsi_open()
1808 nvqs = 1; in vhost_scsi_open()
1810 nvqs += VHOST_SCSI_VQ_IO; in vhost_scsi_open()
1812 vs->compl_bitmap = bitmap_alloc(nvqs, GFP_KERNEL); in vhost_scsi_open()
1816 vs->old_inflight = kmalloc_array(nvqs, sizeof(*vs->old_inflight), in vhost_scsi_open()
1821 vs->vqs = kmalloc_array(nvqs, sizeof(*vs->vqs), in vhost_scsi_open()
1826 vqs = kmalloc_array(nvqs, sizeof(*vqs), GFP_KERNEL); in vhost_scsi_open()
1840 for (i = VHOST_SCSI_VQ_IO; i < nvqs; i++) { in vhost_scsi_open()
1844 vhost_dev_init(&vs->dev, vqs, nvqs, UIO_MAXIOV, in vhost_scsi_open()