Home
last modified time | relevance | path

Searched refs:nvqs (Results 1 - 25 of 45) sorted by relevance

12

/kernel/linux/linux-5.10/tools/testing/selftests/arm64/fp/
H A 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()
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/fp/
H 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()
/kernel/linux/linux-5.10/drivers/virtio/
H A Dvirtio_pci_common.c278 static int vp_find_vqs_msix(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs_msix() argument
288 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_msix()
295 for (i = 0; i < nvqs; ++i) in vp_find_vqs_msix()
310 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_msix()
352 static int vp_find_vqs_intx(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs_intx() argument
359 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_intx()
370 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_intx()
391 int vp_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs() argument
399 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, true, ctx, desc); in vp_find_vqs()
403 err = vp_find_vqs_msix(vdev, nvqs, vq in vp_find_vqs()
[all...]
H A Dvirtio_vdpa.c152 if (index >= vdpa->nvqs) in virtio_vdpa_setup_vq()
248 static int virtio_vdpa_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_vdpa_find_vqs() argument
261 for (i = 0; i < nvqs; ++i) { in virtio_vdpa_find_vqs()
/kernel/linux/linux-6.6/drivers/virtio/
H 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, vq in vp_find_vqs()
[all...]
H A Dvirtio_vdpa.c167 if (index >= vdpa->nvqs) in virtio_vdpa_setup_vq()
356 static int virtio_vdpa_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in virtio_vdpa_find_vqs() argument
373 masks = create_affinity_masks(nvqs, desc ? desc : &default_affd); in virtio_vdpa_find_vqs()
378 for (i = 0; i < nvqs; ++i) { in virtio_vdpa_find_vqs()
H A Dvirtio_pci_common.h112 int vp_find_vqs(struct virtio_device *vdev, unsigned int nvqs,
/kernel/linux/linux-5.10/drivers/vhost/
H A Dvdpa.c45 int nvqs; member
163 int nvqs = v->nvqs; in vhost_vdpa_set_status() local
181 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
185 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
381 if (idx >= v->nvqs) in vhost_vdpa_vring_ioctl()
384 idx = array_index_nospec(idx, v->nvqs); in vhost_vdpa_vring_ioctl()
870 int nvqs, i, r, opened; in vhost_vdpa_open() local
878 nvqs = v->nvqs; in vhost_vdpa_open()
[all...]
H A 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()
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()
696 for (i = 0; i < dev->nvqs; in vhost_dev_cleanup()
467 vhost_dev_init(struct vhost_dev *dev, struct vhost_virtqueue **vqs, int nvqs, int iov_limit, int weight, int byte_weight, bool use_worker, int (*msg_handler)(struct vhost_dev *dev, struct vhost_iotlb_msg *msg)) vhost_dev_init() argument
[all...]
H A Dvhost.h154 int nvqs; member
175 int nvqs, int iov_limit, int weight, int byte_weight,
/kernel/linux/linux-5.10/drivers/vdpa/
H A Dvdpa.c64 * @nvqs: number of virtqueues supported by this device
75 int nvqs, in __vdpa_alloc_device()
102 vdev->nvqs = nvqs; in __vdpa_alloc_device()
73 __vdpa_alloc_device(struct device *parent, const struct vdpa_config_ops *config, int nvqs, size_t size) __vdpa_alloc_device() argument
/kernel/linux/linux-5.10/include/linux/
H A Dvdpa.h52 int nvqs; member
247 int nvqs,
250 #define vdpa_alloc_device(dev_struct, member, parent, config, nvqs) \
252 parent, config, nvqs, \
H A Dvirtio_config.h52 * nvqs: the number of virtqueues to find
87 int (*find_vqs)(struct virtio_device *, unsigned nvqs,
202 int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_find_vqs() argument
207 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, NULL, desc); in virtio_find_vqs()
211 int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs, in virtio_find_vqs_ctx() argument
216 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, in virtio_find_vqs_ctx()
/kernel/linux/linux-5.10/fs/fuse/
H A Dvirtio_fs.c61 unsigned int nvqs; /* number of virtqueues */ member
205 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_drain_all_queues_locked()
229 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_start_all_queues()
286 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_free_devs()
689 fs->nvqs = VQ_REQUEST + fs->num_request_queues; in virtio_fs_setup_vqs()
690 fs->vqs = kcalloc(fs->nvqs, sizeof(fs->vqs[VQ_HIPRIO]), GFP_KERNEL); in virtio_fs_setup_vqs()
694 vqs = kmalloc_array(fs->nvqs, sizeof(vqs[VQ_HIPRIO]), GFP_KERNEL); in virtio_fs_setup_vqs()
695 callbacks = kmalloc_array(fs->nvqs, sizeof(callbacks[VQ_HIPRIO]), in virtio_fs_setup_vqs()
697 names = kmalloc_array(fs->nvqs, sizeof(names[VQ_HIPRIO]), GFP_KERNEL); in virtio_fs_setup_vqs()
709 for (i = VQ_REQUEST; i < fs->nvqs; in virtio_fs_setup_vqs()
[all...]
/kernel/linux/linux-6.6/fs/fuse/
H 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()
698 fs->vqs = kcalloc(fs->nvqs, sizeof(fs->vqs[VQ_HIPRIO]), GFP_KERNEL); in virtio_fs_setup_vqs()
702 vqs = kmalloc_array(fs->nvqs, sizeof(vqs[VQ_HIPRIO]), GFP_KERNEL); in virtio_fs_setup_vqs()
703 callbacks = kmalloc_array(fs->nvqs, sizeof(callbacks[VQ_HIPRIO]), in virtio_fs_setup_vqs()
705 names = kmalloc_array(fs->nvqs, sizeof(names[VQ_HIPRIO]), GFP_KERNEL); in virtio_fs_setup_vqs()
717 for (i = VQ_REQUEST; i < fs->nvqs; in virtio_fs_setup_vqs()
[all...]
/kernel/linux/linux-5.10/tools/virtio/
H 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()
/kernel/linux/linux-6.6/tools/virtio/
H 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()
/kernel/linux/linux-6.6/drivers/vhost/
H A Dvdpa.c55 u32 nvqs; member
277 u32 nvqs = v->nvqs; in vhost_vdpa_set_status() local
294 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
305 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
441 for (i = 0; i < d->nvqs; ++i) { in vhost_vdpa_set_features()
533 if (copy_to_user(argp, &vdpa->nvqs, sizeof(vdpa->nvqs))) in vhost_vdpa_get_vqs_count()
586 if (idx >= v->nvqs) in vhost_vdpa_vring_ioctl()
589 idx = array_index_nospec(idx, v->nvqs); in vhost_vdpa_vring_ioctl()
1296 u32 i, nvqs; vhost_vdpa_open() local
[all...]
H A Dscsi.c259 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_init_inflight()
1282 for (i = VHOST_SCSI_VQ_IO; i < tmf->vhost->dev.nvqs; i++) { in vhost_scsi_tmf_resp_work()
1554 for (i = 0; i < vs->dev.nvqs; i++) in vhost_scsi_flush()
1561 for (i = 0; i < vs->dev.nvqs; i++) in vhost_scsi_flush()
1673 for (index = 0; index < vs->dev.nvqs; ++index) { in vhost_scsi_set_endpoint()
1737 for (i = VHOST_SCSI_VQ_IO; i < vs->dev.nvqs; i++) { in vhost_scsi_set_endpoint()
1747 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_set_endpoint()
1804 for (index = 0; index < vs->dev.nvqs; ++index) { in vhost_scsi_clear_endpoint()
1842 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_clear_endpoint()
1851 for (i = 0; i < vs->dev.nvqs; in vhost_scsi_clear_endpoint()
1925 int r = -ENOMEM, i, nvqs = vhost_scsi_max_io_vqs; vhost_scsi_open() local
[all...]
H A Dvhost.c347 for (i = 0; i < d->nvqs; ++i) in vhost_vq_meta_reset()
436 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_alloc_iovecs()
460 for (i = 0; i < dev->nvqs; ++i) in vhost_dev_free_iovecs()
504 struct vhost_virtqueue **vqs, int nvqs, in vhost_dev_init()
514 dev->nvqs = nvqs; in vhost_dev_init()
531 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_init()
611 for (i = 0; i < dev->nvqs; i++) in vhost_workers_free()
778 if (idx >= dev->nvqs) in vhost_get_vq_from_user()
781 idx = array_index_nospec(idx, dev->nvqs); in vhost_get_vq_from_user()
503 vhost_dev_init(struct vhost_dev *dev, struct vhost_virtqueue **vqs, int nvqs, int iov_limit, int weight, int byte_weight, bool use_worker, int (*msg_handler)(struct vhost_dev *dev, u32 asid, struct vhost_iotlb_msg *msg)) vhost_dev_init() argument
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dvirtio_config.h54 * nvqs: the number of virtqueues to find
106 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()
H A Dvdpa.h83 * @nvqs: maximum number of supported virtqueues
96 u32 nvqs; member
436 int vdpa_register_device(struct vdpa_device *vdev, u32 nvqs);
439 int _vdpa_register_device(struct vdpa_device *vdev, u32 nvqs);
/kernel/linux/linux-5.10/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim.c76 int nvqs; member
159 for (i = 0; i < vdpasim->dev_attr.nvqs; i++) in vdpasim_reset()
373 dev_attr->nvqs); in vdpasim_create()
392 vdpasim->vqs = kcalloc(dev_attr->nvqs, sizeof(struct vdpasim_virtqueue), in vdpasim_create()
415 for (i = 0; i < dev_attr->nvqs; i++) in vdpasim_create()
755 dev_attr.nvqs = VDPASIM_VQ_NUM; in vdpasim_dev_init()
/kernel/linux/linux-6.6/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim.c148 for (i = 0; i < vdpasim->dev_attr.nvqs; i++) { in vdpasim_do_reset()
247 vdpasim->vqs = kcalloc(dev_attr->nvqs, sizeof(struct vdpasim_virtqueue), in vdpasim_create()
265 for (i = 0; i < dev_attr->nvqs; i++) in vdpasim_create()
517 for (i = 0; i < vdpasim->dev_attr.nvqs; ++i) in vdpasim_resume()
597 for (i = 0; i < vdpasim->dev_attr.nvqs; i++) in vdpasim_set_group_asid()
715 for (i = 0; i < vdpasim->dev_attr.nvqs; i++) { in vdpasim_free()
/kernel/linux/linux-6.6/drivers/vdpa/
H 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()
244 * @nvqs: number of virtqueues supported by this 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()
261 * @nvqs: number of virtqueues supported by this 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()
[all...]

Completed in 28 milliseconds

12