Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c1442 struct mlx5_control_vq *cvq = &mvdev->cvq; in handle_ctrl_mac() local
1451 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, (void *)mac, ETH_ALEN); in handle_ctrl_mac()
1525 struct mlx5_control_vq *cvq = &mvdev->cvq; in handle_ctrl_mq() local
1532 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, (void *)&mq, sizeof(mq)); in handle_ctrl_mq()
1562 struct mlx5_control_vq *cvq; in mlx5_cvq_kick_handler() local
1570 cvq = &mvdev->cvq; in mlx5_cvq_kick_handler()
1574 if (!cvq->ready) in mlx5_cvq_kick_handler()
1578 err = vringh_getdesc_iotlb(&cvq->vring, &cvq->riov, &cvq->wiov, &cvq->head, in mlx5_cvq_kick_handler()
1583 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, &ctrl, sizeof(ctrl)); in mlx5_cvq_kick_handler()
1602 write = vringh_iov_push_iotlb(&cvq->vring, &cvq->wiov, &status, sizeof(status)); in mlx5_cvq_kick_handler()
[all …]
/Linux-v5.15/drivers/vdpa/mlx5/core/
Dresources.c237 mvdev->cvq.iotlb = vhost_iotlb_alloc(0, 0); in init_ctrl_vq()
238 if (!mvdev->cvq.iotlb) in init_ctrl_vq()
241 vringh_set_iotlb(&mvdev->cvq.vring, mvdev->cvq.iotlb, &mvdev->cvq.iommu_lock); in init_ctrl_vq()
248 vhost_iotlb_free(mvdev->cvq.iotlb); in cleanup_ctrl_vq()
Dmlx5_vdpa.h84 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-v5.15/drivers/net/
Dvirtio_net.c183 struct virtqueue *cvq; member
1788 ret = virtqueue_add_sgs(vi->cvq, sgs, out_num, 1, vi, GFP_ATOMIC); in virtnet_send_command()
1795 if (unlikely(!virtqueue_kick(vi->cvq))) in virtnet_send_command()
1801 while (!virtqueue_get_buf(vi->cvq, &tmp) && in virtnet_send_command()
1802 !virtqueue_is_broken(vi->cvq)) in virtnet_send_command()
2888 vi->cvq = vqs[total_vqs - 1]; in virtnet_find_vqs()