Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/testing/selftests/arm64/fp/
A Dsve-probe-vls.c23 unsigned int nvqs = 0; in main() local
50 if (!(nvqs < SVE_VQ_MAX)) in main()
52 nvqs); in main()
53 vqs[nvqs++] = vq; in main()
55 ksft_test_result_pass("Enumerated %d vector lengths\n", nvqs); in main()
59 while (nvqs--) in main()
60 ksft_print_msg("%u\n", 16 * vqs[nvqs]); in main()
/linux-6.3-rc2/drivers/virtio/
A Dvirtio_pci_common.c284 static int vp_find_vqs_msix(struct virtio_device *vdev, unsigned int nvqs, in vp_find_vqs_msix() argument
294 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_msix()
301 for (i = 0; i < nvqs; ++i) in vp_find_vqs_msix()
316 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_msix()
358 static int vp_find_vqs_intx(struct virtio_device *vdev, unsigned int nvqs, in vp_find_vqs_intx() argument
365 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_intx()
376 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_intx()
397 int vp_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in vp_find_vqs() argument
405 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, true, ctx, desc); in vp_find_vqs()
409 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, false, ctx, desc); in vp_find_vqs()
[all …]
A Dvirtio_vdpa.c154 if (index >= vdpa->nvqs) in virtio_vdpa_setup_vq()
275 static int virtio_vdpa_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in virtio_vdpa_find_vqs() argument
288 for (i = 0; i < nvqs; ++i) { in virtio_vdpa_find_vqs()
A Dvirtio_pci_common.h111 int vp_find_vqs(struct virtio_device *vdev, unsigned int nvqs,
A Dvirtio_pci_modern.c347 static int vp_modern_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in vp_modern_find_vqs() argument
355 int rc = vp_find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, desc); in vp_modern_find_vqs()
A Dvirtio_mmio.c473 static int vm_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in vm_find_vqs() argument
495 for (i = 0; i < nvqs; ++i) { in vm_find_vqs()
/linux-6.3-rc2/drivers/vhost/
A Dvdpa.c55 u32 nvqs; member
255 u32 nvqs = v->nvqs; in vhost_vdpa_set_status() local
272 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
283 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
487 if (copy_to_user(argp, &vdpa->nvqs, sizeof(vdpa->nvqs))) in vhost_vdpa_get_vqs_count()
540 if (idx >= v->nvqs) in vhost_vdpa_vring_ioctl()
1226 u32 i, nvqs; in vhost_vdpa_open() local
1234 nvqs = v->nvqs; in vhost_vdpa_open()
1246 for (i = 0; i < nvqs; i++) { in vhost_vdpa_open()
1274 for (i = 0; i < v->nvqs; i++) in vhost_vdpa_clean_irq()
[all …]
A Dscsi.c254 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_init_inflight()
583 < vs->dev.nvqs) in vhost_scsi_complete_cmd_work()
1441 for (i = 0; i < vs->dev.nvqs; i++) in vhost_scsi_flush()
1448 for (i = 0; i < vs->dev.nvqs; i++) in vhost_scsi_flush()
1631 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_set_endpoint()
1782 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_set_features()
1802 if (nvqs > VHOST_SCSI_MAX_IO_VQ) { in vhost_scsi_open()
1805 nvqs = VHOST_SCSI_MAX_IO_VQ; in vhost_scsi_open()
1806 } else if (nvqs == 0) { in vhost_scsi_open()
1808 nvqs = 1; in vhost_scsi_open()
[all …]
A Dvhost.c289 for (i = 0; i < d->nvqs; ++i) in vhost_vq_meta_reset()
390 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_alloc_iovecs()
414 for (i = 0; i < dev->nvqs; ++i) in vhost_dev_free_iovecs()
470 dev->nvqs = nvqs; in vhost_dev_init()
646 for (i = 0; i < dev->nvqs; ++i) in vhost_dev_reset_owner()
788 for (i = 0; i < d->nvqs; ++i) { in memory_access_ok()
1000 for (i = 0; i < d->nvqs; ++i) in vhost_dev_lock_vqs()
1007 for (i = 0; i < d->nvqs; ++i) in vhost_dev_unlock_vqs()
1483 for (i = 0; i < d->nvqs; ++i) { in vhost_set_memory()
1611 if (idx >= d->nvqs) in vhost_vring_ioctl()
[all …]
A Dvhost.h148 int nvqs; member
169 int nvqs, int iov_limit, int weight, int byte_weight,
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()
/linux-6.3-rc2/tools/virtio/
A Dvirtio_test.c43 int nvqs; member
113 struct vq_info *info = &dev->vqs[dev->nvqs]; in vq_info_add()
115 info->idx = dev->nvqs; in vq_info_add()
124 dev->nvqs++; in vq_info_add()
162 poll(dev->fds, dev->nvqs, -1); in wait_for_interrupt()
163 for (i = 0; i < dev->nvqs; ++i) in wait_for_interrupt()
/linux-6.3-rc2/fs/fuse/
A Dvirtio_fs.c62 unsigned int nvqs; /* number of virtqueues */ member
213 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_drain_all_queues_locked()
237 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_start_all_queues()
294 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_free_devs()
697 fs->nvqs = VQ_REQUEST + fs->num_request_queues; in virtio_fs_setup_vqs()
703 callbacks = kmalloc_array(fs->nvqs, sizeof(callbacks[VQ_HIPRIO]), in virtio_fs_setup_vqs()
717 for (i = VQ_REQUEST; i < fs->nvqs; i++) { in virtio_fs_setup_vqs()
730 for (i = 0; i < fs->nvqs; i++) in virtio_fs_setup_vqs()
911 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_stop_all_queues()
1317 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_fill_super()
[all …]
/linux-6.3-rc2/include/linux/
A Dvirtio_config.h106 int (*find_vqs)(struct virtio_device *, unsigned nvqs,
224 int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_find_vqs() argument
229 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, NULL, desc); in virtio_find_vqs()
233 int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs, in virtio_find_vqs_ctx() argument
238 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, in virtio_find_vqs_ctx()
A Dvdpa.h90 u32 nvqs; member
388 int vdpa_register_device(struct vdpa_device *vdev, u32 nvqs);
391 int _vdpa_register_device(struct vdpa_device *vdev, u32 nvqs);
/linux-6.3-rc2/drivers/vdpa/vdpa_sim/
A Dvdpa_sim.c95 for (i = 0; i < vdpasim->dev_attr.nvqs; i++) { in vdpasim_do_reset()
169 vdpasim->vqs = kcalloc(dev_attr->nvqs, sizeof(struct vdpasim_virtqueue), in vdpasim_create()
191 for (i = 0; i < dev_attr->nvqs; i++) in vdpasim_create()
431 for (i = 0; i < vdpasim->dev_attr.nvqs; ++i) in vdpasim_resume()
511 for (i = 0; i < vdpasim->dev_attr.nvqs; i++) in vdpasim_set_group_asid()
604 for (i = 0; i < vdpasim->dev_attr.nvqs; i++) { in vdpasim_free()
A Dvdpa_sim.h43 int nvqs; member
A Dvdpa_sim_blk.c378 dev_attr.nvqs = VDPASIM_BLK_VQ_NUM; in vdpasim_blk_dev_add()
A Dvdpa_sim_net.c453 dev_attr.nvqs = VDPASIM_NET_VQ_NUM; in vdpasim_net_dev_add()
/linux-6.3-rc2/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()
/linux-6.3-rc2/drivers/s390/virtio/
A Dvirtio_ccw.c264 static unsigned long get_airq_indicator(struct virtqueue *vqs[], int nvqs, in get_airq_indicator() argument
281 bit = airq_iv_alloc(info->aiv, nvqs); in get_airq_indicator()
290 for (j = 0; j < nvqs; j++) { in get_airq_indicator()
588 struct virtqueue *vqs[], int nvqs, in virtio_ccw_register_adapter_ind() argument
603 indicator_addr = get_airq_indicator(vqs, nvqs, in virtio_ccw_register_adapter_ind()
638 static int virtio_ccw_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_ccw_find_vqs() argument
654 for (i = 0; i < nvqs; ++i) { in virtio_ccw_find_vqs()
680 ret = virtio_ccw_register_adapter_ind(vcdev, vqs, nvqs, ccw); in virtio_ccw_find_vqs()
/linux-6.3-rc2/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
192 for (i = 0; i < nvqs; ++i) { in rproc_virtio_find_vqs()
/linux-6.3-rc2/drivers/platform/mellanox/
A Dmlxbf-tmfifo.c946 unsigned int nvqs, in mlxbf_tmfifo_virtio_find_vqs() argument
958 if (nvqs > ARRAY_SIZE(tm_vdev->vrings)) in mlxbf_tmfifo_virtio_find_vqs()
961 for (i = 0; i < nvqs; ++i) { in mlxbf_tmfifo_virtio_find_vqs()
/linux-6.3-rc2/arch/um/drivers/
A Dvirtio_uml.c1016 static int vu_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vu_find_vqs() argument
1026 if (WARN_ON(nvqs > 64)) in vu_find_vqs()
1033 for (i = 0; i < nvqs; ++i) { in vu_find_vqs()

Completed in 75 milliseconds