/linux/tools/testing/selftests/arm64/fp/ |
A D | sve-probe-vls.c | 23 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/drivers/virtio/ |
A D | virtio_pci_common.c | 313 static int vp_find_vqs_msix(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs_msix() argument 323 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_msix() 330 for (i = 0; i < nvqs; ++i) in vp_find_vqs_msix() 345 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_msix() 387 static int vp_find_vqs_intx(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs_intx() argument 394 vp_dev->vqs = kcalloc(nvqs, sizeof(*vp_dev->vqs), GFP_KERNEL); in vp_find_vqs_intx() 405 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_intx() 426 int vp_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vp_find_vqs() argument 434 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, true, ctx, desc); in vp_find_vqs() 438 err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, false, ctx, desc); in vp_find_vqs() [all …]
|
A D | virtio_vdpa.c | 154 if (index >= vdpa->nvqs) in virtio_vdpa_setup_vq() 267 static int virtio_vdpa_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_vdpa_find_vqs() argument 280 for (i = 0; i < nvqs; ++i) { in virtio_vdpa_find_vqs()
|
A D | virtio_pci_common.h | 114 int vp_find_vqs(struct virtio_device *vdev, unsigned nvqs,
|
A D | virtio_pci_modern.c | 251 static int vp_modern_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vp_modern_find_vqs() argument 259 int rc = vp_find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, desc); in vp_modern_find_vqs()
|
A D | virtio_mmio.c | 458 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()
|
/linux/drivers/vhost/ |
A D | vdpa.c | 45 int nvqs; member 161 int ret, nvqs = v->nvqs; in vhost_vdpa_set_status() local 177 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status() 188 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status() 374 if (idx >= v->nvqs) in vhost_vdpa_vring_ioctl() 377 idx = array_index_nospec(idx, v->nvqs); in vhost_vdpa_vring_ioctl() 951 int nvqs, i, r, opened; in vhost_vdpa_open() local 959 nvqs = v->nvqs; in vhost_vdpa_open() 971 for (i = 0; i < nvqs; i++) { in vhost_vdpa_open() 1006 for (i = 0; i < v->nvqs; i++) in vhost_vdpa_clean_irq() [all …]
|
A D | vhost.c | 297 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() 478 dev->nvqs = nvqs; in vhost_dev_init() 654 for (i = 0; i < dev->nvqs; ++i) in vhost_dev_reset_owner() 795 for (i = 0; i < d->nvqs; ++i) { in memory_access_ok() 1007 for (i = 0; i < d->nvqs; ++i) in vhost_dev_lock_vqs() 1014 for (i = 0; i < d->nvqs; ++i) in vhost_dev_unlock_vqs() 1470 for (i = 0; i < d->nvqs; ++i) { in vhost_set_memory() 1598 if (idx >= d->nvqs) in vhost_vring_ioctl() [all …]
|
A D | vhost.h | 149 int nvqs; member 170 int nvqs, int iov_limit, int weight, int byte_weight,
|
A D | test.c | 187 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()
|
A D | scsi.c | 1546 for (index = 0; index < vs->dev.nvqs; ++index) { in vhost_scsi_set_endpoint() 1672 for (index = 0; index < vs->dev.nvqs; ++index) { in vhost_scsi_clear_endpoint()
|
/linux/tools/virtio/ |
A D | virtio_test.c | 43 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/fs/fuse/ |
A D | virtio_fs.c | 61 unsigned int nvqs; /* number of virtqueues */ member 200 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_drain_all_queues_locked() 224 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_start_all_queues() 281 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_free_devs() 684 fs->nvqs = VQ_REQUEST + fs->num_request_queues; in virtio_fs_setup_vqs() 690 callbacks = kmalloc_array(fs->nvqs, sizeof(callbacks[VQ_HIPRIO]), in virtio_fs_setup_vqs() 704 for (i = VQ_REQUEST; i < fs->nvqs; i++) { in virtio_fs_setup_vqs() 717 for (i = 0; i < fs->nvqs; i++) in virtio_fs_setup_vqs() 913 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_stop_all_queues() 1319 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_fill_super() [all …]
|
/linux/drivers/vdpa/ |
A D | vdpa.c | 153 static int __vdpa_register_device(struct vdpa_device *vdev, int nvqs) in __vdpa_register_device() argument 157 vdev->nvqs = nvqs; in __vdpa_register_device() 178 int _vdpa_register_device(struct vdpa_device *vdev, int nvqs) in _vdpa_register_device() argument 183 return __vdpa_register_device(vdev, nvqs); in _vdpa_register_device() 195 int vdpa_register_device(struct vdpa_device *vdev, int nvqs) in vdpa_register_device() argument 200 err = __vdpa_register_device(vdev, nvqs); in vdpa_register_device() 606 if (nla_put_u32(msg, VDPA_ATTR_DEV_MAX_VQS, vdev->nvqs)) in vdpa_dev_fill()
|
/linux/include/linux/ |
A D | virtio_config.h | 89 int (*find_vqs)(struct virtio_device *, unsigned nvqs, 204 int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_find_vqs() argument 209 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, NULL, desc); in virtio_find_vqs() 213 int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs, in virtio_find_vqs_ctx() argument 218 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, in virtio_find_vqs_ctx()
|
A D | vdpa.h | 84 int nvqs; member 333 int vdpa_register_device(struct vdpa_device *vdev, int nvqs); 336 int _vdpa_register_device(struct vdpa_device *vdev, int nvqs);
|
/linux/drivers/s390/virtio/ |
A D | virtio_ccw.c | 261 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() 582 struct virtqueue *vqs[], int nvqs, in virtio_ccw_register_adapter_ind() argument 596 thinint_area->indicator = get_airq_indicator(vqs, nvqs, in virtio_ccw_register_adapter_ind() 630 static int virtio_ccw_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_ccw_find_vqs() argument 646 for (i = 0; i < nvqs; ++i) { in virtio_ccw_find_vqs() 672 ret = virtio_ccw_register_adapter_ind(vcdev, vqs, nvqs, ccw); in virtio_ccw_find_vqs()
|
/linux/drivers/vdpa/vdpa_sim/ |
A D | vdpa_sim.c | 99 for (i = 0; i < vdpasim->dev_attr.nvqs; i++) in vdpasim_do_reset() 276 vdpasim->vqs = kcalloc(dev_attr->nvqs, sizeof(struct vdpasim_virtqueue), in vdpasim_create() 289 for (i = 0; i < dev_attr->nvqs; i++) in vdpasim_create() 589 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_net.c | 147 dev_attr.nvqs = VDPASIM_NET_VQ_NUM; in vdpasim_net_dev_add()
|
A D | vdpa_sim_blk.c | 262 dev_attr.nvqs = VDPASIM_BLK_VQ_NUM; in vdpasim_blk_dev_add()
|
/linux/drivers/remoteproc/ |
A D | remoteproc_virtio.c | 155 static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in rproc_virtio_find_vqs() argument 164 for (i = 0; i < nvqs; ++i) { in rproc_virtio_find_vqs()
|
/linux/drivers/platform/mellanox/ |
A D | mlxbf-tmfifo.c | 927 unsigned int nvqs, in mlxbf_tmfifo_virtio_find_vqs() argument 939 if (nvqs > ARRAY_SIZE(tm_vdev->vrings)) in mlxbf_tmfifo_virtio_find_vqs() 942 for (i = 0; i < nvqs; ++i) { in mlxbf_tmfifo_virtio_find_vqs()
|
/linux/arch/um/drivers/ |
A D | virtio_uml.c | 996 static int vu_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vu_find_vqs() argument 1006 if (WARN_ON(nvqs > 64)) in vu_find_vqs() 1013 for (i = 0; i < nvqs; ++i) { in vu_find_vqs()
|