Lines Matching defs:ubuf
384 static void vhost_zerocopy_callback(struct ubuf_info *ubuf, bool success)
386 struct vhost_net_ubuf_ref *ubufs = ubuf->ctx;
393 vq->heads[ubuf->desc].len = success ?
874 struct ubuf_info *ubuf;
905 /* use msg_control to pass vhost zerocopy ubuf info to skb */
907 ubuf = nvq->ubuf_info + nvq->upend_idx;
910 ubuf->callback = vhost_zerocopy_callback;
911 ubuf->ctx = nvq->ubufs;
912 ubuf->desc = nvq->upend_idx;
913 refcount_set(&ubuf->refcnt, 1);
916 ctl.ptr = ubuf;
937 if (vq->heads[ubuf->desc].len == VHOST_DMA_IN_PROGRESS)