Lines Matching refs:vq
72 vq_ring_ready(struct vqueue_info *vq)
75 return (vq->vq_flags & VQ_ALLOC);
79 vq_has_descs(struct vqueue_info *vq)
82 return (vq_ring_ready(vq) && vq->vq_last_avail !=
83 be16toh(vq->vq_avail->idx));
120 vq_getchain(uint32_t offs, struct vqueue_info *vq,
128 idx = vq->vq_last_avail;
129 ndesc = (be16toh(vq->vq_avail->idx) - idx);
133 head = be16toh(vq->vq_avail->ring[idx & (vq->vq_qsize - 1)]);
137 vdir = &vq->vq_desc[next];
166 vq_relchain(struct vqueue_info *vq, struct iovec *iov, int n, uint32_t iolen)
173 mask = vq->vq_qsize - 1;
174 vu = vq->vq_used;
175 head = be16toh(vq->vq_avail->ring[vq->vq_last_avail++ & mask]);