Lines Matching refs:last_avail_idx
378 vq->last_avail_idx = 0; in vhost_vq_reset()
1979 vq->last_avail_idx = s.num & 0xffff; in vhost_vring_ioctl()
1986 vq->last_avail_idx = s.num; in vhost_vring_ioctl()
1989 vq->avail_idx = vq->last_avail_idx; in vhost_vring_ioctl()
1994 s.num = (u32)vq->last_avail_idx | ((u32)vq->last_used_idx << 16); in vhost_vring_ioctl()
1996 s.num = vq->last_avail_idx; in vhost_vring_ioctl()
2569 u16 last_avail_idx; in vhost_get_vq_desc() local
2575 last_avail_idx = vq->last_avail_idx; in vhost_get_vq_desc()
2577 if (vq->avail_idx == vq->last_avail_idx) { in vhost_get_vq_desc()
2585 if (unlikely((u16)(vq->avail_idx - last_avail_idx) > vq->num)) { in vhost_get_vq_desc()
2587 last_avail_idx, vq->avail_idx); in vhost_get_vq_desc()
2594 if (vq->avail_idx == last_avail_idx) in vhost_get_vq_desc()
2605 if (unlikely(vhost_get_avail_head(vq, &ring_head, last_avail_idx))) { in vhost_get_vq_desc()
2607 last_avail_idx, in vhost_get_vq_desc()
2608 &vq->avail->ring[last_avail_idx % vq->num]); in vhost_get_vq_desc()
2694 vq->last_avail_idx++; in vhost_get_vq_desc()
2706 vq->last_avail_idx -= n; in vhost_discard_vq_desc()
2803 unlikely(vq->avail_idx == vq->last_avail_idx)) in vhost_notify()
2864 if (vq->avail_idx != vq->last_avail_idx) in vhost_vq_avail_empty()
2872 if (vq->avail_idx != vq->last_avail_idx) { in vhost_vq_avail_empty()
2921 if (vq->avail_idx != vq->last_avail_idx) { in vhost_enable_notify()