Lines Matching refs:vq
28 static struct virtqueue *vq; variable
33 static void random_recv_done(struct virtqueue *vq) in random_recv_done() argument
36 if (!virtqueue_get_buf(vq, &data_avail)) in random_recv_done()
50 if (virtqueue_add_buf(vq, &sg, 0, 1, buf, GFP_KERNEL) < 0) in register_buffer()
53 virtqueue_kick(vq); in register_buffer()
92 if (vq) { in virtrng_probe()
97 vq = virtio_find_single_vq(vdev, random_recv_done, "input"); in virtrng_probe()
98 if (IS_ERR(vq)) { in virtrng_probe()
99 err = PTR_ERR(vq); in virtrng_probe()
100 vq = NULL; in virtrng_probe()
107 vq = NULL; in virtrng_probe()
119 vq = NULL; in virtrng_remove()