Lines Matching defs:ve

715 	struct vq_entry *ve;
718 ve = vq_alloc_entry(sc->sc_rx_vq);
719 if (!ve) {
729 buf = sc->sc_rxbufs[ve->qe_index];
734 sc->sc_rxbufs[ve->qe_index] = buf;
750 virtio_ve_add_indirect_buf(ve, buf->rb_mapping.vbm_dmac.dmac_laddress,
754 virtio_ve_add_indirect_buf(ve,
772 virtio_ve_add_cookie(ve, buf->rb_mapping.vbm_dmah,
778 virtio_push_chain(ve, B_FALSE);
783 vq_free_entry(sc->sc_rx_vq, ve);
799 * what we've got.
814 struct vq_entry *ve;
820 while ((ve = virtio_pull_chain(sc->sc_rx_vq, &len))) {
822 buf = sc->sc_rxbufs[ve->qe_index];
829 virtio_free_chain(ve);
845 virtio_free_chain(ve);
862 virtio_free_chain(ve);
872 sc->sc_rxbufs[ve->qe_index] = NULL;
889 virtio_free_chain(ve);
900 struct vq_entry *ve;
906 while ((ve = virtio_pull_chain(sc->sc_tx_vq, &len))) {
908 ASSERT(!ve->qe_next);
910 buf = &sc->sc_txbufs[ve->qe_index];
920 virtio_free_chain(ve);
937 vioif_tx_inline(struct vioif_softc *sc, struct vq_entry *ve, mblk_t *mp,
941 buf = &sc->sc_txbufs[ve->qe_index];
949 virtio_ve_add_indirect_buf(ve,
974 vioif_tx_external(struct vioif_softc *sc, struct vq_entry *ve, mblk_t *mp,
984 buf = &sc->sc_txbufs[ve->qe_index];
1027 if (virtio_ve_indirect_available(ve) < ncookies) {
1038 virtio_ve_add_cookie(ve, buf->tb_external_mapping[i].vbm_dmah,
1066 struct vq_entry *ve;
1087 ve = vq_alloc_entry(sc->sc_tx_vq);
1089 if (!ve) {
1094 buf = &sc->sc_txbufs[ve->qe_index];
1134 virtio_ve_add_indirect_buf(ve,
1151 vioif_tx_inline(sc, ve, mp, msg_size);
1154 ret = vioif_tx_external(sc, ve, mp, msg_size);
1159 virtio_push_chain(ve, B_TRUE);
1168 vq_free_entry(sc->sc_tx_vq, ve);