Lines Matching refs:vq_tx
105 struct virtqueue *vq_tx; member
140 static void cfv_release_cb(struct virtqueue *vq_tx) in cfv_release_cb() argument
142 struct cfv_info *cfv = vq_tx->vdev->priv; in cfv_release_cb()
160 static void cfv_release_used_buf(struct virtqueue *vq_tx) in cfv_release_used_buf() argument
162 struct cfv_info *cfv = vq_tx->vdev->priv; in cfv_release_used_buf()
165 BUG_ON(vq_tx != cfv->vq_tx); in cfv_release_used_buf()
173 buf_info = virtqueue_get_buf(vq_tx, &len); in cfv_release_used_buf()
186 if (cfv->vq_tx->num_free <= cfv->watermark_tx) in cfv_release_used_buf()
198 virtqueue_get_vring_size(cfv->vq_tx); in cfv_release_used_buf()
203 virtqueue_disable_cb(cfv->vq_tx); in cfv_release_used_buf()
208 virtqueue_get_vring_size(cfv->vq_tx)); in cfv_release_used_buf()
210 virtqueue_get_vring_size(cfv->vq_tx) / 4; in cfv_release_used_buf()
384 cfv->allocsz = (virtqueue_get_vring_size(cfv->vq_tx) * in cfv_create_genpool()
430 cfv->watermark_tx = virtqueue_get_vring_size(cfv->vq_tx); in cfv_create_genpool()
462 virtqueue_disable_cb(cfv->vq_tx); in cfv_netdev_close()
467 cfv_release_used_buf(cfv->vq_tx); in cfv_netdev_close()
469 while ((buf_info = virtqueue_detach_unused_buf(cfv->vq_tx))) in cfv_netdev_close()
532 cfv_release_used_buf(cfv->vq_tx); in cfv_netdev_tx()
540 if (unlikely(cfv->vq_tx->num_free <= num_present_cpus())) { in cfv_netdev_tx()
563 cfv->watermark_tx = virtqueue_get_vring_size(cfv->vq_tx) / 4; in cfv_netdev_tx()
565 virtqueue_enable_cb(cfv->vq_tx); in cfv_netdev_tx()
575 ret = virtqueue_add_outbuf(cfv->vq_tx, &sg, 1, buf_info, GFP_ATOMIC); in cfv_netdev_tx()
589 virtqueue_kick(cfv->vq_tx); in cfv_netdev_tx()
604 cfv_release_used_buf(cfv->vq_tx); in cfv_tx_release_tasklet()
682 err = vdev->config->find_vqs(vdev, 1, &cfv->vq_tx, &vq_cbs, &names); in cfv_probe()
713 virtqueue_disable_cb(cfv->vq_tx); in cfv_probe()