Home
last modified time | relevance | path

Searched refs:cvq (Results 1 – 6 of 6) sorted by relevance

/linux-5.19.10/drivers/vdpa/vdpa_sim/
Dvdpa_sim_net.c75 struct vdpasim_virtqueue *cvq = &vdpasim->vqs[2]; in vdpasim_handle_ctrl_mac() local
81 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->in_iov, in vdpasim_handle_ctrl_mac()
95 struct vdpasim_virtqueue *cvq = &vdpasim->vqs[2]; in vdpasim_handle_cvq() local
104 if (!cvq->ready) in vdpasim_handle_cvq()
108 err = vringh_getdesc_iotlb(&cvq->vring, &cvq->in_iov, in vdpasim_handle_cvq()
109 &cvq->out_iov, in vdpasim_handle_cvq()
110 &cvq->head, GFP_ATOMIC); in vdpasim_handle_cvq()
114 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->in_iov, &ctrl, in vdpasim_handle_cvq()
130 write = vringh_iov_push_iotlb(&cvq->vring, &cvq->out_iov, in vdpasim_handle_cvq()
132 vringh_complete_iotlb(&cvq->vring, cvq->head, write); in vdpasim_handle_cvq()
[all …]
/linux-5.19.10/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c1617 struct mlx5_control_vq *cvq = &mvdev->cvq; in handle_ctrl_mac() local
1626 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, (void *)mac, ETH_ALEN); in handle_ctrl_mac()
1745 struct mlx5_control_vq *cvq = &mvdev->cvq; in handle_ctrl_mq() local
1764 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, (void *)&mq, sizeof(mq)); in handle_ctrl_mq()
1793 struct mlx5_control_vq *cvq = &mvdev->cvq; in handle_ctrl_vlan() local
1800 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, &vlan, sizeof(vlan)); in handle_ctrl_vlan()
1811 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, &vlan, sizeof(vlan)); in handle_ctrl_vlan()
1832 struct mlx5_control_vq *cvq; in mlx5_cvq_kick_handler() local
1840 cvq = &mvdev->cvq; in mlx5_cvq_kick_handler()
1850 if (!cvq->ready) in mlx5_cvq_kick_handler()
[all …]
/linux-5.19.10/drivers/vdpa/mlx5/core/
Dresources.c232 mvdev->cvq.iotlb = vhost_iotlb_alloc(0, 0); in init_ctrl_vq()
233 if (!mvdev->cvq.iotlb) in init_ctrl_vq()
236 vringh_set_iotlb(&mvdev->cvq.vring, mvdev->cvq.iotlb, &mvdev->cvq.iommu_lock); in init_ctrl_vq()
243 vhost_iotlb_free(mvdev->cvq.iotlb); in cleanup_ctrl_vq()
Dmlx5_vdpa.h86 struct mlx5_control_vq cvq; member
Dmr.c462 err = vhost_iotlb_add_range(mvdev->cvq.iotlb, start, last, start, VHOST_ACCESS_RW); in dup_iotlb()
468 err = vhost_iotlb_add_range(mvdev->cvq.iotlb, map->start, map->last, in dup_iotlb()
478 vhost_iotlb_del_range(mvdev->cvq.iotlb, 0, ULLONG_MAX); in prune_iotlb()
/linux-5.19.10/drivers/net/
Dvirtio_net.c204 struct virtqueue *cvq; member
1908 ret = virtqueue_add_sgs(vi->cvq, sgs, out_num, 1, vi, GFP_ATOMIC); in virtnet_send_command()
1915 if (unlikely(!virtqueue_kick(vi->cvq))) in virtnet_send_command()
1921 while (!virtqueue_get_buf(vi->cvq, &tmp) && in virtnet_send_command()
1922 !virtqueue_is_broken(vi->cvq)) in virtnet_send_command()
3289 vi->cvq = vqs[total_vqs - 1]; in virtnet_find_vqs()