Lines Matching defs:vq
149 vtblk_proc(struct beri_vtblk_softc *sc, struct vqueue_info *vq)
162 n = vq_getchain(sc->beri_mem_offset, vq, iov,
210 vq_relchain(vq, iov, n, 1);
277 struct vqueue_info *vq;
281 vq = &sc->vs_queues[0];
282 if (!vq_ring_ready(vq))
294 vq = &sc->vs_queues[queue];
295 vq->vq_save_used = be16toh(vq->vq_used->idx);
296 while (vq_has_descs(vq))
297 vtblk_proc(sc, vq);
300 if ((be16toh(vq->vq_avail->flags) & VRING_AVAIL_F_NO_INTERRUPT) == 0) {
312 struct vqueue_info *vq;
318 vq = &sc->vs_queues[0];
319 vq->vq_qsize = NUM_DESCS;
323 vq->vq_pfn = pfn;
325 size = vring_size(vq->vq_qsize, VRING_ALIGN);
330 vq->vq_desc = (struct vring_desc *)base;
331 base += vq->vq_qsize * sizeof(struct vring_desc);
334 vq->vq_avail = (struct vring_avail *)base;
335 base += (2 + vq->vq_qsize + 1) * sizeof(uint16_t);
341 vq->vq_used = (struct vring_used *)base;
344 vq->vq_flags = VQ_ALLOC;
345 vq->vq_last_avail = 0;