Lines Matching refs:cvq
75 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()
133 vringh_kiov_cleanup(&cvq->in_iov); in vdpasim_handle_cvq()
134 vringh_kiov_cleanup(&cvq->out_iov); in vdpasim_handle_cvq()
140 if (cvq->cb) in vdpasim_handle_cvq()
141 cvq->cb(cvq->private); in vdpasim_handle_cvq()