Lines Matching refs:desc_state
113 struct vring_desc_state desc_state[]; member
391 vq->desc_state[head].data = data; in virtqueue_add()
393 vq->desc_state[head].indir_desc = desc; in virtqueue_add()
395 vq->desc_state[head].indir_desc = ctx; in virtqueue_add()
635 vq->desc_state[head].data = NULL; in detach_buf()
654 struct vring_desc *indir_desc = vq->desc_state[head].indir_desc; in detach_buf()
671 vq->desc_state[head].indir_desc = NULL; in detach_buf()
673 *ctx = vq->desc_state[head].indir_desc; in detach_buf()
730 if (unlikely(!vq->desc_state[i].data)) { in virtqueue_get_buf_ctx()
736 ret = vq->desc_state[i].data; in virtqueue_get_buf_ctx()
918 if (!vq->desc_state[i].data) in virtqueue_detach_unused_buf()
921 buf = vq->desc_state[i].data; in virtqueue_detach_unused_buf()
1010 memset(vq->desc_state, 0, vring.num * sizeof(struct vring_desc_state)); in __vring_new_virtqueue()