Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/virtio/ringtest/
Dvirtio_ring_0_9.c43 unsigned short last_used_idx; member
80 guest.last_used_idx = 0; in alloc_ring()
159 head = (ring_size - 1) & guest.last_used_idx; in get_buf()
161 if ((index ^ guest.last_used_idx ^ 0x8000) & ~(ring_size - 1)) in get_buf()
167 if (ring.used->idx == guest.last_used_idx) in get_buf()
172 head = (ring_size - 1) & guest.last_used_idx; in get_buf()
175 head = (ring_size - 1) & guest.last_used_idx; in get_buf()
193 guest.last_used_idx++; in get_buf()
199 unsigned short last_used_idx = guest.last_used_idx; in used_empty() local
201 unsigned short head = last_used_idx & (ring_size - 1); in used_empty()
[all …]
Dring.c61 unsigned last_used_idx; member
94 guest.last_used_idx = 0; in alloc_ring()
145 unsigned head = (ring_size - 1) & guest.last_used_idx; in get_buf()
160 guest.last_used_idx++; in get_buf()
166 unsigned head = (ring_size - 1) & guest.last_used_idx; in used_empty()
180 event->call_index = guest.last_used_idx; in enable_call()
/kernel/linux/linux-5.10/drivers/virtio/
Dvirtio_ring.c114 u16 last_used_idx; member
674 return vq->last_used_idx != virtio16_to_cpu(vq->vq.vdev, in more_used_split()
703 last_used = (vq->last_used_idx & (vq->split.vring.num - 1)); in virtqueue_get_buf_ctx_split()
721 vq->last_used_idx++; in virtqueue_get_buf_ctx_split()
728 cpu_to_virtio16(_vq->vdev, vq->last_used_idx)); in virtqueue_get_buf_ctx_split()
752 u16 last_used_idx; in virtqueue_enable_cb_prepare_split() local
769 last_used_idx = vq->last_used_idx); in virtqueue_enable_cb_prepare_split()
771 return last_used_idx; in virtqueue_enable_cb_prepare_split()
774 static bool virtqueue_poll_split(struct virtqueue *_vq, unsigned last_used_idx) in virtqueue_poll_split() argument
778 return (u16)last_used_idx != virtio16_to_cpu(_vq->vdev, in virtqueue_poll_split()
[all …]
/kernel/linux/linux-5.10/drivers/vhost/
Dvringh.c428 used_idx = vrh->last_used_idx + vrh->completed; in __vringh_complete()
502 vrh->last_used_idx + vrh->completed, in __vringh_need_notify()
503 vrh->last_used_idx); in __vringh_need_notify()
505 vrh->last_used_idx += vrh->completed; in __vringh_need_notify()
639 vrh->last_used_idx = 0; in vringh_init_user()
910 vrh->last_used_idx = 0; in vringh_init_kern()
Dvhost.c322 vq->last_used_idx = 0; in vhost_vq_reset()
976 return vhost_put_user(vq, cpu_to_vhost16(vq, vq->last_used_idx), in vhost_put_used_idx()
2004 __virtio16 last_used_idx; in vhost_vq_init_access() local
2022 r = vhost_get_used_idx(vq, &last_used_idx); in vhost_vq_init_access()
2028 vq->last_used_idx = vhost16_to_cpu(vq, last_used_idx); in vhost_vq_init_access()
2368 start = vq->last_used_idx & (vq->num - 1); in __vhost_add_used_n()
2381 old = vq->last_used_idx; in __vhost_add_used_n()
2382 new = (vq->last_used_idx += count); in __vhost_add_used_n()
2399 start = vq->last_used_idx & (vq->num - 1); in vhost_add_used_n()
2453 new = vq->signalled_used = vq->last_used_idx; in vhost_notify()
Dvhost.h97 u16 last_used_idx; member
/kernel/linux/linux-5.10/include/linux/
Dvringh.h38 u16 last_used_idx; member