Home
last modified time | relevance | path

Searched refs:last_used_idx (Results 1 – 4 of 4) sorted by relevance

/drivers/virtio/
Dvirtio_ring.c81 u16 last_used_idx; member
516 return vq->last_used_idx != vq->vring.used->idx; in more_used()
558 last_used = (vq->last_used_idx & (vq->vring.num - 1)); in virtqueue_get_buf()
574 vq->last_used_idx++; in virtqueue_get_buf()
579 vring_used_event(&vq->vring) = vq->last_used_idx; in virtqueue_get_buf()
632 vring_used_event(&vq->vring) = vq->last_used_idx; in virtqueue_enable_cb()
671 bufs = (u16)(vq->vring.avail->idx - vq->last_used_idx) * 3 / 4; in virtqueue_enable_cb_delayed()
672 vring_used_event(&vq->vring) = vq->last_used_idx + bufs; in virtqueue_enable_cb_delayed()
674 if (unlikely((u16)(vq->vring.used->idx - vq->last_used_idx) > bufs)) { in virtqueue_enable_cb_delayed()
770 vq->last_used_idx = 0; in vring_new_virtqueue()
/drivers/vhost/
Dvhost.c176 vq->last_used_idx = 0; in vhost_vq_reset()
1020 return get_user(vq->last_used_idx, &vq->used->idx); in vhost_init_used()
1313 used = &vq->used->ring[vq->last_used_idx % vq->num]; in vhost_add_used()
1324 if (__put_user(vq->last_used_idx + 1, &vq->used->idx)) { in vhost_add_used()
1343 vq->last_used_idx++; in vhost_add_used()
1348 if (unlikely(vq->last_used_idx == vq->signalled_used)) in vhost_add_used()
1361 start = vq->last_used_idx % vq->num; in __vhost_add_used_n()
1376 old = vq->last_used_idx; in __vhost_add_used_n()
1377 new = (vq->last_used_idx += count); in __vhost_add_used_n()
1394 start = vq->last_used_idx % vq->num; in vhost_add_used_n()
[all …]
Dvringh.c400 used_idx = vrh->last_used_idx + vrh->completed; in __vringh_complete()
472 vrh->last_used_idx + vrh->completed, in __vringh_need_notify()
473 vrh->last_used_idx); in __vringh_need_notify()
475 vrh->last_used_idx += vrh->completed; in __vringh_need_notify()
596 vrh->last_used_idx = 0; in vringh_init_user()
855 vrh->last_used_idx = 0; in vringh_init_kern()
Dvhost.h86 u16 last_used_idx; member