Lines Matching refs:nvqs
55 u32 nvqs; member
255 u32 nvqs = v->nvqs; in vhost_vdpa_set_status() local
272 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
283 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
479 if (copy_to_user(argp, &vdpa->nvqs, sizeof(vdpa->nvqs))) in vhost_vdpa_get_vqs_count()
517 if (idx >= v->nvqs) in vhost_vdpa_vring_ioctl()
520 idx = array_index_nospec(idx, v->nvqs); in vhost_vdpa_vring_ioctl()
1191 u32 i, nvqs; in vhost_vdpa_open() local
1199 nvqs = v->nvqs; in vhost_vdpa_open()
1204 vqs = kmalloc_array(nvqs, sizeof(*vqs), GFP_KERNEL); in vhost_vdpa_open()
1211 for (i = 0; i < nvqs; i++) { in vhost_vdpa_open()
1215 vhost_dev_init(dev, vqs, nvqs, 0, 0, 0, false, in vhost_vdpa_open()
1239 for (i = 0; i < v->nvqs; i++) in vhost_vdpa_clean_irq()
1374 v->nvqs = vdpa->nvqs; in vhost_vdpa_probe()
1381 v->vqs = kmalloc_array(v->nvqs, sizeof(struct vhost_virtqueue), in vhost_vdpa_probe()