Lines Matching defs:vsc
85 struct virtio_softc *vsc = (struct virtio_softc *)parent;
89 vsc->sc_vqs = &sc->sc_vq;
90 vsc->sc_nvqs = 1;
91 if (vsc->sc_child != NULL)
93 vsc->sc_child = self;
94 vsc->sc_ipl = IPL_NET;
95 sc->sc_virtio = vsc;
97 if (virtio_negotiate_features(vsc, NULL) != 0)
129 if (virtio_alloc_vq(vsc, &sc->sc_vq, 0, 1, "Entropy request") != 0) {
135 virtio_start_vq_intr(vsc, &sc->sc_vq);
140 if (virtio_attach_finish(vsc, va) != 0)
144 bus_dmamap_destroy(vsc->sc_dmat, sc->sc_dmamap);
146 vsc->sc_child = VIRTIO_CHILD_ERROR;
157 struct virtio_softc *vsc = vq->vq_owner;
158 struct viornd_softc *sc = (struct viornd_softc *)vsc->sc_child;
161 if (virtio_dequeue(vsc, vq, &slot, &len) != 0)
163 bus_dmamap_sync(vsc->sc_dmat, sc->sc_dmamap, 0, VIORND_BUFSIZE,
189 struct virtio_softc *vsc = sc->sc_virtio;
193 bus_dmamap_sync(vsc->sc_dmat, sc->sc_dmamap, 0, VIORND_BUFSIZE,
200 virtio_enqueue_commit(vsc, vq, slot, 1);