Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/virtio/
Dvirtio_pci_common.c280 static int vp_find_vqs_msix(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs_msix() argument
290 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_msix()
297 for (i = 0; i < nvqs; ++i) in vp_find_vqs_msix()
312 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_msix()
354 static int vp_find_vqs_intx(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs_intx() argument
361 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_intx()
372 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_intx()
393 int vp_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs() argument
401 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, true, ctx, desc); in vp_find_vqs()
405 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, false, ctx, desc); in vp_find_vqs()
[all …]
Dvirtio_pci_common.h133 int vp_find_vqs(struct virtio_device *vdev, unsigned nvqs,
Dvirtio_balloon.c395 int err, nvqs; in init_vqs() local
401 nvqs = virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_STATS_VQ) ? 3 : 2; in init_vqs()
402 err = virtio_find_vqs(vb->vdev, nvqs, vqs, callbacks, names, NULL); in init_vqs()
Dvirtio_mmio.c462 static int vm_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vm_find_vqs() argument
478 for (i = 0; i < nvqs; ++i) { in vm_find_vqs()
Dvirtio_pci_modern.c405 static int vp_modern_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vp_modern_find_vqs() argument
413 int rc = vp_find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, desc); in vp_modern_find_vqs()
/Linux-v4.19/tools/virtio/
Dvirtio_test.c40 int nvqs; member
93 struct vq_info *info = &dev->vqs[dev->nvqs]; in vq_info_add()
95 info->idx = dev->nvqs; in vq_info_add()
111 dev->nvqs++; in vq_info_add()
147 poll(dev->fds, dev->nvqs, -1); in wait_for_interrupt()
148 for (i = 0; i < dev->nvqs; ++i) in wait_for_interrupt()
/Linux-v4.19/include/linux/
Dvirtio_config.h74 int (*find_vqs)(struct virtio_device *, unsigned nvqs,
187 int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_find_vqs() argument
192 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, NULL, desc); in virtio_find_vqs()
196 int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs, in virtio_find_vqs_ctx() argument
201 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, in virtio_find_vqs_ctx()
/Linux-v4.19/drivers/vhost/
Dvhost.c297 for (i = 0; i < d->nvqs; ++i) in vhost_vq_meta_reset()
387 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_alloc_iovecs()
411 for (i = 0; i < dev->nvqs; ++i) in vhost_dev_free_iovecs()
416 struct vhost_virtqueue **vqs, int nvqs) in vhost_dev_init() argument
422 dev->nvqs = nvqs; in vhost_dev_init()
436 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_init()
554 for (i = 0; i < dev->nvqs; ++i) in vhost_dev_reset_owner()
563 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_stop()
617 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_cleanup()
713 for (i = 0; i < d->nvqs; ++i) { in memory_access_ok()
[all …]
Dvhost.h163 int nvqs; member
175 void vhost_dev_init(struct vhost_dev *, struct vhost_virtqueue **vqs, int nvqs);
Dtest.c182 for (index = 0; index < n->dev.nvqs; ++index) { in vhost_test_run()
190 for (index = 0; index < n->dev.nvqs; ++index) { in vhost_test_run()
Dscsi.c1167 for (index = 0; index < vs->dev.nvqs; ++index) { in vhost_scsi_set_endpoint()
1270 for (index = 0; index < vs->dev.nvqs; ++index) { in vhost_scsi_clear_endpoint()
/Linux-v4.19/drivers/s390/virtio/
Dvirtio_ccw.c237 static unsigned long get_airq_indicator(struct virtqueue *vqs[], int nvqs, in get_airq_indicator() argument
252 bit = airq_iv_alloc(info->aiv, nvqs); in get_airq_indicator()
261 for (j = 0; j < nvqs; j++) { in get_airq_indicator()
578 struct virtqueue *vqs[], int nvqs, in virtio_ccw_register_adapter_ind() argument
591 thinint_area->indicator = get_airq_indicator(vqs, nvqs, in virtio_ccw_register_adapter_ind()
625 static int virtio_ccw_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_ccw_find_vqs() argument
641 for (i = 0; i < nvqs; ++i) { in virtio_ccw_find_vqs()
660 ret = virtio_ccw_register_adapter_ind(vcdev, vqs, nvqs, ccw); in virtio_ccw_find_vqs()
/Linux-v4.19/drivers/remoteproc/
Dremoteproc_virtio.c137 static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in rproc_virtio_find_vqs() argument
146 for (i = 0; i < nvqs; ++i) { in rproc_virtio_find_vqs()
/Linux-v4.19/drivers/misc/mic/vop/
Dvop_main.c375 static int vop_find_vqs(struct virtio_device *dev, unsigned nvqs, in vop_find_vqs() argument
387 if (nvqs > ioread8(&vdev->desc->num_vq)) in vop_find_vqs()
390 for (i = 0; i < nvqs; ++i) { in vop_find_vqs()