Home
last modified time | relevance | path

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

/Linux-v5.10/tools/testing/selftests/arm64/fp/
Dsve-probe-vls.c22 unsigned int nvqs = 0; in main() local
45 if (!(nvqs < SVE_VQ_MAX)) in main()
47 nvqs); in main()
48 vqs[nvqs++] = vq; in main()
50 ksft_test_result_pass("Enumerated %d vector lengths\n", nvqs); in main()
54 while (nvqs--) in main()
55 ksft_print_msg("%u\n", 16 * vqs[nvqs]); in main()
/Linux-v5.10/drivers/virtio/
Dvirtio_pci_common.c279 static int vp_find_vqs_msix(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs_msix() argument
289 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_msix()
296 for (i = 0; i < nvqs; ++i) in vp_find_vqs_msix()
311 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_msix()
353 static int vp_find_vqs_intx(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs_intx() argument
360 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_intx()
371 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_intx()
392 int vp_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs() argument
400 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, true, ctx, desc); in vp_find_vqs()
404 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, false, ctx, desc); in vp_find_vqs()
[all …]
Dvirtio_pci_common.h130 int vp_find_vqs(struct virtio_device *vdev, unsigned nvqs,
Dvirtio_vdpa.c245 static int virtio_vdpa_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_vdpa_find_vqs() argument
258 for (i = 0; i < nvqs; ++i) { in virtio_vdpa_find_vqs()
Dvirtio_mmio.c458 static int vm_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vm_find_vqs() argument
477 for (i = 0; i < nvqs; ++i) { in vm_find_vqs()
Dvirtio_pci_modern.c403 static int vp_modern_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vp_modern_find_vqs() argument
411 int rc = vp_find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, desc); in vp_modern_find_vqs()
/Linux-v5.10/drivers/vhost/
Dvdpa.c45 int nvqs; member
160 int nvqs = v->nvqs; in vhost_vdpa_set_status() local
178 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
182 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
372 if (idx >= v->nvqs) in vhost_vdpa_vring_ioctl()
375 idx = array_index_nospec(idx, v->nvqs); in vhost_vdpa_vring_ioctl()
856 int nvqs, i, r, opened; in vhost_vdpa_open() local
864 nvqs = v->nvqs; in vhost_vdpa_open()
867 vqs = kmalloc_array(nvqs, sizeof(*vqs), GFP_KERNEL); in vhost_vdpa_open()
874 for (i = 0; i < nvqs; i++) { in vhost_vdpa_open()
[all …]
Dvhost.c297 for (i = 0; i < d->nvqs; ++i) in vhost_vq_meta_reset()
398 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_alloc_iovecs()
422 for (i = 0; i < dev->nvqs; ++i) in vhost_dev_free_iovecs()
468 struct vhost_virtqueue **vqs, int nvqs, in vhost_dev_init() argument
478 dev->nvqs = nvqs; in vhost_dev_init()
497 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_init()
654 for (i = 0; i < dev->nvqs; ++i) in vhost_dev_reset_owner()
663 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_stop()
695 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_cleanup()
789 for (i = 0; i < d->nvqs; ++i) { in memory_access_ok()
[all …]
Dvhost.h150 int nvqs; member
171 int nvqs, int iov_limit, int weight, int byte_weight,
Dtest.c187 for (index = 0; index < n->dev.nvqs; ++index) { in vhost_test_run()
195 for (index = 0; index < n->dev.nvqs; ++index) { in vhost_test_run()
Dscsi.c1581 for (index = 0; index < vs->dev.nvqs; ++index) { in vhost_scsi_set_endpoint()
1706 for (index = 0; index < vs->dev.nvqs; ++index) { in vhost_scsi_clear_endpoint()
/Linux-v5.10/include/linux/
Dvdpa.h52 int nvqs; member
247 int nvqs,
250 #define vdpa_alloc_device(dev_struct, member, parent, config, nvqs) \ argument
252 parent, config, nvqs, \
Dvirtio_config.h86 int (*find_vqs)(struct virtio_device *, unsigned nvqs,
201 int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_find_vqs() argument
206 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, NULL, desc); in virtio_find_vqs()
210 int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs, in virtio_find_vqs_ctx() argument
215 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, in virtio_find_vqs_ctx()
/Linux-v5.10/tools/virtio/
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()
161 poll(dev->fds, dev->nvqs, -1); in wait_for_interrupt()
162 for (i = 0; i < dev->nvqs; ++i) in wait_for_interrupt()
/Linux-v5.10/drivers/vdpa/
Dvdpa.c75 int nvqs, in __vdpa_alloc_device() argument
102 vdev->nvqs = nvqs; in __vdpa_alloc_device()
/Linux-v5.10/fs/fuse/
Dvirtio_fs.c55 unsigned int nvqs; /* number of virtqueues */ member
199 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_drain_all_queues_locked()
223 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_start_all_queues()
280 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_free_devs()
683 fs->nvqs = VQ_REQUEST + fs->num_request_queues; in virtio_fs_setup_vqs()
684 fs->vqs = kcalloc(fs->nvqs, sizeof(fs->vqs[VQ_HIPRIO]), GFP_KERNEL); in virtio_fs_setup_vqs()
688 vqs = kmalloc_array(fs->nvqs, sizeof(vqs[VQ_HIPRIO]), GFP_KERNEL); in virtio_fs_setup_vqs()
689 callbacks = kmalloc_array(fs->nvqs, sizeof(callbacks[VQ_HIPRIO]), in virtio_fs_setup_vqs()
691 names = kmalloc_array(fs->nvqs, sizeof(names[VQ_HIPRIO]), GFP_KERNEL); in virtio_fs_setup_vqs()
703 for (i = VQ_REQUEST; i < fs->nvqs; i++) { in virtio_fs_setup_vqs()
[all …]
/Linux-v5.10/drivers/s390/virtio/
Dvirtio_ccw.c261 static unsigned long get_airq_indicator(struct virtqueue *vqs[], int nvqs, in get_airq_indicator() argument
278 bit = airq_iv_alloc(info->aiv, nvqs); in get_airq_indicator()
287 for (j = 0; j < nvqs; j++) { in get_airq_indicator()
604 struct virtqueue *vqs[], int nvqs, in virtio_ccw_register_adapter_ind() argument
618 thinint_area->indicator = get_airq_indicator(vqs, nvqs, in virtio_ccw_register_adapter_ind()
652 static int virtio_ccw_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_ccw_find_vqs() argument
668 for (i = 0; i < nvqs; ++i) { in virtio_ccw_find_vqs()
694 ret = virtio_ccw_register_adapter_ind(vcdev, vqs, nvqs, ccw); in virtio_ccw_find_vqs()
/Linux-v5.10/drivers/remoteproc/
Dremoteproc_virtio.c143 static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in rproc_virtio_find_vqs() argument
152 for (i = 0; i < nvqs; ++i) { in rproc_virtio_find_vqs()
/Linux-v5.10/drivers/platform/mellanox/
Dmlxbf-tmfifo.c918 unsigned int nvqs, in mlxbf_tmfifo_virtio_find_vqs() argument
930 if (nvqs > ARRAY_SIZE(tm_vdev->vrings)) in mlxbf_tmfifo_virtio_find_vqs()
933 for (i = 0; i < nvqs; ++i) { in mlxbf_tmfifo_virtio_find_vqs()
/Linux-v5.10/arch/um/drivers/
Dvirtio_uml.c986 static int vu_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vu_find_vqs() argument
999 for (i = 0; i < nvqs; ++i) { in vu_find_vqs()