Lines Matching defs:vq
143 struct vqueue_info *vq;
158 vq = &sc->vs_queues[0];
159 if (!vq_has_descs(vq)) {
170 if (!vq_ring_ready(vq))
173 vq->vq_save_used = be16toh(vq->vq_used->idx);
176 if (!vq_has_descs(vq)) {
186 n = vq_getchain(sc->beri_mem_offset, vq, iov,
210 vq_relchain(vq, iov, n, iolen);
344 struct vqueue_info *vq;
350 vq = &sc->vs_queues[sc->vs_curq];
351 vq->vq_qsize = DESC_COUNT;
355 vq->vq_pfn = pfn;
357 size = vring_size(vq->vq_qsize, VRING_ALIGN);
362 vq->vq_desc = (struct vring_desc *)base;
363 base += vq->vq_qsize * sizeof(struct vring_desc);
366 vq->vq_avail = (struct vring_avail *)base;
367 base += (2 + vq->vq_qsize + 1) * sizeof(uint16_t);
373 vq->vq_used = (struct vring_used *)base;
376 vq->vq_flags = VQ_ALLOC;
377 vq->vq_last_avail = 0;
383 vtbe_proc_rx(struct vtbe_softc *sc, struct vqueue_info *vq)
396 n = vq_getchain(sc->beri_mem_offset, vq, iov,
433 vq_relchain(vq, iov, n, iolen + sc->hdrsize);
439 struct vqueue_info *vq;
443 vq = &sc->vs_queues[1];
444 if (!vq_ring_ready(vq))
448 vq->vq_save_used = be16toh(vq->vq_used->idx);
450 while (vq_has_descs(vq)) {
451 vtbe_proc_rx(sc, vq);