Home
last modified time | relevance | path

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

123

/linux/drivers/virtio/
A Dvirtio_pci_common.c309 kfree(vp_dev->vqs); in vp_del_vqs()
310 vp_dev->vqs = NULL; in vp_del_vqs()
323 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_msix()
324 if (!vp_dev->vqs) in vp_find_vqs_msix()
347 vqs[i] = NULL; in vp_find_vqs_msix()
360 if (IS_ERR(vqs[i])) { in vp_find_vqs_msix()
376 vqs[i]); in vp_find_vqs_msix()
394 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_intx()
395 if (!vp_dev->vqs) in vp_find_vqs_intx()
407 vqs[i] = NULL; in vp_find_vqs_intx()
[all …]
A Dvirtio_vdpa.c263 list_for_each_entry_safe(vq, n, &vdev->vqs, list) in virtio_vdpa_del_vqs()
268 struct virtqueue *vqs[], in virtio_vdpa_find_vqs() argument
282 vqs[i] = NULL; in virtio_vdpa_find_vqs()
286 vqs[i] = virtio_vdpa_setup_vq(vdev, queue_idx++, in virtio_vdpa_find_vqs()
289 if (IS_ERR(vqs[i])) { in virtio_vdpa_find_vqs()
290 err = PTR_ERR(vqs[i]); in virtio_vdpa_find_vqs()
A Dvirtio_pci_common.h61 struct virtio_pci_vq_info **vqs; member
115 struct virtqueue *vqs[], vq_callback_t *callbacks[],
/linux/drivers/vhost/
A Dtest.c38 struct vhost_virtqueue vqs[VHOST_TEST_VQ_MAX]; member
109 struct vhost_virtqueue **vqs; in vhost_test_open() local
113 vqs = kmalloc_array(VHOST_TEST_VQ_MAX, sizeof(*vqs), GFP_KERNEL); in vhost_test_open()
114 if (!vqs) { in vhost_test_open()
120 vqs[VHOST_TEST_VQ] = &n->vqs[VHOST_TEST_VQ]; in vhost_test_open()
149 vhost_poll_flush(&n->vqs[index].poll); in vhost_test_flush_vq()
189 if (!vhost_vq_access_ok(&n->vqs[index])) { in vhost_test_run()
196 vq = n->vqs + index; in vhost_test_run()
204 r = vhost_vq_init_access(&n->vqs[index]); in vhost_test_run()
258 vq = &n->vqs[VHOST_TEST_VQ]; in vhost_test_set_features()
[all …]
A Dnet.c288 n->vqs[i].ubuf_info = in vhost_net_set_ubuf_info()
309 n->vqs[i].done_idx = 0; in vhost_net_vq_reset()
311 n->vqs[i].ubufs = NULL; in vhost_net_vq_reset()
1297 vqs = kmalloc_array(VHOST_NET_VQ_MAX, sizeof(*vqs), GFP_KERNEL); in vhost_net_open()
1298 if (!vqs) { in vhost_net_open()
1306 kfree(vqs); in vhost_net_open()
1314 kfree(vqs); in vhost_net_open()
1322 vqs[VHOST_NET_VQ_TX] = &n->vqs[VHOST_NET_VQ_TX].vq; in vhost_net_open()
1323 vqs[VHOST_NET_VQ_RX] = &n->vqs[VHOST_NET_VQ_RX].vq; in vhost_net_open()
1421 kfree(n->dev.vqs); in vhost_net_release()
[all …]
A Dvsock.c48 struct vhost_virtqueue vqs[2]; member
275 vq = &vsock->vqs[VSOCK_VQ_RX]; in vhost_transport_send_pkt_work()
589 vq = &vsock->vqs[i]; in vhost_vsock_start()
621 vq = &vsock->vqs[i]; in vhost_vsock_start()
674 vqs = kmalloc_array(ARRAY_SIZE(vsock->vqs), sizeof(*vqs), GFP_KERNEL); in vhost_vsock_dev_open()
675 if (!vqs) { in vhost_vsock_dev_open()
684 vqs[VSOCK_VQ_TX] = &vsock->vqs[VSOCK_VQ_TX]; in vhost_vsock_dev_open()
685 vqs[VSOCK_VQ_RX] = &vsock->vqs[VSOCK_VQ_RX]; in vhost_vsock_dev_open()
689 vhost_dev_init(&vsock->dev, vqs, ARRAY_SIZE(vsock->vqs), in vhost_vsock_dev_open()
772 kfree(vsock->dev.vqs); in vhost_vsock_dev_release()
[all …]
A Dscsi.c249 vq = &vs->vqs[i].vq; in vhost_scsi_init_inflight()
568 vq = q - vs->vqs; in vhost_scsi_complete_cmd_work()
1607 vq = &vs->vqs[i].vq; in vhost_scsi_set_endpoint()
1617 vq = &vs->vqs[i].vq; in vhost_scsi_set_endpoint()
1768 vq = &vs->vqs[i].vq; in vhost_scsi_set_features()
1787 vqs = kmalloc_array(VHOST_SCSI_MAX_VQ, sizeof(*vqs), GFP_KERNEL); in vhost_scsi_open()
1788 if (!vqs) in vhost_scsi_open()
1797 vqs[VHOST_SCSI_VQ_CTL] = &vs->vqs[VHOST_SCSI_VQ_CTL].vq; in vhost_scsi_open()
1798 vqs[VHOST_SCSI_VQ_EVT] = &vs->vqs[VHOST_SCSI_VQ_EVT].vq; in vhost_scsi_open()
1802 vqs[i] = &vs->vqs[i].vq; in vhost_scsi_open()
[all …]
A Dvhost.c399 vq = dev->vqs[i]; in vhost_dev_alloc_iovecs()
477 dev->vqs = vqs; in vhost_dev_init()
498 vq = dev->vqs[i]; in vhost_dev_init()
655 dev->vqs[i]->umem = umem; in vhost_dev_reset_owner()
664 if (dev->vqs[i]->kick && dev->vqs[i]->handle_kick) { in vhost_dev_stop()
696 if (dev->vqs[i]->error_ctx) in vhost_dev_cleanup()
698 if (dev->vqs[i]->kick) in vhost_dev_cleanup()
699 fput(dev->vqs[i]->kick); in vhost_dev_cleanup()
1602 vq = d->vqs[idx]; in vhost_vring_ioctl()
1782 vq = d->vqs[i]; in vhost_dev_ioctl()
[all …]
A Dvdpa.c39 struct vhost_virtqueue *vqs; member
64 ops->kick_vq(v->vdpa, vq - v->vqs); in handle_vq_kick()
378 vq = &v->vqs[idx]; in vhost_vdpa_vring_ioctl()
950 struct vhost_virtqueue **vqs; in vhost_vdpa_open() local
964 vqs = kmalloc_array(nvqs, sizeof(*vqs), GFP_KERNEL); in vhost_vdpa_open()
965 if (!vqs) { in vhost_vdpa_open()
972 vqs[i] = &v->vqs[i]; in vhost_vdpa_open()
996 kfree(vqs); in vhost_vdpa_open()
1024 kfree(v->vdev.vqs); in vhost_vdpa_release()
1111 kfree(v->vqs); in vhost_vdpa_release_dev()
[all …]
/linux/drivers/block/
A Dvirtio_blk.c87 struct virtio_blk_vq *vqs; member
554 struct virtqueue **vqs; in init_vq() local
573 vblk->vqs = kmalloc_array(num_vqs, sizeof(*vblk->vqs), GFP_KERNEL); in init_vq()
574 if (!vblk->vqs) in init_vq()
579 vqs = kmalloc_array(num_vqs, sizeof(*vqs), GFP_KERNEL); in init_vq()
598 vblk->vqs[i].vq = vqs[i]; in init_vq()
603 kfree(vqs); in init_vq()
607 kfree(vblk->vqs); in init_vq()
957 kfree(vblk->vqs); in virtblk_probe()
986 kfree(vblk->vqs); in virtblk_remove()
[all …]
/linux/drivers/bluetooth/
A Dvirtio_bt.c24 struct virtqueue *vqs[VIRTBT_NUM_VQS]; member
31 struct virtqueue *vq = vbt->vqs[VIRTBT_VQ_RX]; in virtbt_add_inbuf()
58 virtqueue_kick(vbt->vqs[VIRTBT_VQ_RX]); in virtbt_open()
69 for (i = 0; i < ARRAY_SIZE(vbt->vqs); i++) { in virtbt_close()
70 struct virtqueue *vq = vbt->vqs[i]; in virtbt_close()
94 err = virtqueue_add_outbuf(vbt->vqs[VIRTBT_VQ_TX], sg, 1, skb, in virtbt_send_frame()
101 virtqueue_kick(vbt->vqs[VIRTBT_VQ_TX]); in virtbt_send_frame()
215 skb = virtqueue_get_buf(vbt->vqs[VIRTBT_VQ_RX], &len); in virtbt_rx_work()
225 virtqueue_kick(vbt->vqs[VIRTBT_VQ_RX]); in virtbt_rx_work()
281 err = virtio_find_vqs(vdev, VIRTBT_NUM_VQS, vbt->vqs, callbacks, in virtbt_probe()
/linux/fs/fuse/
A Dvirtio_fs.c155 kfree(vfs->vqs); in release_virtio_fs_obj()
201 fsvq = &fs->vqs[i]; in virtio_fs_drain_all_queues_locked()
225 fsvq = &fs->vqs[i]; in virtio_fs_start_all_queues()
685 fs->vqs = kcalloc(fs->nvqs, sizeof(fs->vqs[VQ_HIPRIO]), GFP_KERNEL); in virtio_fs_setup_vqs()
686 if (!fs->vqs) in virtio_fs_setup_vqs()
689 vqs = kmalloc_array(fs->nvqs, sizeof(vqs[VQ_HIPRIO]), GFP_KERNEL); in virtio_fs_setup_vqs()
718 fs->vqs[i].vq = vqs[i]; in virtio_fs_setup_vqs()
724 kfree(vqs); in virtio_fs_setup_vqs()
726 kfree(fs->vqs); in virtio_fs_setup_vqs()
900 kfree(fs->vqs); in virtio_fs_probe()
[all …]
/linux/net/vmw_vsock/
A Dvirtio_transport.c30 struct virtqueue *vqs[VSOCK_VQ_MAX]; member
100 vq = vsock->vqs[VSOCK_VQ_TX]; in virtio_transport_send_pkt_work()
254 vq = vsock->vqs[VSOCK_VQ_RX]; in virtio_vsock_rx_fill()
294 vq = vsock->vqs[VSOCK_VQ_TX]; in virtio_transport_tx_work()
321 struct virtqueue *vq = vsock->vqs[VSOCK_VQ_RX]; in virtio_transport_more_replies()
337 vq = vsock->vqs[VSOCK_VQ_EVENT]; in virtio_vsock_event_fill_one()
355 virtqueue_kick(vsock->vqs[VSOCK_VQ_EVENT]); in virtio_vsock_event_fill()
398 vq = vsock->vqs[VSOCK_VQ_EVENT]; in virtio_transport_event_work()
418 virtqueue_kick(vsock->vqs[VSOCK_VQ_EVENT]); in virtio_transport_event_work()
520 vq = vsock->vqs[VSOCK_VQ_RX]; in virtio_transport_rx_work()
[all …]
/linux/drivers/vdpa/vdpa_sim/
A Dvdpa_sim.c67 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_queue_ready()
100 vdpasim_vq_reset(vdpasim, &vdpasim->vqs[i]); in vdpasim_do_reset()
278 if (!vdpasim->vqs) in vdpasim_create()
316 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_set_vq_address()
328 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_set_vq_num()
336 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_kick_vq()
346 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_set_vq_cb()
355 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_set_vq_ready()
590 vringh_kiov_cleanup(&vdpasim->vqs[i].out_iov); in vdpasim_free()
591 vringh_kiov_cleanup(&vdpasim->vqs[i].in_iov); in vdpasim_free()
[all …]
/linux/drivers/vdpa/vdpa_user/
A Dvduse_dev.c70 struct vduse_virtqueue *vqs; member
609 if (num_max < dev->vqs[i].num_max) in vduse_vdpa_get_vq_num_max()
610 num_max = dev->vqs[i].num_max; in vduse_vdpa_get_vq_num_max()
841 vq = &dev->vqs[index]; in vduse_kickfd_setup()
867 if (!dev->vqs[i].num_max) in vduse_dev_is_ready()
1030 vq = &dev->vqs[index]; in vduse_dev_ioctl()
1205 kfree(dev->vqs); in vduse_destroy_dev()
1321 dev->vqs = kcalloc(dev->vq_num, sizeof(*dev->vqs), GFP_KERNEL); in vduse_create_dev()
1322 if (!dev->vqs) in vduse_create_dev()
1326 dev->vqs[i].index = i; in vduse_create_dev()
[all …]
/linux/drivers/crypto/virtio/
A Dvirtio_crypto_core.c51 struct virtqueue **vqs; in virtcrypto_find_vqs() local
65 vqs = kcalloc(total_vqs, sizeof(*vqs), GFP_KERNEL); in virtcrypto_find_vqs()
66 if (!vqs) in virtcrypto_find_vqs()
87 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL); in virtcrypto_find_vqs()
91 vi->ctrl_vq = vqs[total_vqs - 1]; in virtcrypto_find_vqs()
95 vi->data_vq[i].vq = vqs[i]; in virtcrypto_find_vqs()
106 kfree(vqs); in virtcrypto_find_vqs()
116 kfree(vqs); in virtcrypto_find_vqs()
/linux/tools/testing/selftests/arm64/fp/
A Dsve-probe-vls.c22 static unsigned int vqs[SVE_VQ_MAX]; in main() local
53 vqs[nvqs++] = vq; in main()
60 ksft_print_msg("%u\n", 16 * vqs[nvqs]); in main()
/linux/arch/arm64/kvm/
A Dguest.c304 #define vq_present(vqs, vq) (!!((vqs)[vq_word(vq)] & vq_mask(vq))) argument
309 u64 vqs[KVM_ARM64_SVE_VLS_WORDS]; in get_sve_vls() local
317 memset(vqs, 0, sizeof(vqs)); in get_sve_vls()
322 vqs[vq_word(vq)] |= vq_mask(vq); in get_sve_vls()
324 if (copy_to_user((void __user *)reg->addr, vqs, sizeof(vqs))) in get_sve_vls()
333 u64 vqs[KVM_ARM64_SVE_VLS_WORDS]; in set_sve_vls() local
344 if (copy_from_user(vqs, (const void __user *)reg->addr, sizeof(vqs))) in set_sve_vls()
349 if (vq_present(vqs, vq)) in set_sve_vls()
363 if (vq_present(vqs, vq) != sve_vq_available(vq)) in set_sve_vls()
/linux/sound/virtio/
A Dvirtio_card.c124 struct virtqueue *vqs[VIRTIO_SND_VQ_MAX] = { 0 }; in virtsnd_find_vqs() local
129 rc = virtio_find_vqs(vdev, VIRTIO_SND_VQ_MAX, vqs, callbacks, names, in virtsnd_find_vqs()
137 snd->queues[i].vqueue = vqs[i]; in virtsnd_find_vqs()
140 virtqueue_disable_cb(vqs[VIRTIO_SND_VQ_EVENT]); in virtsnd_find_vqs()
142 n = virtqueue_get_vring_size(vqs[VIRTIO_SND_VQ_EVENT]); in virtsnd_find_vqs()
150 virtsnd_event_send(vqs[VIRTIO_SND_VQ_EVENT], in virtsnd_find_vqs()
/linux/drivers/remoteproc/
A Dremoteproc_virtio.c143 list_for_each_entry_safe(vq, n, &vdev->vqs, list) { in __rproc_virtio_del_vqs()
156 struct virtqueue *vqs[], in rproc_virtio_find_vqs() argument
166 vqs[i] = NULL; in rproc_virtio_find_vqs()
170 vqs[i] = rp_find_vq(vdev, queue_idx++, callbacks[i], names[i], in rproc_virtio_find_vqs()
172 if (IS_ERR(vqs[i])) { in rproc_virtio_find_vqs()
173 ret = PTR_ERR(vqs[i]); in rproc_virtio_find_vqs()
/linux/drivers/gpio/
A Dgpio-virtio.c465 struct virtqueue *vqs[2] = { NULL, NULL }; in virtio_gpio_alloc_vqs() local
468 ret = virtio_find_vqs(vdev, vgpio->irq_lines ? 2 : 1, vqs, cbs, names, NULL); in virtio_gpio_alloc_vqs()
474 if (!vqs[0]) { in virtio_gpio_alloc_vqs()
478 vgpio->request_vq = vqs[0]; in virtio_gpio_alloc_vqs()
480 if (vgpio->irq_lines && !vqs[1]) { in virtio_gpio_alloc_vqs()
484 vgpio->event_vq = vqs[1]; in virtio_gpio_alloc_vqs()
489 if (vqs[0] || vqs[1]) in virtio_gpio_alloc_vqs()
/linux/drivers/net/ethernet/intel/iavf/
A Diavf_virtchnl.c305 struct virtchnl_queue_select vqs; in iavf_enable_queues() local
314 vqs.vsi_id = adapter->vsi_res->vsi_id; in iavf_enable_queues()
316 vqs.rx_queues = vqs.tx_queues; in iavf_enable_queues()
319 (u8 *)&vqs, sizeof(vqs)); in iavf_enable_queues()
330 struct virtchnl_queue_select vqs; in iavf_disable_queues() local
339 vqs.vsi_id = adapter->vsi_res->vsi_id; in iavf_disable_queues()
341 vqs.rx_queues = vqs.tx_queues; in iavf_disable_queues()
344 (u8 *)&vqs, sizeof(vqs)); in iavf_disable_queues()
791 struct virtchnl_queue_select vqs; in iavf_request_stats() local
800 vqs.vsi_id = adapter->vsi_res->vsi_id; in iavf_request_stats()
[all …]
/linux/drivers/vdpa/mlx5/net/
A Dmlx5_vnet.c1680 mvq = &ndev->vqs[idx]; in mlx5_vdpa_kick_vq()
1704 mvq = &ndev->vqs[idx]; in mlx5_vdpa_set_vq_address()
1720 mvq = &ndev->vqs[idx]; in mlx5_vdpa_set_vq_num()
1770 mvq = &ndev->vqs[idx]; in mlx5_vdpa_set_vq_ready()
1806 mvq = &ndev->vqs[idx]; in mlx5_vdpa_set_vq_state()
1833 mvq = &ndev->vqs[idx]; in mlx5_vdpa_get_vq_state()
1949 mvq = &ndev->vqs[i]; in teardown_virtqueues()
2053 memset(&ndev->vqs[i].ri, 0, sizeof(ndev->vqs[i].ri)); in save_channels_info()
2076 mvq = &ndev->vqs[i]; in restore_channels_info()
2429 mvq = &ndev->vqs[i]; in init_mvqs()
[all …]
/linux/drivers/gpu/drm/virtio/
A Dvirtgpu_kms.c122 struct virtqueue *vqs[2]; in virtio_gpu_init() local
207 ret = virtio_find_vqs(vgdev->vdev, 2, vqs, callbacks, names, NULL); in virtio_gpu_init()
212 vgdev->ctrlq.vq = vqs[0]; in virtio_gpu_init()
213 vgdev->cursorq.vq = vqs[1]; in virtio_gpu_init()
/linux/include/linux/
A Dvirtio_config.h90 struct virtqueue *vqs[], vq_callback_t *callbacks[],
205 struct virtqueue *vqs[], vq_callback_t *callbacks[], in virtio_find_vqs() argument
209 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, NULL, desc); in virtio_find_vqs()
214 struct virtqueue *vqs[], vq_callback_t *callbacks[], in virtio_find_vqs_ctx() argument
218 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, in virtio_find_vqs_ctx()

Completed in 86 milliseconds

123