/openbmc/linux/tools/virtio/ringtest/ |
H A D | virtio_ring_0_9.c | 58 unsigned short used_idx; member 87 host.used_idx = 0; in alloc_ring() 260 unsigned head = host.used_idx; in avail_empty() 272 unsigned used_idx = host.used_idx; in use_buf() local 283 used_idx &= ring_size - 1; in use_buf() 286 if (used_idx == ring.avail->idx) in use_buf() 292 used_idx &= ring_size - 1; in use_buf() 294 head = used_idx; in use_buf() 313 host.used_idx++; in use_buf() 314 ring.used->idx = host.used_idx; in use_buf() [all …]
|
H A D | ring.c | 71 unsigned used_idx; member 95 host.used_idx = 0; in alloc_ring() 213 event->kick_index = host.used_idx; in enable_kick() 221 unsigned head = (ring_size - 1) & host.used_idx; in avail_empty() 228 unsigned head = (ring_size - 1) & host.used_idx; in use_buf() 250 host.used_idx++; in use_buf() 263 host.used_idx, in call_used() 266 host.called_used_idx = host.used_idx; in call_used()
|
/openbmc/qemu/subprojects/libvduse/ |
H A D | libvduse.c | 73 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 …]
|
/openbmc/qemu/pc-bios/s390-ccw/ |
H A D | virtio.c | 128 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 D | virtio.h | 102 int used_idx; member
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio.c | 133 uint16_t used_idx; member 453 vq->used_idx = val; in vring_used_idx_set() 986 head = vq->used_idx + idx; in virtqueue_packed_fill_desc() 1040 old = vq->used_idx; in virtqueue_split_flush() 1072 vq->used_idx += ndescs; in virtqueue_packed_flush() 1084 uint16_t old = vq->used_idx; in virtqueue_ordered_flush() 1128 vq->used_idx += ndescs; in virtqueue_ordered_flush() 2274 vdev->vq[i].used_idx = 0; in __virtio_queue_reset() 3585 used = vdev->vq[n].used_idx; in virtio_queue_packed_get_last_avail_idx() 3615 vq->used_idx = idx & 0x7fff; in virtio_queue_packed_set_last_avail_idx() [all …]
|
H A D | vhost-shadow-virtqueue.c | 363 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 D | virtio-hmp-cmds.c | 239 monitor_printf(mon, " used_idx: %d\n", s->used_idx); in hmp_virtio_queue_status()
|
/openbmc/linux/drivers/vdpa/pds/ |
H A D | vdpa_dev.h | 25 u16 used_idx; member
|
H A D | cmds.c | 141 .vdpa_vq_init.used_index = cpu_to_le16(vq_info->used_idx ^ invert_idx), in pds_vdpa_cmd_init_vq() 182 vq_info->used_idx = le16_to_cpu(comp.vdpa_vq_reset.used_index) ^ invert_idx; in pds_vdpa_cmd_reset_vq()
|
H A D | vdpa_dev.c | 216 pdsv->vqs[qid].used_idx = used; in pds_vdpa_set_vq_state() 237 used = pdsv->vqs[qid].used_idx; in pds_vdpa_get_vq_state() 471 pdsv->vqs[i].used_idx = 0; in pds_vdpa_set_status()
|
H A D | debugfs.c | 249 seq_printf(seq, "used_idx: %d\n", vq->used_idx); in vq_show()
|
/openbmc/qemu/subprojects/libvhost-user/ |
H A D | libvhost-user.c | 1233 vq->used_idx = le16toh(vq->vring.used->idx); in vu_set_vring_addr_exec() 1235 if (vq->last_avail_idx != vq->used_idx) { in vu_set_vring_addr_exec() 1240 vq->last_avail_idx, vq->used_idx, in vu_set_vring_addr_exec() 1350 vq->used_idx = le16toh(vq->vring.used->idx); in vu_check_queue_inflights() 1355 if (unlikely(vq->inflight->used_idx != vq->used_idx)) { in vu_check_queue_inflights() 1360 vq->inflight->used_idx = vq->used_idx; in vu_check_queue_inflights() 2609 new = vq->signalled_used = vq->used_idx; in vring_notify() 2928 vq->inflight->used_idx = vq->used_idx; in vu_queue_inflight_post_put() 3103 idx = (idx + vq->used_idx) % vq->vring.num; in vu_queue_fill() 3118 vq->used_idx = val; in vring_used_idx_set() [all …]
|
H A D | libvhost-user.h | 327 uint16_t used_idx; member 355 uint16_t used_idx; member
|
/openbmc/linux/drivers/virtio/ |
H A D | virtio_ring.c | 1798 u16 used_idx; in virtqueue_poll_packed() local 1801 used_idx = off_wrap & ~(1 << VRING_PACKED_EVENT_F_WRAP_CTR); in virtqueue_poll_packed() 1803 return is_used_desc_packed(vq, used_idx, wrap_counter); in virtqueue_poll_packed() 1809 u16 used_idx, wrap_counter, last_used_idx; in virtqueue_enable_cb_delayed_packed() local 1825 used_idx = packed_last_used(last_used_idx) + bufs; in virtqueue_enable_cb_delayed_packed() 1826 if (used_idx >= vq->packed.vring.num) { in virtqueue_enable_cb_delayed_packed() 1827 used_idx -= vq->packed.vring.num; in virtqueue_enable_cb_delayed_packed() 1831 vq->packed.vring.driver->off_wrap = cpu_to_le16(used_idx | in virtqueue_enable_cb_delayed_packed() 1857 used_idx = packed_last_used(last_used_idx); in virtqueue_enable_cb_delayed_packed() 1858 if (is_used_desc_packed(vq, used_idx, wrap_counter)) { in virtqueue_enable_cb_delayed_packed()
|
/openbmc/linux/drivers/vhost/ |
H A D | vringh.c | 459 u16 used_idx, off; in __vringh_complete() local 462 used_idx = vrh->last_used_idx + vrh->completed; in __vringh_complete() 464 off = used_idx % vrh->vring.num; in __vringh_complete() 485 err = putu16(vrh, &vrh->vring.used->idx, used_idx + num_used); in __vringh_complete()
|
/openbmc/qemu/docs/interop/ |
H A D | vhost-user.rst | 799 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 …]
|
/openbmc/linux/drivers/vdpa/mlx5/net/ |
H A D | mlx5_vnet.c | 120 u16 used_idx; member 888 MLX5_SET(virtio_net_q_object, obj_context, hw_used_index, mvq->used_idx); in create_virtqueue() 1380 mvq->used_idx = attr.used_index; in suspend_vq() 2250 mvq->used_idx = state->split.avail_index; in mlx5_vdpa_set_vq_state() 2281 state->split.avail_index = mvq->used_idx; in mlx5_vdpa_get_vq_state() 2670 mvq->used_idx = ri->used_index; in restore_channels_info()
|
/openbmc/qemu/qapi/ |
H A D | virtio.json | 529 # @used-idx: VirtQueue used_idx
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_switch.c | 4914 DECLARE_BITMAP(used_idx, ICE_MAX_FV_WORDS); in ice_find_free_recp_res_idx() 4918 bitmap_zero(used_idx, ICE_MAX_FV_WORDS); in ice_find_free_recp_res_idx() 4939 bitmap_or(used_idx, used_idx, in ice_find_free_recp_res_idx() 4943 bitmap_xor(free_idx, used_idx, possible_idx, ICE_MAX_FV_WORDS); in ice_find_free_recp_res_idx()
|