Home
last modified time | relevance | path

Searched refs:vqs (Results 1 – 25 of 53) sorted by relevance

123

/linux/drivers/vdpa/solidrun/
H A Dsnet_main.c77 if (snet->vqs[i] && snet->vqs[i]->irq != -1) { in snet_free_irqs()
78 devm_free_irq(&pdev->dev, snet->vqs[i]->irq, snet->vqs[i]); in snet_free_irqs()
79 snet->vqs[i]->irq = -1; in snet_free_irqs()
91 snet->vqs[idx]->desc_area = desc_area; in snet_set_vq_address()
92 snet->vqs[idx]->driver_area = driver_area; in snet_set_vq_address()
93 snet->vqs[idx]->device_area = device_area; in snet_set_vq_address()
102 snet->vqs[idx]->num = num; in snet_set_vq_num()
109 if (unlikely(!snet->vqs[idx]->ready)) in snet_kick_vq()
112 iowrite32(SNET_KICK_VAL, snet->vqs[idx]->kick_ptr); in snet_kick_vq()
121 if (unlikely(!snet->vqs[idx]->ready)) in snet_kick_vq_with_data()
[all …]
/linux/drivers/vdpa/pds/
H A Dvdpa_dev.c77 pdsv->vqs[qid].desc_addr = desc_addr; in pds_vdpa_set_vq_address()
78 pdsv->vqs[qid].avail_addr = driver_addr; in pds_vdpa_set_vq_address()
79 pdsv->vqs[qid].used_addr = device_addr; in pds_vdpa_set_vq_address()
88 pdsv->vqs[qid].q_len = num; in pds_vdpa_set_vq_num()
95 iowrite16(qid, pdsv->vqs[qid].notify); in pds_vdpa_kick_vq()
103 pdsv->vqs[qid].event_cb = *cb; in pds_vdpa_set_vq_cb()
119 if (pdsv->vqs[qid].irq == VIRTIO_MSI_NO_VECTOR) in pds_vdpa_release_irq()
122 free_irq(pdsv->vqs[qid].irq, &pdsv->vqs[qid]); in pds_vdpa_release_irq()
123 pdsv->vqs[qid].irq = VIRTIO_MSI_NO_VECTOR; in pds_vdpa_release_irq()
135 __func__, qid, pdsv->vqs[qid].ready, ready); in pds_vdpa_set_vq_ready()
[all …]
/linux/drivers/vhost/
H A Dtest.c44 struct vhost_virtqueue vqs[VHOST_TEST_VQ_MAX]; member
51 struct vhost_virtqueue *vq = &n->vqs[VHOST_TEST_VQ]; in handle_vq()
115 struct vhost_virtqueue **vqs; in vhost_test_open() local
119 vqs = kmalloc_objs(*vqs, VHOST_TEST_VQ_MAX); in vhost_test_open()
120 if (!vqs) { in vhost_test_open()
126 vqs[VHOST_TEST_VQ] = &n->vqs[VHOST_TEST_VQ]; in vhost_test_open()
127 n->vqs[VHOST_TEST_VQ].handle_kick = handle_vq_kick; in vhost_test_open()
128 vhost_dev_init(dev, vqs, VHOST_TEST_VQ_MA in vhost_test_open()
[all...]
H A Dnet.c138 struct vhost_net_virtqueue vqs[VHOST_NET_VQ_MAX]; member
290 kfree(n->vqs[i].ubuf_info); in vhost_net_clear_ubuf_info()
291 n->vqs[i].ubuf_info = NULL; in vhost_net_clear_ubuf_info()
304 n->vqs[i].ubuf_info = in vhost_net_set_ubuf_info()
305 kmalloc_objs(*n->vqs[i].ubuf_info, UIO_MAXIOV); in vhost_net_set_ubuf_info()
306 if (!n->vqs[i].ubuf_info) in vhost_net_set_ubuf_info()
323 n->vqs[i].done_idx = 0; in vhost_net_vq_reset()
324 n->vqs[i].upend_idx = 0; in vhost_net_vq_reset()
325 n->vqs[i].ubufs = NULL; in vhost_net_vq_reset()
326 n->vqs[ in vhost_net_vq_reset()
1342 struct vhost_virtqueue **vqs; vhost_net_open() local
[all...]
H A Dvsock.c50 struct vhost_virtqueue vqs[2]; member
111 struct vhost_virtqueue *tx_vq = &vsock->vqs[VSOCK_VQ_TX]; in vhost_transport_do_send_pkt()
284 vq = &vsock->vqs[VSOCK_VQ_RX]; in vhost_transport_send_pkt_work()
321 vhost_vq_work_queue(&vsock->vqs[VSOCK_VQ_RX], &vsock->send_pkt_work); in vhost_transport_send_pkt()
345 struct vhost_virtqueue *tx_vq = &vsock->vqs[VSOCK_VQ_TX]; in vhost_transport_cancel_pkt()
421 struct vhost_virtqueue *vq = &vsock->vqs[VSOCK_VQ_TX]; in vhost_vsock_alloc_skb()
617 for (i = 0; i < ARRAY_SIZE(vsock->vqs); i++) { in vhost_vsock_start()
618 vq = &vsock->vqs[i]; in vhost_vsock_start()
645 vhost_vq_work_queue(&vsock->vqs[VSOCK_VQ_RX], &vsock->send_pkt_work); in vhost_vsock_start()
652 vhost_poll_queue(&vsock->vqs[VSOCK_VQ_T in vhost_vsock_start()
700 struct vhost_virtqueue **vqs; vhost_vsock_dev_open() local
[all...]
H A Dscsi.c277 struct vhost_scsi_virtqueue *vqs;
345 vq = &vs->vqs[i].vq; in vhost_scsi_init_inflight()
350 idx = vs->vqs[i].inflight_idx; in vhost_scsi_init_inflight()
352 old_inflight[i] = &vs->vqs[i].inflights[idx]; in vhost_scsi_init_inflight()
355 vs->vqs[i].inflight_idx = idx ^ 1; in vhost_scsi_init_inflight()
356 new_inflight = &vs->vqs[i].inflights[idx ^ 1]; in vhost_scsi_init_inflight()
579 struct vhost_virtqueue *vq = &vs->vqs[VHOST_SCSI_VQ_EVT].vq; in vhost_scsi_allocate_evt()
609 struct vhost_virtqueue *vq = &vs->vqs[VHOST_SCSI_VQ_EVT].vq; in vhost_scsi_do_evt_work()
696 struct vhost_virtqueue *vq = &vs->vqs[VHOST_SCSI_VQ_EVT].vq; in vhost_scsi_copy_sgl_to_iov()
2090 if (!vhost_vq_access_ok(&vs->vqs[inde in vhost_scsi_set_endpoint()
275 struct vhost_scsi_virtqueue *vqs; global() member
2322 struct vhost_virtqueue **vqs; vhost_scsi_open() local
[all...]
H A Dvhost.c363 __vhost_vq_meta_reset(d->vqs[i]); in vhost_vq_meta_reset()
486 vq = dev->vqs[i]; in vhost_worker_killed()
521 /* Helper to allocate iovec buffers for all vqs. */
528 vq = dev->vqs[i]; in vhost_dev_alloc_iovecs()
540 vhost_vq_free_iovecs(dev->vqs[i]); in vhost_dev_alloc_iovecs()
549 vhost_vq_free_iovecs(dev->vqs[i]); in vhost_dev_free_iovecs()
592 struct vhost_virtqueue **vqs, int nvqs, in vhost_dev_init()
601 dev->vqs = vqs; in vhost_dev_init()
621 vq = dev->vqs[ in vhost_dev_init()
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 Dvdpa.c53 struct vhost_virtqueue *vqs; member
183 ops->kick_vq(v->vdpa, vq - v->vqs); in handle_vq_kick()
212 struct vhost_virtqueue *vq = &v->vqs[qid]; in vhost_vdpa_setup_vq_irq()
236 struct vhost_virtqueue *vq = &v->vqs[qid]; in vhost_vdpa_unsetup_vq_irq()
250 if (v->vdev.vqs) { in _compat_vdpa_reset()
251 flags |= !vhost_backend_has_feature(v->vdev.vqs[0], in _compat_vdpa_reset()
506 /* let the vqs know what has been configured */ in vhost_vdpa_set_features()
509 struct vhost_virtqueue *vq = d->vqs[i]; in vhost_vdpa_set_features()
688 vq = &v->vqs[idx]; in vhost_vdpa_vring_ioctl()
1501 kfree(v->vdev.vqs); in vhost_vdpa_open()
1465 struct vhost_virtqueue **vqs; vhost_vdpa_open() local
[all...]
/linux/drivers/virtio/
H A Dvirtio_pci_common.c279 list_for_each_entry_safe(vq, n, &vdev->vqs, list) { in vp_del_vqs()
281 vp_dev->vqs[vq->index]; in vp_del_vqs()
324 kfree(vp_dev->vqs);
325 vp_dev->vqs = NULL;
382 struct virtqueue *vqs[], in vp_find_vqs_msix()
395 vp_dev->vqs = kzalloc_objs(*vp_dev->vqs, nvqs); in vp_find_vqs_msix()
396 if (!vp_dev->vqs) in vp_find_vqs_msix()
418 /* Second best: one for change, shared for all vqs. */ in vp_find_vqs_msix()
431 vqs[ in vp_find_vqs_msix()
376 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
458 vp_find_vqs_intx(struct virtio_device * vdev,unsigned int nvqs,struct virtqueue * vqs[],struct virtqueue_info vqs_info[]) vp_find_vqs_intx() argument
520 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_rtc_driver.c44 * @vqs: virtqueues
56 struct viortc_vq vqs[VIORTC_MAX_NR_QUEUES]; member
240 viortc_vq = &viortc->vqs[vq->index]; in viortc_do_cb()
602 ret = viortc_msg_xfer(&viortc->vqs[VIORTC_REQUESTQ], VIORTC_MSG(hdl), in viortc_read()
644 ret = viortc_msg_xfer(&viortc->vqs[VIORTC_REQUESTQ], VIORTC_MSG(hdl), in viortc_read_cross()
684 ret = viortc_msg_xfer(&viortc->vqs[VIORTC_REQUESTQ], VIORTC_MSG(hdl), in viortc_cfg()
725 ret = viortc_msg_xfer(&viortc->vqs[VIORTC_REQUESTQ], VIORTC_MSG(hdl), in viortc_clock_cap()
769 ret = viortc_msg_xfer(&viortc->vqs[VIORTC_REQUESTQ], VIORTC_MSG(hdl), in viortc_cross_cap()
811 ret = viortc_msg_xfer(&viortc->vqs[VIORTC_REQUESTQ], VIORTC_MSG(hdl), in viortc_read_alarm()
860 ret = viortc_msg_xfer(&viortc->vqs[VIORTC_REQUEST in viortc_set_alarm()
1214 struct virtqueue *vqs[VIORTC_MAX_NR_QUEUES]; viortc_init_vqs() local
[all...]
H A Dvirtio_vdpa.c282 list_for_each_entry_safe(vq, n, &vdev->vqs, list) in create_affinity_masks()
348 struct virtqueue *vqs[], in virtio_vdpa_find_vqs()
370 vqs[i] = NULL; in virtio_vdpa_find_vqs()
374 vqs[i] = virtio_vdpa_setup_vq(vdev, queue_idx, vqi->callback, in virtio_vdpa_find_vqs()
376 if (IS_ERR(vqs[i])) { in virtio_vdpa_find_vqs()
377 err = PTR_ERR(vqs[i]); in virtio_vdpa_find_vqs()
329 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
/linux/drivers/block/
H A Dvirtio_blk.c79 /* num of vqs */
82 struct virtio_blk_vq *vqs; member
134 struct virtio_blk_vq *vq = &vblk->vqs[hctx->queue_num]; in get_virtio_blk_vq()
366 spin_lock_irqsave(&vblk->vqs[qid].lock, flags); in virtblk_done()
369 while ((vbr = virtqueue_get_buf(vblk->vqs[qid].vq, &len)) != NULL) { in virtblk_done()
381 spin_unlock_irqrestore(&vblk->vqs[qid].lock, flags); in virtio_commit_rqs()
387 struct virtio_blk_vq *vq = &vblk->vqs[hctx->queue_num]; in virtio_commit_rqs()
449 spin_lock_irqsave(&vblk->vqs[qid].lock, flags); in virtio_queue_rq()
450 err = virtblk_add_req(vblk->vqs[qid].vq, vbr); in virtio_queue_rq()
452 virtqueue_kick(vblk->vqs[qi in virtio_queue_rq()
966 struct virtqueue **vqs; init_vq() local
[all...]
/linux/net/vmw_vsock/
H A Dvirtio_transport.c32 struct virtqueue *vqs[VSOCK_VQ_MAX]; member
39 /* The following fields are protected by tx_lock. vqs[VSOCK_VQ_TX]
50 /* The following fields are protected by rx_lock. vqs[VSOCK_VQ_RX]
73 * vqs[VSOCK_VQ_EVENT] must be accessed with event_lock held.
171 vq = vsock->vqs[VSOCK_VQ_TX]; in virtio_transport_send_pkt_work()
191 struct virtqueue *rx_vq = vsock->vqs[VSOCK_VQ_RX]; in virtio_transport_send_pkt_work()
219 struct virtqueue *vq = vsock->vqs[VSOCK_VQ_TX]; in virtio_transport_send_skb_fast_path()
295 struct virtqueue *rx_vq = vsock->vqs[VSOCK_VQ_RX]; in virtio_transport_cancel_pkt()
319 vq = vsock->vqs[VSOCK_VQ_RX]; in virtio_vsock_rx_fill()
354 vq = vsock->vqs[VSOCK_VQ_T in virtio_transport_tx_work()
[all...]
/linux/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim.c95 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_queue_ready()
149 vdpasim_vq_reset(vdpasim, &vdpasim->vqs[i]); in vdpasim_do_reset()
150 vringh_set_iotlb(&vdpasim->vqs[i].vring, &vdpasim->iommu[0], in vdpasim_do_reset()
255 vdpasim->vqs = kzalloc_objs(struct vdpasim_virtqueue, dev_attr->nvqs); in vdpasim_create()
256 if (!vdpasim->vqs) in vdpasim_create()
278 vringh_set_iotlb(&vdpasim->vqs[i].vring, &vdpasim->iommu[0], in vdpasim_create()
303 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_set_vq_address()
315 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_set_vq_num()
323 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx]; in vdpasim_get_vq_size()
334 struct vdpasim_virtqueue *vq = &vdpasim->vqs[id in vdpasim_kick_vq()
[all...]
/linux/drivers/bluetooth/
H A Dvirtio_bt.c25 struct virtqueue *vqs[VIRTBT_NUM_VQS]; member
32 struct virtqueue *vq = vbt->vqs[VIRTBT_VQ_RX]; in virtbt_add_inbuf()
62 virtqueue_kick(vbt->vqs[VIRTBT_VQ_RX]); in virtbt_open_vdev()
77 for (i = 0; i < ARRAY_SIZE(vbt->vqs); i++) { in virtbt_close_vdev()
78 struct virtqueue *vq = vbt->vqs[i]; in virtbt_close_vdev()
103 err = virtqueue_add_outbuf(vbt->vqs[VIRTBT_VQ_TX], sg, 1, skb, in virtbt_send_frame()
110 virtqueue_kick(vbt->vqs[VIRTBT_VQ_TX]); in virtbt_send_frame()
248 skb = virtqueue_get_buf(vbt->vqs[VIRTBT_VQ_RX], &len); in virtbt_rx_work()
265 virtqueue_kick(vbt->vqs[VIRTBT_VQ_RX]); in virtbt_rx_work()
316 err = virtio_find_vqs(vdev, VIRTBT_NUM_VQS, vbt->vqs, vqs_inf in virtbt_probe()
[all...]
/linux/drivers/vdpa/vdpa_user/
H A Dvduse_dev.c122 struct vduse_virtqueue **vqs;
520 struct vduse_virtqueue *vq = dev->vqs[i]; in vduse_dev_reset()
548 struct vduse_virtqueue *vq = dev->vqs[i]; in vduse_dev_reset()
560 struct vduse_virtqueue *vq = dev->vqs[idx]; in vduse_vdpa_set_vq_address()
603 struct vduse_virtqueue *vq = dev->vqs[idx]; in vduse_vdpa_kick_vq()
616 struct vduse_virtqueue *vq = dev->vqs[idx]; in vduse_vdpa_set_vq_cb()
628 struct vduse_virtqueue *vq = dev->vqs[idx]; in vduse_vdpa_set_vq_num()
636 struct vduse_virtqueue *vq = dev->vqs[idx]; in vduse_vdpa_get_vq_size()
648 struct vduse_virtqueue *vq = dev->vqs[idx]; in vduse_vdpa_set_vq_ready()
679 struct vduse_virtqueue *vq = dev->vqs[id in vduse_vdpa_get_vq_ready()
121 struct vduse_virtqueue **vqs; global() member
[all...]
/linux/tools/testing/selftests/arm64/fp/
H A Dsve-probe-vls.c22 static unsigned int vqs[SVE_VQ_MAX]; in main() local
53 vqs[nvqs++] = vq; in main()
60 ksft_print_msg("%u\n", 16 * vqs[nvqs]); in main()
/linux/drivers/net/ethernet/intel/ice/virt/
H A Dqueues.c167 * @vqs: virtchnl_queue_select structure containing bitmaps to validate
171 static bool ice_vc_validate_vqs_bitmaps(struct virtchnl_queue_select *vqs) in ice_vc_validate_vqs_bitmaps() argument
173 if ((!vqs->rx_queues && !vqs->tx_queues) || in ice_vc_validate_vqs_bitmaps()
174 vqs->rx_queues >= BIT(ICE_MAX_RSS_QS_PER_VF) || in ice_vc_validate_vqs_bitmaps()
175 vqs->tx_queues >= BIT(ICE_MAX_RSS_QS_PER_VF)) in ice_vc_validate_vqs_bitmaps()
255 struct virtchnl_queue_select *vqs = in ice_vc_ena_qs_msg() local
266 if (!ice_vc_isvalid_vsi_id(vf, vqs->vsi_id)) { in ice_vc_ena_qs_msg()
271 if (!ice_vc_validate_vqs_bitmaps(vqs)) { in ice_vc_ena_qs_msg()
286 q_map = vqs in ice_vc_ena_qs_msg()
382 struct virtchnl_queue_select *vqs = ice_vc_dis_qs_msg() local
[all...]
/linux/sound/virtio/
H A Dvirtio_card.c121 struct virtqueue *vqs[VIRTIO_SND_VQ_MAX] = { 0 }; in virtsnd_find_vqs() local
126 rc = virtio_find_vqs(vdev, VIRTIO_SND_VQ_MAX, vqs, vqs_info, NULL); in virtsnd_find_vqs()
133 snd->queues[i].vqueue = vqs[i]; in virtsnd_find_vqs()
136 virtqueue_disable_cb(vqs[VIRTIO_SND_VQ_EVENT]); in virtsnd_find_vqs()
138 n = virtqueue_get_vring_size(vqs[VIRTIO_SND_VQ_EVENT]); in virtsnd_find_vqs()
145 virtsnd_event_send(vqs[VIRTIO_SND_VQ_EVENT], in virtsnd_find_vqs()
/linux/drivers/remoteproc/
H A Dremoteproc_virtio.c191 list_for_each_entry(vq, &vdev->vqs, list) { in rproc_virtio_find_vqs()
199 list_for_each_entry_safe(vq, n, &vdev->vqs, list) in rproc_virtio_find_vqs()
209 struct virtqueue *vqs[], in rproc_virtio_find_vqs()
219 vqs[i] = NULL; in rproc_virtio_get_status()
223 vqs[i] = rp_find_vq(vdev, queue_idx++, vqi->callback, in rproc_virtio_set_status()
225 if (IS_ERR(vqs[i])) { in rproc_virtio_set_status()
226 ret = PTR_ERR(vqs[i]); in rproc_virtio_set_status()
184 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/vdpa/octeon_ep/
H A Doctep_vdpa_main.c103 if (ioread8(oct_hw->vqs[i].cb_notify_addr)) { in octep_vdpa_intr_handler()
105 iowrite8(0, oct_hw->vqs[i].cb_notify_addr); in octep_vdpa_intr_handler()
107 if (likely(oct_hw->vqs[i].cb.callback)) in octep_vdpa_intr_handler()
108 oct_hw->vqs[i].cb.callback(oct_hw->vqs[i].cb.private); in octep_vdpa_intr_handler()
255 oct_hw->vqs[qid].cb.callback = NULL; in octep_vdpa_reset()
256 oct_hw->vqs[qid].cb.private = NULL; in octep_vdpa_reset()
297 oct_hw->vqs[qid].cb = *cb; in octep_vdpa_set_vq_cb()
343 vp_iowrite32(data, oct_hw->vqs[idx].notify_addr); in octep_vdpa_kick_vq_with_data()
405 area.addr = oct_hw->vqs[id in octep_get_vq_notification()
[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
313 if (vqs[i]) in get_airq_indicator()
336 if (!vqs[j]) in get_airq_indicator()
339 (unsigned long)vqs[j]); in get_airq_indicator()
543 list_for_each_entry_safe(vq, n, &vdev->vqs, list) in virtio_ccw_del_vqs()
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()
703 struct virtqueue *vqs[], in virtio_ccw_find_vqs()
721 vqs[i] = NULL; in virtio_ccw_find_vqs()
725 vqs[ 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
702 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
[all...]
/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c563 struct mlx5_vdpa_virtqueue *mvq = &ndev->vqs[idx]; in cq_create()
638 struct mlx5_vdpa_virtqueue *mvq = &ndev->vqs[idx]; in cq_destroy()
1250 fill_query_virtqueue_cmd(ndev, &ndev->vqs[start_vq + i], &cmd_mem[i]); in query_virtqueues()
1583 mvq = &ndev->vqs[vq_idx]; in modify_virtqueues()
1618 mvq = &ndev->vqs[vq_idx]; in modify_virtqueues()
1647 mvq = &ndev->vqs[start_vq]; in suspend_vqs()
1667 mvq = &ndev->vqs[vq_idx]; in suspend_vqs()
1690 mvq = &ndev->vqs[start_vq]; in resume_vqs()
1767 list[i] = cpu_to_be32(ndev->vqs[j % ndev->cur_num_vqs].virtq_id); in create_rqt()
1802 list[i] = cpu_to_be32(ndev->vqs[ in modify_rqt()
[all...]
/linux/net/sched/
H A Dsch_gred.c554 static void gred_vqs_apply(struct gred_sched *table, struct nlattr *vqs) in gred_vqs_apply()
559 nla_for_each_nested(attr, vqs, rem) { in gred_vqs_apply()
613 struct nlattr *vqs, struct netlink_ext_ack *extack) in gred_vqs_validate()
618 err = nla_validate_nested_deprecated(vqs, TCA_GRED_VQ_ENTRY_MAX, in gred_vqs_validate()
623 nla_for_each_nested(attr, vqs, rem) { in gred_vqs_validate()
773 struct nlattr *parms, *vqs, *opts = NULL; in gred_dump()
854 vqs = nla_nest_start_noflag(skb, TCA_GRED_VQ_LIST); in gred_dump()
855 if (!vqs) in gred_dump()
901 nla_nest_end(skb, vqs); in gred_dump()
552 gred_vqs_apply(struct gred_sched * table,struct nlattr * vqs) gred_vqs_apply() argument
611 gred_vqs_validate(struct gred_sched * table,u32 cdp,struct nlattr * vqs,struct netlink_ext_ack * extack) gred_vqs_validate() argument
771 struct nlattr *parms, *vqs, *opts = NULL; gred_dump() local
/linux/tools/virtio/
H A Dvhost_net_test.c48 struct vq_info vqs[2]; member
194 struct vq_info *info = &dev->vqs[idx]; in vq_info_add()
214 INIT_LIST_HEAD(&dev->vdev.vqs); in vdev_info_init()
523 run_rx_test(&dev, &dev.vqs[0], delayed, nbufs); in main()
524 run_tx_test(&dev, &dev.vqs[1], delayed, nbufs); in main()

123