Lines Matching refs:vq
75 vq_ring_ready(struct vqueue_info *vq)
78 return (vq->vq_flags & VQ_ALLOC);
82 vq_has_descs(struct vqueue_info *vq)
85 return (vq_ring_ready(vq) && vq->vq_last_avail !=
86 be16toh(vq->vq_avail->idx));
124 vq_getchain(uint32_t offs, struct vqueue_info *vq,
132 idx = vq->vq_last_avail;
133 ndesc = (be16toh(vq->vq_avail->idx) - idx);
137 head = be16toh(vq->vq_avail->ring[idx & (vq->vq_qsize - 1)]);
141 vdir = &vq->vq_desc[next];
170 vq_relchain(struct vqueue_info *vq, struct iovec *iov, int n, uint32_t iolen)
177 mask = vq->vq_qsize - 1;
178 vu = vq->vq_used;
179 head = be16toh(vq->vq_avail->ring[vq->vq_last_avail++ & mask]);