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));
123 vq_getchain(uint32_t offs, struct vqueue_info *vq,
131 idx = vq->vq_last_avail;
132 ndesc = (be16toh(vq->vq_avail->idx) - idx);
136 head = be16toh(vq->vq_avail->ring[idx & (vq->vq_qsize - 1)]);
140 vdir = &vq->vq_desc[next];
169 vq_relchain(struct vqueue_info *vq, struct iovec *iov, int n, uint32_t iolen)
176 mask = vq->vq_qsize - 1;
177 vu = vq->vq_used;
178 head = be16toh(vq->vq_avail->ring[vq->vq_last_avail++ & mask]);