Lines Matching refs:vq
222 pci_vtcon_vq_to_port(struct pci_vtcon_softc *sc, struct vqueue_info *vq)
224 uint16_t num = vq->vq_num;
396 struct vqueue_info *vq;
403 vq = pci_vtcon_port_to_vq(port, true);
413 if (!vq_has_descs(vq)) {
415 vq_endchains(vq, 1);
423 n = vq_getchain(vq, &idx, &iov, 1, NULL);
427 vq_retchains(vq, 1);
428 vq_endchains(vq, 0);
435 vq_relchain(vq, idx, len);
436 } while (vq_has_descs(vq));
438 vq_endchains(vq, 1);
553 struct vqueue_info *vq;
558 vq = pci_vtcon_port_to_vq(&sc->vsc_control_port, true);
560 if (!vq_has_descs(vq))
563 n = vq_getchain(vq, &idx, &iov, 1, NULL);
572 vq_relchain(vq, idx, sizeof(struct pci_vtcon_control) + len);
573 vq_endchains(vq, 1);
578 pci_vtcon_notify_tx(void *vsc, struct vqueue_info *vq)
587 port = pci_vtcon_vq_to_port(sc, vq);
589 while (vq_has_descs(vq)) {
590 n = vq_getchain(vq, &idx, iov, 1, flags);
598 vq_relchain(vq, idx, 0);
600 vq_endchains(vq, 1); /* Generate interrupt if appropriate. */
604 pci_vtcon_notify_rx(void *vsc, struct vqueue_info *vq)
610 port = pci_vtcon_vq_to_port(sc, vq);
614 vq_kick_disable(vq);