Home
last modified time | relevance | path

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

/linux/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()
/linux/drivers/virtio/
H A Dvirtio_pci_common.c381 static int vp_find_vqs_msix(struct virtio_device *vdev, unsigned int nvqs, in vp_find_vqs_msix()
395 vp_dev->vqs = kzalloc_objs(*vp_dev->vqs, nvqs); in vp_find_vqs_msix()
410 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_msix()
428 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_msix()
463 static int vp_find_vqs_intx(struct virtio_device *vdev, unsigned int nvqs, in vp_find_vqs_intx()
473 vp_dev->vqs = kzalloc_objs(*vp_dev->vqs, nvqs); in vp_find_vqs_intx()
490 for (i = 0; i < nvqs; ++i) { in vp_find_vqs_intx()
525 int vp_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in vp_find_vqs()
532 err = vp_find_vqs_msix(vdev, nvqs, vqs, vqs_info, in vp_find_vqs()
539 err = vp_find_vqs_msix(vdev, nvqs, vq in vp_find_vqs()
375 vp_find_vqs_msix(struct virtio_device * vdev,unsigned int nvqs,struct virtqueue * vqs[],struct virtqueue_info vqs_info[],enum vp_vq_vector_policy vector_policy,struct irq_affinity * desc) vp_find_vqs_msix() argument
457 vp_find_vqs_intx(struct virtio_device * vdev,unsigned int nvqs,struct virtqueue * vqs[],struct virtqueue_info vqs_info[]) vp_find_vqs_intx() argument
519 vp_find_vqs(struct virtio_device * vdev,unsigned int nvqs,struct virtqueue * vqs[],struct virtqueue_info vqs_info[],struct irq_affinity * desc) vp_find_vqs() argument
[all...]
H A Dvirtio_vdpa.c170 if (index >= vdpa->nvqs) in virtio_vdpa_setup_vq()
347 static int virtio_vdpa_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in virtio_vdpa_find_vqs()
361 masks = create_affinity_masks(nvqs, desc); in virtio_vdpa_find_vqs()
366 for (i = 0; i < nvqs; ++i) { in virtio_vdpa_find_vqs()
328 virtio_vdpa_find_vqs(struct virtio_device * vdev,unsigned int nvqs,struct virtqueue * vqs[],struct virtqueue_info vqs_info[],struct irq_affinity * desc) virtio_vdpa_find_vqs() argument
H A Dvirtio_mmio.c462 static int vm_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in vm_find_vqs() argument
483 for (i = 0; i < nvqs; ++i) { in vm_find_vqs()
H A Dvirtio_pci_modern.c745 static int vp_modern_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in vp_modern_find_vqs()
752 int rc = vp_find_vqs(vdev, nvqs, vqs, vqs_info, desc); in vp_modern_find_vqs()
744 vp_modern_find_vqs(struct virtio_device * vdev,unsigned int nvqs,struct virtqueue * vqs[],struct virtqueue_info vqs_info[],struct irq_affinity * desc) vp_modern_find_vqs() argument
/linux/drivers/vhost/
H A Dvdpa.c60 u32 nvqs; member
327 u32 nvqs = v->nvqs; in vhost_vdpa_set_status() local
344 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
355 for (i = 0; i < nvqs; i++) in vhost_vdpa_set_status()
508 for (i = 0; i < d->nvqs; ++i) { in vhost_vdpa_set_features()
609 if (copy_to_user(argp, &vdpa->nvqs, sizeof(vdpa->nvqs))) in vhost_vdpa_get_vqs_count()
684 if (idx >= v->nvqs) in vhost_vdpa_vring_ioctl()
687 idx = array_index_nospec(idx, v->nvqs); in vhost_vdpa_vring_ioctl()
1467 u32 i, nvqs; vhost_vdpa_open() local
[all...]
H A Dvhost.c362 for (i = 0; i < d->nvqs; ++i) in vhost_vq_meta_reset()
485 for (i = 0; i < dev->nvqs; i++) { in vhost_worker_killed()
527 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_alloc_iovecs()
548 for (i = 0; i < dev->nvqs; ++i) in vhost_dev_free_iovecs()
592 struct vhost_virtqueue **vqs, int nvqs, in vhost_dev_init()
602 dev->nvqs = nvqs; in vhost_dev_init()
620 for (i = 0; i < dev->nvqs; ++i) { in vhost_dev_init()
741 for (i = 0; i < dev->nvqs; i++) in vhost_workers_free()
1024 if (idx >= dev->nvqs) in vhost_worker_ioctl()
593 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...]
H A Dscsi.c344 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_init_inflight()
1959 for (i = 0; i < vs->dev.nvqs; i++) in vhost_scsi_setup_vq_cmds()
1966 for (i = 0; i < vs->dev.nvqs; i++) in vhost_scsi_setup_vq_cmds()
2088 for (index = 0; index < vs->dev.nvqs; ++index) { in vhost_scsi_set_endpoint()
2151 for (i = VHOST_SCSI_VQ_IO; i < vs->dev.nvqs; i++) { in vhost_scsi_clear_endpoint()
2161 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_clear_endpoint()
2222 for (index = 0; index < vs->dev.nvqs; ++index) { in vhost_scsi_clear_endpoint()
2260 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_set_features()
2269 for (i = 0; i < vs->dev.nvqs; i++) { in vhost_scsi_set_features()
2331 if (!vs->dev.nvqs) in vhost_scsi_open()
2323 int r = -ENOMEM, i, nvqs; vhost_scsi_open() local
[all...]
H A Dtest.c186 for (index = 0; index < n->dev.nvqs; ++index) { in vhost_test_run()
194 for (index = 0; index < n->dev.nvqs; ++index) { in vhost_test_run()
H A Dvhost.h185 int nvqs; member
214 int nvqs, int iov_limit, int weight, int byte_weight,
/linux/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()
H A Dvhost_net_test.c49 int nvqs; member
254 dev->nvqs = 2; in vdev_info_init()
/linux/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim.c148 for (i = 0; i < vdpasim->dev_attr.nvqs; i++) { in vdpasim_do_reset()
255 vdpasim->vqs = kzalloc_objs(struct vdpasim_virtqueue, dev_attr->nvqs); in vdpasim_create()
277 for (i = 0; i < dev_attr->nvqs; i++) in vdpasim_create()
545 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()
765 for (i = 0; i < vdpasim->dev_attr.nvqs; i++) { in vdpasim_free()
H A Dvdpa_sim.h42 int nvqs; member
H A Dvdpa_sim_blk.c422 dev_attr.nvqs = VDPASIM_BLK_VQ_NUM; in vdpasim_blk_dev_add()
H A Dvdpa_sim_net.c482 dev_attr.nvqs = VDPASIM_NET_VQ_NUM; in vdpasim_net_dev_add()
/linux/drivers/vdpa/
H A Dvdpa.c187 static int __vdpa_register_device(struct vdpa_device *vdev, u32 nvqs) in __vdpa_register_device() argument
191 vdev->nvqs = nvqs; in __vdpa_register_device()
208 * @nvqs: number of virtqueues supported by this device
212 int _vdpa_register_device(struct vdpa_device *vdev, u32 nvqs) in _vdpa_register_device() argument
217 return __vdpa_register_device(vdev, nvqs); in _vdpa_register_device()
225 * @nvqs: number of virtqueues supported by this device
229 int vdpa_register_device(struct vdpa_device *vdev, u32 nvqs) in vdpa_register_device() argument
234 err = __vdpa_register_device(vdev, nvqs); in vdpa_register_device()
734 if (nla_put_u32(msg, VDPA_ATTR_DEV_MAX_VQS, vdev->nvqs)) in vdpa_dev_fill()
[all...]
/linux/drivers/s390/virtio/
H A Dvirtio_ccw.c303 static unsigned long *get_airq_indicator(struct virtqueue *vqs[], int nvqs, in get_airq_indicator() argument
312 for (i = 0; i < nvqs; i++) { in get_airq_indicator()
335 for (j = 0, queue_idx = 0; j < nvqs; j++) { in get_airq_indicator()
653 struct virtqueue *vqs[], int nvqs, in virtio_ccw_register_adapter_ind()
669 indicator_addr = get_airq_indicator(vqs, nvqs, in virtio_ccw_register_adapter_ind()
702 static int virtio_ccw_find_vqs(struct virtio_device *vdev, unsigned nvqs, in virtio_ccw_find_vqs()
717 for (i = 0; i < nvqs; ++i) { in virtio_ccw_find_vqs()
745 ret = virtio_ccw_register_adapter_ind(vcdev, vqs, nvqs, ccw); in virtio_ccw_find_vqs()
652 virtio_ccw_register_adapter_ind(struct virtio_ccw_device * vcdev,struct virtqueue * vqs[],int nvqs,struct ccw1 * ccw) virtio_ccw_register_adapter_ind() argument
701 virtio_ccw_find_vqs(struct virtio_device * vdev,unsigned nvqs,struct virtqueue * vqs[],struct virtqueue_info vqs_info[],struct irq_affinity * desc) virtio_ccw_find_vqs() argument
/linux/include/linux/
H A Dvirtio_config.h121 int (*find_vqs)(struct virtio_device *vdev, unsigned int nvqs,
293 int virtio_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in virtio_find_vqs() argument
298 return vdev->config->find_vqs(vdev, nvqs, vqs, vqs_info, desc); in virtio_find_vqs()
/linux/arch/um/drivers/
H A Dvirtio_uml.c1043 static int vu_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vu_find_vqs()
1053 if (WARN(nvqs > 64 || nvqs > vu_dev->max_vqs, in vu_find_vqs()
1055 nvqs, vu_dev->max_vqs)) in vu_find_vqs()
1062 for (i = 0; i < nvqs; ++i) { in vu_find_vqs()
1034 vu_find_vqs(struct virtio_device * vdev,unsigned nvqs,struct virtqueue * vqs[],struct virtqueue_info vqs_info[],struct irq_affinity * desc) vu_find_vqs() argument
/linux/drivers/remoteproc/
H A Dremoteproc_virtio.c208 static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in rproc_virtio_find_vqs()
215 for (i = 0; i < nvqs; ++i) { in rproc_virtio_get_status()
183 rproc_virtio_find_vqs(struct virtio_device * vdev,unsigned int nvqs,struct virtqueue * vqs[],struct virtqueue_info vqs_info[],struct irq_affinity * desc) rproc_virtio_find_vqs() argument
/linux/drivers/platform/mellanox/
H A Dmlxbf-tmfifo.c1060 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()