ubufs             124 drivers/vhost/net.c 	struct vhost_net_ubuf_ref *ubufs;
ubufs             236 drivers/vhost/net.c 	struct vhost_net_ubuf_ref *ubufs;
ubufs             240 drivers/vhost/net.c 	ubufs = kmalloc(sizeof(*ubufs), GFP_KERNEL);
ubufs             241 drivers/vhost/net.c 	if (!ubufs)
ubufs             243 drivers/vhost/net.c 	atomic_set(&ubufs->refcount, 1);
ubufs             244 drivers/vhost/net.c 	init_waitqueue_head(&ubufs->wait);
ubufs             245 drivers/vhost/net.c 	ubufs->vq = vq;
ubufs             246 drivers/vhost/net.c 	return ubufs;
ubufs             249 drivers/vhost/net.c static int vhost_net_ubuf_put(struct vhost_net_ubuf_ref *ubufs)
ubufs             251 drivers/vhost/net.c 	int r = atomic_sub_return(1, &ubufs->refcount);
ubufs             253 drivers/vhost/net.c 		wake_up(&ubufs->wait);
ubufs             257 drivers/vhost/net.c static void vhost_net_ubuf_put_and_wait(struct vhost_net_ubuf_ref *ubufs)
ubufs             259 drivers/vhost/net.c 	vhost_net_ubuf_put(ubufs);
ubufs             260 drivers/vhost/net.c 	wait_event(ubufs->wait, !atomic_read(&ubufs->refcount));
ubufs             263 drivers/vhost/net.c static void vhost_net_ubuf_put_wait_and_free(struct vhost_net_ubuf_ref *ubufs)
ubufs             265 drivers/vhost/net.c 	vhost_net_ubuf_put_and_wait(ubufs);
ubufs             266 drivers/vhost/net.c 	kfree(ubufs);
ubufs             311 drivers/vhost/net.c 		n->vqs[i].ubufs = NULL;
ubufs             386 drivers/vhost/net.c 	struct vhost_net_ubuf_ref *ubufs = ubuf->ctx;
ubufs             387 drivers/vhost/net.c 	struct vhost_virtqueue *vq = ubufs->vq;
ubufs             395 drivers/vhost/net.c 	cnt = vhost_net_ubuf_put(ubufs);
ubufs             862 drivers/vhost/net.c 	struct vhost_net_ubuf_ref *uninitialized_var(ubufs);
ubufs             901 drivers/vhost/net.c 			ubuf->ctx = nvq->ubufs;
ubufs             908 drivers/vhost/net.c 			ubufs = nvq->ubufs;
ubufs             909 drivers/vhost/net.c 			atomic_inc(&ubufs->refcount);
ubufs             913 drivers/vhost/net.c 			ubufs = NULL;
ubufs             927 drivers/vhost/net.c 				vhost_net_ubuf_put(ubufs);
ubufs            1315 drivers/vhost/net.c 		n->vqs[i].ubufs = NULL;
ubufs            1373 drivers/vhost/net.c 	if (n->vqs[VHOST_NET_VQ_TX].ubufs) {
ubufs            1378 drivers/vhost/net.c 		vhost_net_ubuf_put_and_wait(n->vqs[VHOST_NET_VQ_TX].ubufs);
ubufs            1381 drivers/vhost/net.c 		atomic_set(&n->vqs[VHOST_NET_VQ_TX].ubufs->refcount, 1);
ubufs            1495 drivers/vhost/net.c 	struct vhost_net_ubuf_ref *ubufs, *oldubufs = NULL;
ubufs            1525 drivers/vhost/net.c 		ubufs = vhost_net_ubuf_alloc(vq,
ubufs            1527 drivers/vhost/net.c 		if (IS_ERR(ubufs)) {
ubufs            1528 drivers/vhost/net.c 			r = PTR_ERR(ubufs);
ubufs            1544 drivers/vhost/net.c 		oldubufs = nvq->ubufs;
ubufs            1545 drivers/vhost/net.c 		nvq->ubufs = ubufs;
ubufs            1572 drivers/vhost/net.c 	if (ubufs)
ubufs            1573 drivers/vhost/net.c 		vhost_net_ubuf_put_wait_and_free(ubufs);
ubufs             653 drivers/xen/privcmd.c 	if (copy_from_user(kbufs, kdata.ubufs,
ubufs              89 include/uapi/xen/privcmd.h 	const struct privcmd_dm_op_buf __user *ubufs;