Lines Matching refs:avail
206 unsigned int i, avail, uninitialized_var(prev); in virtqueue_add_buf() local
279 avail = (vq->vring.avail->idx & (vq->vring.num-1)); in virtqueue_add_buf()
280 vq->vring.avail->ring[avail] = head; in virtqueue_add_buf()
285 vq->vring.avail->idx++; in virtqueue_add_buf()
322 old = vq->vring.avail->idx - vq->num_added; in virtqueue_kick_prepare()
323 new = vq->vring.avail->idx; in virtqueue_kick_prepare()
466 if (!(vq->vring.avail->flags & VRING_AVAIL_F_NO_INTERRUPT)) { in virtqueue_get_buf()
493 vq->vring.avail->flags |= VRING_AVAIL_F_NO_INTERRUPT; in virtqueue_disable_cb()
521 vq->vring.avail->flags &= ~VRING_AVAIL_F_NO_INTERRUPT; in virtqueue_enable_cb_prepare()
589 vq->vring.avail->flags &= ~VRING_AVAIL_F_NO_INTERRUPT; in virtqueue_enable_cb_delayed()
591 bufs = (u16)(vq->vring.avail->idx - vq->last_used_idx) * 3 / 4; in virtqueue_enable_cb_delayed()
626 vq->vring.avail->idx--; in virtqueue_detach_unused_buf()
700 vq->vring.avail->flags |= VRING_AVAIL_F_NO_INTERRUPT; in vring_new_virtqueue()