Home
last modified time | relevance | path

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

/drivers/virtio/
A Dvirtio_pci_common.c376 static int vp_find_vqs_msix(struct virtio_device *vdev, unsigned int nvqs, in vp_find_vqs_msix() argument
390 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_msix()
405 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_msix()
423 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_msix()
467 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_intx()
484 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_intx()
518 int vp_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in vp_find_vqs() argument
525 err = vp_find_vqs_msix(vdev, nvqs, vqs, vqs_info, in vp_find_vqs()
532 err = vp_find_vqs_msix(vdev, nvqs, vqs, vqs_info, in vp_find_vqs()
537 err = vp_find_vqs_msix(vdev, nvqs, vqs, vqs_info, in vp_find_vqs()
[all …]
A Dvirtio_vdpa.c151 if (index >= vdpa->nvqs) in virtio_vdpa_setup_vq()
324 static int virtio_vdpa_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in virtio_vdpa_find_vqs() argument
338 masks = create_affinity_masks(nvqs, desc); in virtio_vdpa_find_vqs()
343 for (i = 0; i < nvqs; ++i) { in virtio_vdpa_find_vqs()
A Dvirtio_pci_common.h135 int vp_find_vqs(struct virtio_device *vdev, unsigned int nvqs,
A Dvirtio_mmio.c446 static int vm_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in vm_find_vqs() argument
466 for (i = 0; i < nvqs; ++i) { in vm_find_vqs()
A Dvirtio_pci_modern.c744 static int vp_modern_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in vp_modern_find_vqs() argument
751 int rc = vp_find_vqs(vdev, nvqs, vqs, vqs_info, desc); in vp_modern_find_vqs()
/drivers/vhost/
A Dvdpa.c55 u32 nvqs; member
306 u32 nvqs = v->nvqs; in vhost_vdpa_set_status() local
323 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
334 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
579 if (copy_to_user(argp, &vdpa->nvqs, sizeof(vdpa->nvqs))) in vhost_vdpa_get_vqs_count()
648 if (idx >= v->nvqs) in vhost_vdpa_vring_ioctl()
1406 u32 i, nvqs; in vhost_vdpa_open() local
1414 nvqs = v->nvqs; in vhost_vdpa_open()
1426 for (i = 0; i < nvqs; i++) { in vhost_vdpa_open()
1455 for (i = 0; i < v->nvqs; i++) in vhost_vdpa_clean_irq()
[all …]
A Dscsi.c309 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_init_inflight()
1867 for (i = 0; i < vs->dev.nvqs; i++) in vhost_scsi_flush()
1874 for (i = 0; i < vs->dev.nvqs; i++) in vhost_scsi_flush()
2168 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_clear_endpoint()
2177 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_clear_endpoint()
2238 if (!vs->dev.nvqs) in vhost_scsi_set_features()
2287 if (nvqs > VHOST_SCSI_MAX_IO_VQ) { in vhost_scsi_open()
2290 nvqs = VHOST_SCSI_MAX_IO_VQ; in vhost_scsi_open()
2291 } else if (nvqs == 0) { in vhost_scsi_open()
2293 nvqs = 1; in vhost_scsi_open()
[all …]
A Dvhost.c351 for (i = 0; i < d->nvqs; ++i) in vhost_vq_meta_reset()
473 for (i = 0; i < dev->nvqs; i++) { in vhost_worker_killed()
541 for (i = 0; i < dev->nvqs; ++i) in vhost_dev_free_iovecs()
595 dev->nvqs = nvqs; in vhost_dev_init()
734 for (i = 0; i < dev->nvqs; i++) in vhost_workers_free()
1000 if (idx >= dev->nvqs) in vhost_get_vq_from_user()
1164 for (i = 0; i < dev->nvqs; ++i) in vhost_dev_reset_owner()
1301 for (i = 0; i < d->nvqs; ++i) { in memory_access_ok()
1513 for (i = 0; i < d->nvqs; ++i) in vhost_dev_lock_vqs()
1520 for (i = 0; i < d->nvqs; ++i) in vhost_dev_unlock_vqs()
[all …]
A Dtest.c180 for (index = 0; index < n->dev.nvqs; ++index) { in vhost_test_run()
188 for (index = 0; index < n->dev.nvqs; ++index) { in vhost_test_run()
A Dvhost.h181 int nvqs; member
210 int nvqs, int iov_limit, int weight, int byte_weight,
/drivers/vdpa/vdpa_sim/
A Dvdpa_sim.c148 for (i = 0; i < vdpasim->dev_attr.nvqs; i++) { in vdpasim_do_reset()
249 vdpasim->vqs = kcalloc(dev_attr->nvqs, sizeof(struct vdpasim_virtqueue), in vdpasim_create()
271 for (i = 0; i < dev_attr->nvqs; i++) in vdpasim_create()
539 for (i = 0; i < vdpasim->dev_attr.nvqs; ++i) in vdpasim_resume()
619 for (i = 0; i < vdpasim->dev_attr.nvqs; i++) in vdpasim_set_group_asid()
756 for (i = 0; i < vdpasim->dev_attr.nvqs; i++) { in vdpasim_free()
A Dvdpa_sim.h42 int nvqs; member
A Dvdpa_sim_blk.c421 dev_attr.nvqs = VDPASIM_BLK_VQ_NUM; in vdpasim_blk_dev_add()
A Dvdpa_sim_net.c477 dev_attr.nvqs = VDPASIM_NET_VQ_NUM; in vdpasim_net_dev_add()
/drivers/vdpa/
A Dvdpa.c223 static int __vdpa_register_device(struct vdpa_device *vdev, u32 nvqs) in __vdpa_register_device() argument
227 vdev->nvqs = nvqs; in __vdpa_register_device()
248 int _vdpa_register_device(struct vdpa_device *vdev, u32 nvqs) in _vdpa_register_device() argument
253 return __vdpa_register_device(vdev, nvqs); in _vdpa_register_device()
265 int vdpa_register_device(struct vdpa_device *vdev, u32 nvqs) in vdpa_register_device() argument
270 err = __vdpa_register_device(vdev, nvqs); in vdpa_register_device()
770 if (nla_put_u32(msg, VDPA_ATTR_DEV_MAX_VQS, vdev->nvqs)) in vdpa_dev_fill()
/drivers/s390/virtio/
A Dvirtio_ccw.c302 static unsigned long *get_airq_indicator(struct virtqueue *vqs[], int nvqs, in get_airq_indicator() argument
311 for (i = 0; i < nvqs; i++) { in get_airq_indicator()
334 for (j = 0, queue_idx = 0; j < nvqs; j++) { in get_airq_indicator()
651 struct virtqueue *vqs[], int nvqs, in virtio_ccw_register_adapter_ind() argument
667 indicator_addr = get_airq_indicator(vqs, nvqs, in virtio_ccw_register_adapter_ind()
700 static int virtio_ccw_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_ccw_find_vqs() argument
715 for (i = 0; i < nvqs; ++i) { in virtio_ccw_find_vqs()
743 ret = virtio_ccw_register_adapter_ind(vcdev, vqs, nvqs, ccw); in virtio_ccw_find_vqs()
/drivers/remoteproc/
A Dremoteproc_virtio.c183 static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in rproc_virtio_find_vqs() argument
190 for (i = 0; i < nvqs; ++i) { in rproc_virtio_find_vqs()
/drivers/platform/mellanox/
A Dmlxbf-tmfifo.c1060 unsigned int nvqs, in mlxbf_tmfifo_virtio_find_vqs() argument
1070 if (nvqs > ARRAY_SIZE(tm_vdev->vrings)) in mlxbf_tmfifo_virtio_find_vqs()
1073 for (i = 0; i < nvqs; ++i) { in mlxbf_tmfifo_virtio_find_vqs()

Completed in 60 milliseconds