Lines Matching refs:vq
122 /* To protect the vq operations for the control channel */
241 struct virtqueue *vq)
248 if (port->in_vq == vq || port->out_vq == vq)
305 struct virtqueue *vq;
308 vq = port->in_vq;
309 buf = virtqueue_get_buf(vq, &len);
323 static int add_inbuf(struct virtqueue *vq, struct port_buffer *buf)
330 ret = virtqueue_add_buf(vq, sg, 0, 1, buf);
331 virtqueue_kick(vq);
339 struct virtqueue *vq;
343 vq = port->in_vq;
347 buf = virtqueue_get_buf(vq, &len);
351 if (add_inbuf(vq, buf) < 0) {
355 buf = virtqueue_get_buf(vq, &len);
359 dev_warn(port->dev, "Errors adding %d buffers back to vq\n",
389 struct virtqueue *vq;
399 vq = portdev->c_ovq;
402 if (virtqueue_add_buf(vq, sg, 1, 0, &cpkt) >= 0) {
403 virtqueue_kick(vq);
404 while (!virtqueue_get_buf(vq, &len))
978 static unsigned int fill_queue(struct virtqueue *vq, spinlock_t *lock)
991 ret = add_inbuf(vq, buf);
1279 struct virtqueue *vq;
1284 vq = portdev->c_ivq;
1287 while ((buf = virtqueue_get_buf(vq, &len))) {
1305 static void out_intr(struct virtqueue *vq)
1309 port = find_port_by_vq(vq->vdev->priv, vq);
1316 static void in_intr(struct virtqueue *vq)
1321 port = find_port_by_vq(vq->vdev->priv, vq);
1347 static void control_intr(struct virtqueue *vq)
1351 portdev = vq->vdev->priv;