Home
last modified time | relevance | path

Searched refs:nvqs (Results 1 – 25 of 62) sorted by relevance

123

/openbmc/linux/tools/testing/selftests/arm64/fp/
H A Dsve-probe-vls.c23 unsigned int nvqs = 0; in main() local
50 if (!(nvqs < SVE_VQ_MAX)) in main()
52 nvqs); in main()
53 vqs[nvqs++] = vq; in main()
55 ksft_test_result_pass("Enumerated %d vector lengths\n", nvqs); in main()
59 while (nvqs--) in main()
60 ksft_print_msg("%u\n", 16 * vqs[nvqs]); in main()
/openbmc/qemu/backends/
H A Dvhost-user.c25 unsigned nvqs, Error **errp) in vhost_user_backend_dev_init() argument
36 b->dev.nvqs = nvqs; in vhost_user_backend_dev_init()
37 b->dev.vqs = g_new0(struct vhost_virtqueue, nvqs); in vhost_user_backend_dev_init()
69 ret = k->set_guest_notifiers(qbus->parent, b->dev.nvqs, true); in vhost_user_backend_start()
86 for (i = 0; i < b->dev.nvqs; i++) { in vhost_user_backend_start()
95 k->set_guest_notifiers(qbus->parent, b->dev.nvqs, false); in vhost_user_backend_start()
115 b->dev.nvqs, false); in vhost_user_backend_stop()
H A Dcryptodev-vhost.c58 crypto->dev.nvqs = 1; in cryptodev_vhost_init()
67 crypto->dev.vq_index = crypto->cc->queue_index * crypto->dev.nvqs; in cryptodev_vhost_init()
88 crypto->dev.nvqs = 1; in cryptodev_vhost_start_one()
/openbmc/qemu/hw/virtio/
H A Dvdpa-dev.c102 v->dev.nvqs = v->num_queues; in vhost_vdpa_device_realize()
103 vqs = g_new0(struct vhost_virtqueue, v->dev.nvqs); in vhost_vdpa_device_realize()
106 v->dev.vq_index_end = v->dev.nvqs; in vhost_vdpa_device_realize()
152 v->virtqs = g_new0(VirtQueue *, v->dev.nvqs); in vhost_vdpa_device_realize()
153 for (i = 0; i < v->dev.nvqs; i++) { in vhost_vdpa_device_realize()
255 ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, true); in vhost_vdpa_device_start()
275 for (i = 0; i < s->dev.nvqs; i++) { in vhost_vdpa_device_start()
282 k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false); in vhost_vdpa_device_start()
306 ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false); in vhost_vdpa_device_stop()
H A Dvhost-user-scmi.c53 ret = k->set_guest_notifiers(qbus->parent, vhost_dev->nvqs, true); in vu_scmi_start()
73 for (i = 0; i < scmi->vhost_dev.nvqs; i++) { in vu_scmi_start()
79 k->set_guest_notifiers(qbus->parent, vhost_dev->nvqs, false); in vu_scmi_start()
106 ret = k->set_guest_notifiers(qbus->parent, vhost_dev->nvqs, false); in vu_scmi_stop()
247 scmi->vhost_dev.nvqs = 2; in vu_scmi_device_realize()
248 scmi->vhost_dev.vqs = g_new0(struct vhost_virtqueue, scmi->vhost_dev.nvqs); in vu_scmi_device_realize()
H A Dvhost-user-base.c38 ret = k->set_guest_notifiers(qbus->parent, vub->vhost_dev.nvqs, true); in vub_start()
57 for (i = 0; i < vub->vhost_dev.nvqs; i++) { in vub_start()
64 k->set_guest_notifiers(qbus->parent, vub->vhost_dev.nvqs, false); in vub_start()
82 ret = k->set_guest_notifiers(qbus->parent, vub->vhost_dev.nvqs, false); in vub_stop()
323 vub->vhost_dev.nvqs = vub->num_vqs; in vub_device_realize()
324 vub->vhost_dev.vqs = g_new0(struct vhost_virtqueue, vub->vhost_dev.nvqs); in vub_device_realize()
H A Dvhost-vsock-common.c67 ret = k->set_guest_notifiers(qbus->parent, vvc->vhost_dev.nvqs, true); in vhost_vsock_common_start()
85 for (i = 0; i < vvc->vhost_dev.nvqs; i++) { in vhost_vsock_common_start()
92 k->set_guest_notifiers(qbus->parent, vvc->vhost_dev.nvqs, false); in vhost_vsock_common_start()
111 ret = k->set_guest_notifiers(qbus->parent, vvc->vhost_dev.nvqs, false); in vhost_vsock_common_stop()
264 vvc->vhost_dev.nvqs = ARRAY_SIZE(vvc->vhost_vqs); in vhost_vsock_common_realize()
H A Dvhost-user-fs.c73 ret = k->set_guest_notifiers(qbus->parent, fs->vhost_dev.nvqs, true); in vuf_start()
91 for (i = 0; i < fs->vhost_dev.nvqs; i++) { in vuf_start()
98 k->set_guest_notifiers(qbus->parent, fs->vhost_dev.nvqs, false); in vuf_start()
116 ret = k->set_guest_notifiers(qbus->parent, fs->vhost_dev.nvqs, false); in vuf_stop()
251 fs->vhost_dev.nvqs = 1 + fs->conf.num_request_queues; in vuf_device_realize()
252 fs->vhost_dev.vqs = g_new0(struct vhost_virtqueue, fs->vhost_dev.nvqs); in vuf_device_realize()
H A Dvhost.c220 for (i = 0; i < dev->nvqs; ++i) { in vhost_sync_dirty_bitmap()
523 for (i = 0; i < dev->nvqs; ++i) { in vhost_verify_ring_mappings()
1028 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_set_log()
1553 for (i = 0; i < hdev->nvqs; ++i, ++n_initialized_vqs) { in vhost_dev_init()
1562 for (i = 0; i < hdev->nvqs; ++i) { in vhost_dev_init()
1655 hdev->nvqs = n_initialized_vqs; in vhost_dev_init()
1666 for (i = 0; i < hdev->nvqs; ++i) { in vhost_dev_cleanup()
1687 unsigned int nvqs) in vhost_dev_disable_notifiers_nvqs() argument
1698 for (i = 0; i < nvqs; ++i) { in vhost_dev_disable_notifiers_nvqs()
1713 for (i = 0; i < nvqs; ++i) { in vhost_dev_disable_notifiers_nvqs()
[all …]
/openbmc/linux/drivers/virtio/
H A Dvirtio_pci_common.c284 static int vp_find_vqs_msix(struct virtio_device *vdev, unsigned int nvqs, in vp_find_vqs_msix() argument
294 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_msix()
301 for (i = 0; i < nvqs; ++i) in vp_find_vqs_msix()
316 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_msix()
360 static int vp_find_vqs_intx(struct virtio_device *vdev, unsigned int nvqs, in vp_find_vqs_intx() argument
367 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_intx()
378 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_intx()
399 int vp_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in vp_find_vqs() argument
407 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, true, ctx, desc); in vp_find_vqs()
411 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, false, ctx, desc); in vp_find_vqs()
[all …]
/openbmc/qemu/hw/scsi/
H A Dvhost-scsi-common.c49 ret = k->set_guest_notifiers(qbus->parent, vsc->dev.nvqs, true); in vhost_scsi_common_start()
91 for (i = 0; i < vsc->dev.nvqs; i++) { in vhost_scsi_common_start()
98 k->set_guest_notifiers(qbus->parent, vsc->dev.nvqs, false); in vhost_scsi_common_start()
114 ret = k->set_guest_notifiers(qbus->parent, vsc->dev.nvqs, false); in vhost_scsi_common_stop()
H A Dvhost-scsi.c178 if (!per_virtqueue || dev->nvqs == VHOST_SCSI_VQ_NUM_FIXED + 1) { in vhost_scsi_set_workers()
186 for (i = VHOST_SCSI_VQ_NUM_FIXED + 1; i < dev->nvqs; i++) { in vhost_scsi_set_workers()
274 vsc->dev.nvqs = VHOST_SCSI_VQ_NUM_FIXED + vs->conf.num_queues; in vhost_scsi_realize()
275 vqs = g_new0(struct vhost_virtqueue, vsc->dev.nvqs); in vhost_scsi_realize()
/openbmc/linux/tools/virtio/
H A Dvirtio_test.c43 int nvqs; member
113 struct vq_info *info = &dev->vqs[dev->nvqs]; in vq_info_add()
115 info->idx = dev->nvqs; in vq_info_add()
124 dev->nvqs++; in vq_info_add()
162 poll(dev->fds, dev->nvqs, -1); in wait_for_interrupt()
163 for (i = 0; i < dev->nvqs; ++i) in wait_for_interrupt()
/openbmc/qemu/hw/block/
H A Dvhost-user-blk.c151 ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, true); in vhost_user_blk_start()
183 for (i = 0; i < s->dev.nvqs; i++) { in vhost_user_blk_start()
187 s->dev.vq_index_end = s->dev.nvqs; in vhost_user_blk_start()
198 for (i = 0; i < s->dev.nvqs; i++) { in vhost_user_blk_start()
201 k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false); in vhost_user_blk_start()
225 ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false); in vhost_user_blk_stop()
312 for (i = 0; i < s->dev.nvqs; i++) { in vhost_user_blk_handle_output()
340 s->dev.nvqs = s->num_queues; in vhost_user_blk_connect()
/openbmc/linux/drivers/vhost/
H A Dvdpa.c55 u32 nvqs; member
275 u32 nvqs = v->nvqs; in vhost_vdpa_set_status() local
292 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
303 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
439 for (i = 0; i < d->nvqs; ++i) { in vhost_vdpa_set_features()
531 if (copy_to_user(argp, &vdpa->nvqs, sizeof(vdpa->nvqs))) in vhost_vdpa_get_vqs_count()
584 if (idx >= v->nvqs) in vhost_vdpa_vring_ioctl()
587 idx = array_index_nospec(idx, v->nvqs); in vhost_vdpa_vring_ioctl()
1305 u32 i, nvqs; in vhost_vdpa_open() local
1313 nvqs = v->nvqs; in vhost_vdpa_open()
[all …]
H A Dscsi.c259 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_init_inflight()
1291 for (i = VHOST_SCSI_VQ_IO; i < tmf->vhost->dev.nvqs; i++) { in vhost_scsi_tmf_resp_work()
1564 for (i = 0; i < vs->dev.nvqs; i++) in vhost_scsi_flush()
1571 for (i = 0; i < vs->dev.nvqs; i++) in vhost_scsi_flush()
1683 for (index = 0; index < vs->dev.nvqs; ++index) { in vhost_scsi_set_endpoint()
1747 for (i = VHOST_SCSI_VQ_IO; i < vs->dev.nvqs; i++) { in vhost_scsi_set_endpoint()
1757 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_set_endpoint()
1814 for (index = 0; index < vs->dev.nvqs; ++index) { in vhost_scsi_clear_endpoint()
1852 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_clear_endpoint()
1861 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_clear_endpoint()
[all …]
H A Dvhost.c355 for (i = 0; i < d->nvqs; ++i) in vhost_vq_meta_reset()
438 for (i = 0; i < dev->nvqs; i++) { in vhost_worker_killed()
478 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_alloc_iovecs()
502 for (i = 0; i < dev->nvqs; ++i) in vhost_dev_free_iovecs()
546 struct vhost_virtqueue **vqs, int nvqs, in vhost_dev_init() argument
556 dev->nvqs = nvqs; in vhost_dev_init()
573 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_init()
653 for (i = 0; i < dev->nvqs; i++) in vhost_workers_free()
846 if (idx >= dev->nvqs) in vhost_get_vq_from_user()
849 idx = array_index_nospec(idx, dev->nvqs); in vhost_get_vq_from_user()
[all …]
/openbmc/linux/fs/fuse/
H A Dvirtio_fs.c62 unsigned int nvqs; /* number of virtqueues */ member
213 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_drain_all_queues_locked()
237 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_start_all_queues()
294 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_free_devs()
707 fs->nvqs = VQ_REQUEST + fs->num_request_queues; in virtio_fs_setup_vqs()
708 fs->vqs = kcalloc(fs->nvqs, sizeof(fs->vqs[VQ_HIPRIO]), GFP_KERNEL); in virtio_fs_setup_vqs()
712 vqs = kmalloc_array(fs->nvqs, sizeof(vqs[VQ_HIPRIO]), GFP_KERNEL); in virtio_fs_setup_vqs()
713 callbacks = kmalloc_array(fs->nvqs, sizeof(callbacks[VQ_HIPRIO]), in virtio_fs_setup_vqs()
715 names = kmalloc_array(fs->nvqs, sizeof(names[VQ_HIPRIO]), GFP_KERNEL); in virtio_fs_setup_vqs()
727 for (i = VQ_REQUEST; i < fs->nvqs; i++) { in virtio_fs_setup_vqs()
[all …]
/openbmc/qemu/hw/net/
H A Dvhost_net.c190 for (j = 0; j < hdev->nvqs; j++) { in vhost_net_disable_notifiers_nvhosts()
216 for (j = 0; j < hdev->nvqs; j++) { in vhost_net_disable_notifiers_nvhosts()
266 for (j = 0; j < hdev->nvqs; j++) { in vhost_net_enable_notifiers()
331 net->dev.nvqs = options->nvqs; in vhost_net_init()
351 net->dev.vq_index = net->nc->queue_index * net->dev.nvqs; in vhost_net_init()
429 for (file.index = 0; file.index < net->dev.nvqs; ++file.index) { in vhost_net_start_one()
477 for (file.index = 0; file.index < net->dev.nvqs; ++file.index) { in vhost_net_stop_one()
/openbmc/u-boot/test/dm/
H A Dvirtio.c43 uint offset = 0, len = 0, nvqs = 1; in dm_test_virtio_all_ops() local
76 ut_assertok(virtio_find_vqs(dev, nvqs, vqs)); in dm_test_virtio_all_ops()
/openbmc/linux/include/linux/
H A Dvirtio_config.h106 int (*find_vqs)(struct virtio_device *, unsigned nvqs,
224 int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_find_vqs() argument
229 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, NULL, desc); in virtio_find_vqs()
233 int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs, in virtio_find_vqs_ctx() argument
238 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, in virtio_find_vqs_ctx()
H A Dvdpa.h96 u32 nvqs; member
436 int vdpa_register_device(struct vdpa_device *vdev, u32 nvqs);
439 int _vdpa_register_device(struct vdpa_device *vdev, u32 nvqs);
/openbmc/u-boot/drivers/virtio/
H A Dvirtio_sandbox.c134 static int virtio_sandbox_find_vqs(struct udevice *udev, unsigned int nvqs, in virtio_sandbox_find_vqs() argument
139 for (i = 0; i < nvqs; ++i) { in virtio_sandbox_find_vqs()
/openbmc/qemu/include/sysemu/
H A Dvhost-user-backend.h44 unsigned nvqs, Error **errp);
/openbmc/qemu/include/hw/virtio/
H A Dvhost.h88 unsigned int nvqs; member
176 unsigned int nvqs);

123