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()
487 if (copy_to_user(argp, &vdpa->nvqs, sizeof(vdpa->nvqs))) in vhost_vdpa_get_vqs_count()
540 if (idx >= v->nvqs) in vhost_vdpa_vring_ioctl()
543 idx = array_index_nospec(idx, v->nvqs); in vhost_vdpa_vring_ioctl()
1226 u32 i, nvqs; in vhost_vdpa_open() local
1234 nvqs = v->nvqs; in vhost_vdpa_open()
1239 vqs = kmalloc_array(nvqs, sizeof(*vqs), GFP_KERNEL); in vhost_vdpa_open()
1246 for (i = 0; i < nvqs; i++) { in vhost_vdpa_open()
1250 vhost_dev_init(dev, vqs, nvqs, 0, 0, 0, false, in vhost_vdpa_open()
1274 for (i = 0; i < v->nvqs; i++) in vhost_vdpa_clean_irq()
1409 v->nvqs = vdpa->nvqs; in vhost_vdpa_probe()
1416 v->vqs = kmalloc_array(v->nvqs, sizeof(struct vhost_virtqueue), in vhost_vdpa_probe()