Lines Matching refs:vq
217 pci_vtcon_vq_to_port(struct pci_vtcon_softc *sc, struct vqueue_info *vq)
219 uint16_t num = vq->vq_num;
412 struct vqueue_info *vq;
419 vq = pci_vtcon_port_to_vq(port, true);
429 if (!vq_has_descs(vq)) {
431 vq_endchains(vq, 1);
439 n = vq_getchain(vq, &iov, 1, &req);
444 vq_retchains(vq, 1);
445 vq_endchains(vq, 0);
452 vq_relchain(vq, req.idx, len);
453 } while (vq_has_descs(vq));
455 vq_endchains(vq, 1);
570 struct vqueue_info *vq;
575 vq = pci_vtcon_port_to_vq(&sc->vsc_control_port, true);
577 if (!vq_has_descs(vq))
580 n = vq_getchain(vq, &iov, 1, &req);
588 vq_relchain(vq, req.idx, sizeof(struct pci_vtcon_control) + len);
589 vq_endchains(vq, 1);
594 pci_vtcon_notify_tx(void *vsc, struct vqueue_info *vq)
603 port = pci_vtcon_vq_to_port(sc, vq);
605 while (vq_has_descs(vq)) {
606 n = vq_getchain(vq, iov, 1, &req);
614 vq_relchain(vq, req.idx, 0);
616 vq_endchains(vq, 1); /* Generate interrupt if appropriate. */
620 pci_vtcon_notify_rx(void *vsc, struct vqueue_info *vq)
626 port = pci_vtcon_vq_to_port(sc, vq);
630 vq_kick_disable(vq);