Lines Matching refs:ubuf
351 static void vhost_zerocopy_callback(struct ubuf_info *ubuf, bool success) in vhost_zerocopy_callback() argument
353 struct vhost_net_ubuf_ref *ubufs = ubuf->ctx; in vhost_zerocopy_callback()
360 vq->heads[ubuf->desc].len = success ? in vhost_zerocopy_callback()
535 struct ubuf_info *ubuf; in handle_tx() local
536 ubuf = nvq->ubuf_info + nvq->upend_idx; in handle_tx()
540 ubuf->callback = vhost_zerocopy_callback; in handle_tx()
541 ubuf->ctx = nvq->ubufs; in handle_tx()
542 ubuf->desc = nvq->upend_idx; in handle_tx()
543 refcount_set(&ubuf->refcnt, 1); in handle_tx()
544 msg.msg_control = ubuf; in handle_tx()
545 msg.msg_controllen = sizeof(ubuf); in handle_tx()