| /drivers/virtio/ |
| A D | virtio_pci_common.c | 376 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 D | virtio_vdpa.c | 151 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 D | virtio_pci_common.h | 135 int vp_find_vqs(struct virtio_device *vdev, unsigned int nvqs,
|
| A D | virtio_mmio.c | 446 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 D | virtio_pci_modern.c | 744 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 D | vdpa.c | 55 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 D | scsi.c | 309 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 D | vhost.c | 351 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 D | test.c | 180 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 D | vhost.h | 181 int nvqs; member 210 int nvqs, int iov_limit, int weight, int byte_weight,
|
| /drivers/vdpa/vdpa_sim/ |
| A D | vdpa_sim.c | 148 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 D | vdpa_sim.h | 42 int nvqs; member
|
| A D | vdpa_sim_blk.c | 421 dev_attr.nvqs = VDPASIM_BLK_VQ_NUM; in vdpasim_blk_dev_add()
|
| A D | vdpa_sim_net.c | 477 dev_attr.nvqs = VDPASIM_NET_VQ_NUM; in vdpasim_net_dev_add()
|
| /drivers/vdpa/ |
| A D | vdpa.c | 223 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 D | virtio_ccw.c | 302 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 D | remoteproc_virtio.c | 183 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 D | mlxbf-tmfifo.c | 1060 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()
|