Lines Matching refs:vq
147 struct vqueue_info *vq;
162 vq = &sc->vs_queues[0];
163 if (!vq_has_descs(vq)) {
174 if (!vq_ring_ready(vq))
177 vq->vq_save_used = be16toh(vq->vq_used->idx);
180 if (!vq_has_descs(vq)) {
190 n = vq_getchain(sc->beri_mem_offset, vq, iov,
214 vq_relchain(vq, iov, n, iolen);
348 struct vqueue_info *vq;
354 vq = &sc->vs_queues[sc->vs_curq];
355 vq->vq_qsize = DESC_COUNT;
359 vq->vq_pfn = pfn;
361 size = vring_size(vq->vq_qsize, VRING_ALIGN);
366 vq->vq_desc = (struct vring_desc *)base;
367 base += vq->vq_qsize * sizeof(struct vring_desc);
370 vq->vq_avail = (struct vring_avail *)base;
371 base += (2 + vq->vq_qsize + 1) * sizeof(uint16_t);
377 vq->vq_used = (struct vring_used *)base;
380 vq->vq_flags = VQ_ALLOC;
381 vq->vq_last_avail = 0;
387 vtbe_proc_rx(struct vtbe_softc *sc, struct vqueue_info *vq)
400 n = vq_getchain(sc->beri_mem_offset, vq, iov,
437 vq_relchain(vq, iov, n, iolen + sc->hdrsize);
443 struct vqueue_info *vq;
447 vq = &sc->vs_queues[1];
448 if (!vq_ring_ready(vq))
452 vq->vq_save_used = be16toh(vq->vq_used->idx);
454 while (vq_has_descs(vq)) {
455 vtbe_proc_rx(sc, vq);