Home
last modified time | relevance | path

Searched refs:used_idx (Results 1 – 10 of 10) sorted by relevance

/qemu/subprojects/libvduse/
H A Dlibvduse.c73 uint16_t used_idx; member
100 uint16_t used_idx; member
233 vq->used_idx = le16toh(vq->vring.used->idx); in vduse_queue_check_inflights()
238 if (unlikely(vq->log->inflight.used_idx != vq->used_idx)) { in vduse_queue_check_inflights()
247 vq->log->inflight.used_idx = vq->used_idx; in vduse_queue_check_inflights()
256 vq->shadow_avail_idx = vq->last_avail_idx = vq->inuse + vq->used_idx; in vduse_queue_check_inflights()
309 vq->log->inflight.used_idx = vq->used_idx; in vduse_queue_inflight_post_put()
561 new = vq->signalled_used = vq->used_idx; in vduse_queue_should_notify()
812 idx = (idx + vq->used_idx) % vq->vring.num; in vduse_queue_fill()
822 vq->used_idx = val; in vring_used_idx_set()
[all …]
/qemu/pc-bios/s390-ccw/
H A Dvirtio.c128 vr->used_idx = 0; in vring_init()
163 if (vr->used->idx == vr->used_idx) { in vr_poll()
169 vr->used_idx = vr->used->idx; in vr_poll()
H A Dvirtio.h102 int used_idx; member
/qemu/subprojects/libvhost-user/
H A Dlibvhost-user.c1227 vq->used_idx = le16toh(vq->vring.used->idx); in vu_set_vring_addr_exec()
1229 if (vq->last_avail_idx != vq->used_idx) { in vu_set_vring_addr_exec()
1234 vq->last_avail_idx, vq->used_idx, in vu_set_vring_addr_exec()
1344 vq->used_idx = le16toh(vq->vring.used->idx); in vu_check_queue_inflights()
1349 if (unlikely(vq->inflight->used_idx != vq->used_idx)) { in vu_check_queue_inflights()
1354 vq->inflight->used_idx = vq->used_idx; in vu_check_queue_inflights()
2592 new = vq->signalled_used = vq->used_idx; in vring_notify()
2911 vq->inflight->used_idx = vq->used_idx; in vu_queue_inflight_post_put()
3086 idx = (idx + vq->used_idx) % vq->vring.num; in vu_queue_fill()
3101 vq->used_idx = val; in vring_used_idx_set()
[all …]
H A Dlibvhost-user.h327 uint16_t used_idx; member
355 uint16_t used_idx; member
/qemu/hw/virtio/
H A Dvirtio.c133 uint16_t used_idx; member
454 vq->used_idx = val; in vring_used_idx_set()
893 head = vq->used_idx + idx; in virtqueue_packed_fill_desc()
945 old = vq->used_idx; in virtqueue_split_flush()
977 vq->used_idx += ndescs; in virtqueue_packed_flush()
978 if (vq->used_idx >= vq->vring.num) { in virtqueue_packed_flush()
979 vq->used_idx -= vq->vring.num; in virtqueue_packed_flush()
2089 vdev->vq[i].used_idx = 0; in __virtio_queue_reset()
3368 used = vdev->vq[n].used_idx; in virtio_queue_packed_get_last_avail_idx()
3398 vq->used_idx = idx & 0x7fff; in virtio_queue_packed_set_last_avail_idx()
[all …]
H A Dvhost-shadow-virtqueue.c363 uint16_t *used_idx = &svq->vring.used->idx; in vhost_svq_more_used() local
368 svq->shadow_used_idx = cpu_to_le16(*(volatile uint16_t *)used_idx); in vhost_svq_more_used()
H A Dvirtio-hmp-cmds.c239 monitor_printf(mon, " used_idx: %d\n", s->used_idx); in hmp_virtio_queue_status()
/qemu/docs/interop/
H A Dvhost-user.rst799 uint16_t used_idx;
831 #. Set ``used_idx`` to the ``idx`` value of used ring
835 #. If the value of ``used_idx`` does not match the ``idx`` value of
839 a. Subtract the value of ``used_idx`` from the ``idx`` value of
845 #. Set ``used_idx`` to the ``idx`` value of used ring
909 uint16_t used_idx;
969 #. Increase ``used_idx`` by the size of the batch and update
978 to ``free_head``, ``used_idx``, ``used_wrap_counter``
982 #. If ``used_idx`` does not match ``old_used_idx`` (means the
994 ``used_idx``, ``used_wrap_counter``
[all …]
/qemu/qapi/
H A Dvirtio.json523 # @used-idx: VirtQueue used_idx