Lines Matching refs:vq
77 struct virtqueue *vq; member
202 static void vp_notify(struct virtqueue *vq) in vp_notify() argument
204 struct virtio_pci_device *vp_dev = to_vp_device(vq->vdev); in vp_notify()
205 struct virtio_pci_vq_info *info = vq->priv; in vp_notify()
235 if (vring_interrupt(irq, info->vq) == IRQ_HANDLED) in vp_vring_interrupt()
380 void (*callback)(struct virtqueue *vq), in setup_vq() argument
386 struct virtqueue *vq; in setup_vq() local
421 vq = vring_new_virtqueue(info->num, VIRTIO_PCI_VRING_ALIGN, vdev, in setup_vq()
423 if (!vq) { in setup_vq()
428 vq->priv = info; in setup_vq()
429 info->vq = vq; in setup_vq()
448 return vq; in setup_vq()
451 vring_del_virtqueue(vq); in setup_vq()
460 static void vp_del_vq(struct virtqueue *vq) in vp_del_vq() argument
462 struct virtio_pci_device *vp_dev = to_vp_device(vq->vdev); in vp_del_vq()
463 struct virtio_pci_vq_info *info = vq->priv; in vp_del_vq()
479 vring_del_virtqueue(vq); in vp_del_vq()
493 struct virtqueue *vq, *n; in vp_del_vqs() local
496 list_for_each_entry_safe(vq, n, &vdev->vqs, list) { in vp_del_vqs()
497 info = vq->priv; in vp_del_vqs()
501 vq); in vp_del_vqs()
502 vp_del_vq(vq); in vp_del_vqs()