Home
last modified time | relevance | path

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

/linux-6.15/drivers/vdpa/vdpa_sim/
H A Dvdpa_sim_net.c115 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->in_iov, in vdpasim_handle_ctrl_mac()
140 if (!cvq->ready) in vdpasim_handle_cvq()
144 err = vringh_getdesc_iotlb(&cvq->vring, &cvq->in_iov, in vdpasim_handle_cvq()
145 &cvq->out_iov, in vdpasim_handle_cvq()
146 &cvq->head, GFP_ATOMIC); in vdpasim_handle_cvq()
151 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->in_iov, &ctrl, in vdpasim_handle_cvq()
174 write = vringh_iov_push_iotlb(&cvq->vring, &cvq->out_iov, in vdpasim_handle_cvq()
176 vringh_complete_iotlb(&cvq->vring, cvq->head, write); in vdpasim_handle_cvq()
177 vringh_kiov_cleanup(&cvq->in_iov); in vdpasim_handle_cvq()
184 if (cvq->cb) in vdpasim_handle_cvq()
[all …]
/linux-6.15/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c2133 struct mlx5_control_vq *cvq = &mvdev->cvq; in handle_ctrl_mac() local
2272 struct mlx5_control_vq *cvq = &mvdev->cvq; in handle_ctrl_mq() local
2320 struct mlx5_control_vq *cvq = &mvdev->cvq; in handle_ctrl_vlan() local
2370 cvq = &mvdev->cvq; in mlx5_cvq_kick_handler()
2384 err = vringh_getdesc_iotlb(&cvq->vring, &cvq->riov, &cvq->wiov, &cvq->head, in mlx5_cvq_kick_handler()
2412 vringh_complete_iotlb(&cvq->vring, cvq->head, write); in mlx5_cvq_kick_handler()
2515 cvq->event_cb.callback(cvq->event_cb.private); in mlx5_cvq_notify()
2520 struct mlx5_control_vq *cvq = &mvdev->cvq; in set_cvq_ready() local
3160 struct mlx5_control_vq *cvq = &mvdev->cvq; in setup_cvq_vring() local
3552 cvq = &mvdev->cvq; in mlx5_vdpa_get_vendor_vq_stats()
[all …]
/linux-6.15/drivers/vdpa/mlx5/core/
H A Dresources.c232 mvdev->cvq.iotlb = vhost_iotlb_alloc(0, 0); in init_ctrl_vq()
233 if (!mvdev->cvq.iotlb) in init_ctrl_vq()
236 spin_lock_init(&mvdev->cvq.iommu_lock); in init_ctrl_vq()
237 vringh_set_iotlb(&mvdev->cvq.vring, mvdev->cvq.iotlb, &mvdev->cvq.iommu_lock); in init_ctrl_vq()
244 vhost_iotlb_free(mvdev->cvq.iotlb); in cleanup_ctrl_vq()
H A Dmr.c769 prune_iotlb(mvdev->cvq.iotlb); in mlx5_vdpa_clean_mrs()
849 spin_lock(&mvdev->cvq.iommu_lock); in mlx5_vdpa_update_cvq_iotlb()
851 prune_iotlb(mvdev->cvq.iotlb); in mlx5_vdpa_update_cvq_iotlb()
852 err = dup_iotlb(mvdev->cvq.iotlb, iotlb); in mlx5_vdpa_update_cvq_iotlb()
854 spin_unlock(&mvdev->cvq.iommu_lock); in mlx5_vdpa_update_cvq_iotlb()
H A Dmlx5_vdpa.h116 struct mlx5_control_vq cvq; member
/linux-6.15/drivers/net/
H A Dvirtio_net.c373 struct virtqueue *cvq; member
3534 ret = virtqueue_add_sgs(vi->cvq, sgs, out_num, in_num, vi, GFP_ATOMIC); in virtnet_send_command_reply()
3542 if (unlikely(!virtqueue_kick(vi->cvq))) in virtnet_send_command_reply()
3548 while (!virtqueue_get_buf(vi->cvq, &tmp) && in virtnet_send_command_reply()
3549 !virtqueue_is_broken(vi->cvq)) { in virtnet_send_command_reply()
6440 vi->cvq = vqs[total_vqs - 1]; in virtnet_find_vqs()