Home
last modified time | relevance | path

Searched refs:vqs (Results 1 – 24 of 24) sorted by relevance

/openbmc/qemu/hw/virtio/
H A Diothread-vq-mapping.c17 g_autofree unsigned long *vqs = bitmap_new(num_queues); in iothread_vq_mapping_validate() local
38 if (!!node->value->vqs != !!list->value->vqs) { in iothread_vq_mapping_validate()
45 for (vq = node->value->vqs; vq; vq = vq->next) { in iothread_vq_mapping_validate()
53 if (test_and_set_bit(vq->value, vqs)) { in iothread_vq_mapping_validate()
61 if (list->value->vqs) { in iothread_vq_mapping_validate()
63 if (!test_bit(i, vqs)) { in iothread_vq_mapping_validate()
100 if (node->value->vqs) { in iothread_vq_mapping_apply()
104 for (vq = node->value->vqs; vq; vq = vq->next) { in iothread_vq_mapping_apply()
H A Dvhost-user-base.c191 VirtQueue *vq = g_ptr_array_index(vub->vqs, i); in do_vhost_user_cleanup()
231 struct vhost_virtqueue *vhost_vqs = vub->vhost_dev.vqs; in vub_disconnect()
321 vub->vqs = g_ptr_array_sized_new(vub->num_vqs); in vub_device_realize()
323 g_ptr_array_add(vub->vqs, in vub_device_realize()
329 vub->vhost_dev.vqs = g_new0(struct vhost_virtqueue, vub->vhost_dev.nvqs); in vub_device_realize()
347 struct vhost_virtqueue *vhost_vqs = vub->vhost_dev.vqs; in vub_device_unrealize()
H A Dvirtio-pci.c158 VMSTATE_STRUCT_ARRAY(vqs, VirtIOPCIProxy, VIRTIO_QUEUE_MAX, 0,
1453 return proxy->vqs[n].enabled; in virtio_pci_queue_enabled()
1599 val = proxy->vqs[vdev->queue_sel].enabled; in virtio_pci_common_read()
1606 val = proxy->vqs[vdev->queue_sel].desc[0]; in virtio_pci_common_read()
1609 val = proxy->vqs[vdev->queue_sel].desc[1]; in virtio_pci_common_read()
1612 val = proxy->vqs[vdev->queue_sel].avail[0]; in virtio_pci_common_read()
1615 val = proxy->vqs[vdev->queue_sel].avail[1]; in virtio_pci_common_read()
1618 val = proxy->vqs[vdev->queue_sel].used[0]; in virtio_pci_common_read()
1621 val = proxy->vqs[vdev->queue_sel].used[1]; in virtio_pci_common_read()
1624 val = proxy->vqs[vdev->queue_sel].reset; in virtio_pci_common_read()
[all …]
H A Dvhost-user-fs.c257 fs->vhost_dev.vqs = g_new0(struct vhost_virtqueue, fs->vhost_dev.nvqs); in vuf_device_realize()
274 g_free(fs->vhost_dev.vqs); in vuf_device_realize()
281 struct vhost_virtqueue *vhost_vqs = fs->vhost_dev.vqs; in vuf_device_unrealize()
H A Dvirtio-crypto.c985 &vcrypto->vqs[virtio_crypto_vq2q(virtio_get_queue_index(vq))]; in virtio_crypto_handle_dataq_bh()
1085 vcrypto->vqs = g_new0(VirtIOCryptoQueue, vcrypto->max_queues); in virtio_crypto_device_realize()
1087 vcrypto->vqs[i].dataq = in virtio_crypto_device_realize()
1089 vcrypto->vqs[i].dataq_bh = in virtio_crypto_device_realize()
1091 &vcrypto->vqs[i]); in virtio_crypto_device_realize()
1092 vcrypto->vqs[i].vcrypto = vcrypto; in virtio_crypto_device_realize()
1115 virtio_delete_queue(vcrypto->vqs[i].dataq); in virtio_crypto_device_unrealize()
1116 q = &vcrypto->vqs[i]; in virtio_crypto_device_unrealize()
1120 g_free(vcrypto->vqs); in virtio_crypto_device_unrealize()
H A Dvhost-user-scmi.c226 g_free(scmi->vhost_dev.vqs); in do_vhost_user_cleanup()
253 scmi->vhost_dev.vqs = g_new0(struct vhost_virtqueue, scmi->vhost_dev.nvqs); in vu_scmi_device_realize()
H A Dvhost-vsock-common.c265 vvc->vhost_dev.vqs = vvc->vhost_vqs; in vhost_vsock_common_realize()
/openbmc/u-boot/drivers/virtio/
H A Dvirtio_sandbox.c128 list_for_each_entry_safe(vq, n, &uc_priv->vqs, list) in virtio_sandbox_del_vqs()
135 struct virtqueue *vqs[]) in virtio_sandbox_find_vqs() argument
140 vqs[i] = virtio_sandbox_setup_vq(udev, i); in virtio_sandbox_find_vqs()
141 if (IS_ERR(vqs[i])) { in virtio_sandbox_find_vqs()
143 return PTR_ERR(vqs[i]); in virtio_sandbox_find_vqs()
H A Dvirtio_pci_legacy.c243 list_for_each_entry_safe(vq, n, &uc_priv->vqs, list) in virtio_pci_del_vqs()
250 struct virtqueue *vqs[]) in virtio_pci_find_vqs() argument
255 vqs[i] = virtio_pci_setup_vq(udev, i); in virtio_pci_find_vqs()
256 if (IS_ERR(vqs[i])) { in virtio_pci_find_vqs()
258 return PTR_ERR(vqs[i]); in virtio_pci_find_vqs()
H A Dvirtio_mmio.c299 list_for_each_entry_safe(vq, n, &uc_priv->vqs, list) in virtio_mmio_del_vqs()
306 struct virtqueue *vqs[]) in virtio_mmio_find_vqs() argument
311 vqs[i] = virtio_mmio_setup_vq(udev, i); in virtio_mmio_find_vqs()
312 if (IS_ERR(vqs[i])) { in virtio_mmio_find_vqs()
314 return PTR_ERR(vqs[i]); in virtio_mmio_find_vqs()
H A Dvirtio_net.c26 struct virtqueue *vqs[2]; member
200 ret = virtio_find_vqs(dev, 2, priv->vqs); in virtio_net_probe()
H A Dvirtio-uclass.c106 struct virtqueue *vqs[]) in virtio_find_vqs() argument
112 return ops->find_vqs(vdev->parent, nvqs, vqs); in virtio_find_vqs()
256 INIT_LIST_HEAD(&uc_priv->vqs); in virtio_uclass_post_probe()
H A Dvirtio_pci_modern.c330 list_for_each_entry_safe(vq, n, &uc_priv->vqs, list) in virtio_pci_del_vqs()
337 struct virtqueue *vqs[]) in virtio_pci_find_vqs() argument
342 vqs[i] = virtio_pci_setup_vq(udev, i); in virtio_pci_find_vqs()
343 if (IS_ERR(vqs[i])) { in virtio_pci_find_vqs()
345 return PTR_ERR(vqs[i]); in virtio_pci_find_vqs()
H A Dvirtio_ring.c225 list_add_tail(&vq->list, &uc_priv->vqs); in __vring_new_virtqueue()
/openbmc/u-boot/test/dm/
H A Dvirtio.c48 struct virtqueue *vqs[2]; in dm_test_virtio_all_ops() local
76 ut_assertok(virtio_find_vqs(dev, nvqs, vqs)); in dm_test_virtio_all_ops()
78 ut_assertok(virtio_notify(dev, vqs[0])); in dm_test_virtio_all_ops()
/openbmc/qemu/subprojects/libvduse/
H A Dlibvduse.c122 VduseVirtq *vqs; member
202 return &dev->vqs[index]; in vduse_dev_get_queue()
982 vduse_queue_enable(&dev->vqs[i]); in vduse_dev_start_dataplane()
992 vduse_queue_disable(&dev->vqs[i]); in vduse_dev_stop_dataplane()
1018 vq = &dev->vqs[req.vq_state.index]; in vduse_dev_handler()
1034 vq = &dev->vqs[i]; in vduse_dev_handler()
1091 VduseVirtq *vq = &dev->vqs[index]; in vduse_dev_setup_queue()
1124 dev->vqs[i].log = log; in vduse_set_reconnect_log_file()
1125 dev->vqs[i].log->inflight.desc_num = VIRTQUEUE_MAX_SIZE; in vduse_set_reconnect_log_file()
1134 VduseVirtq *vqs; in vduse_dev_init_vqs() local
[all …]
/openbmc/qemu/backends/
H A Dcryptodev-vhost.c59 crypto->dev.vqs = crypto->vqs; in cryptodev_vhost_init()
89 crypto->dev.vqs = crypto->vqs; in cryptodev_vhost_start_one()
H A Dvhost-user.c37 b->dev.vqs = g_new0(struct vhost_virtqueue, nvqs); in vhost_user_backend_dev_init()
173 g_free(b->dev.vqs); in vhost_user_backend_finalize()
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-mmio.h72 VirtIOMMIOQueue vqs[VIRTIO_QUEUE_MAX]; member
H A Dvirtio-crypto.h88 VirtIOCryptoQueue *vqs; member
/openbmc/qemu/include/system/
H A Dcryptodev-vhost.h43 struct vhost_virtqueue vqs[1]; member
/openbmc/u-boot/include/
H A Dvirtio.h171 struct virtqueue *vqs[]);
207 struct list_head vqs; member
304 struct virtqueue *vqs[]);
/openbmc/qemu/hw/scsi/
H A Dvhost-user-scsi.c160 vsc->dev.vqs = s->vhost_vqs; in vhost_user_scsi_connect()
/openbmc/qemu/hw/block/
H A Dvhost-user-blk.c349 s->dev.vqs = s->vhost_vqs; in vhost_user_blk_connect()