Lines Matching refs:nvqs
45 int nvqs; member
163 int nvqs = v->nvqs; in vhost_vdpa_set_status() local
181 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
185 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
381 if (idx >= v->nvqs) in vhost_vdpa_vring_ioctl()
384 idx = array_index_nospec(idx, v->nvqs); in vhost_vdpa_vring_ioctl()
870 int nvqs, i, r, opened; in vhost_vdpa_open() local
878 nvqs = v->nvqs; in vhost_vdpa_open()
881 vqs = kmalloc_array(nvqs, sizeof(*vqs), GFP_KERNEL); in vhost_vdpa_open()
888 for (i = 0; i < nvqs; i++) { in vhost_vdpa_open()
892 vhost_dev_init(dev, vqs, nvqs, 0, 0, 0, false, in vhost_vdpa_open()
923 for (i = 0; i < v->nvqs; i++) in vhost_vdpa_clean_irq()
1057 v->nvqs = vdpa->nvqs; in vhost_vdpa_probe()
1064 v->vqs = kmalloc_array(v->nvqs, sizeof(struct vhost_virtqueue), in vhost_vdpa_probe()