Home
last modified time | relevance | path

Searched refs:avail_idx (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/tools/virtio/ringtest/
H A Dvirtio_ring_0_9.c42 unsigned short avail_idx; member
78 guest.avail_idx = 0; in alloc_ring()
111 head = (ring_size - 1) & (guest.avail_idx++); in add_inbuf()
135 avail = guest.avail_idx++; in add_inbuf()
142 avail = (ring_size - 1) & (guest.avail_idx++); in add_inbuf()
148 ring.avail->idx = guest.avail_idx; in add_inbuf()
234 guest.avail_idx, in kick_available()
237 guest.kicked_avail_idx = guest.avail_idx; in kick_available()
H A Dring.c60 unsigned avail_idx; member
92 guest.avail_idx = 0; in alloc_ring()
120 head = (ring_size - 1) & (guest.avail_idx++); in add_inbuf()
195 guest.avail_idx, in kick_available()
198 guest.kicked_avail_idx = guest.avail_idx; in kick_available()
/openbmc/linux/drivers/vhost/
H A Dvhost.c379 vq->avail_idx = 0; in vhost_vq_reset()
1989 vq->avail_idx = vq->last_avail_idx; in vhost_vring_ioctl()
2570 __virtio16 avail_idx; in vhost_get_vq_desc() local
2583 vq->avail_idx = vhost16_to_cpu(vq, avail_idx); 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()
2861 __virtio16 avail_idx; in vhost_vq_avail_empty() local
2864 if (vq->avail_idx != vq->last_avail_idx) in vhost_vq_avail_empty()
2871 vq->avail_idx = vhost16_to_cpu(vq, avail_idx); in vhost_vq_avail_empty()
2889 __virtio16 avail_idx; in vhost_enable_notify() local
[all …]
H A Dvhost.h108 u16 avail_idx; member
H A Dvringh.c43 u16 avail_idx, i, head; in __vringh_get_head() local
46 err = getu16(vrh, &avail_idx, &vrh->vring.avail->idx); in __vringh_get_head()
53 if (*last_avail_idx == avail_idx) in __vringh_get_head()
/openbmc/linux/drivers/vdpa/pds/
H A Dvdpa_dev.h24 u16 avail_idx; member
H A Dcmds.c140 .vdpa_vq_init.avail_index = cpu_to_le16(vq_info->avail_idx ^ invert_idx), in pds_vdpa_cmd_init_vq()
181 vq_info->avail_idx = le16_to_cpu(comp.vdpa_vq_reset.avail_index) ^ invert_idx; in pds_vdpa_cmd_reset_vq()
H A Dvdpa_dev.c215 pdsv->vqs[qid].avail_idx = avail; in pds_vdpa_set_vq_state()
236 avail = pdsv->vqs[qid].avail_idx; in pds_vdpa_get_vq_state()
470 pdsv->vqs[i].avail_idx = 0; in pds_vdpa_set_status()
H A Ddebugfs.c248 seq_printf(seq, "avail_idx: %d\n", vq->avail_idx); in vq_show()
/openbmc/qemu/hw/virtio/
H A Dvhost-shadow-virtqueue.c180 unsigned avail_idx; in vhost_svq_add_split() local
209 avail_idx = svq->shadow_avail_idx & (svq->vring.num - 1); in vhost_svq_add_split()
210 avail->ring[avail_idx] = cpu_to_le16(*head); in vhost_svq_add_split()
H A Dvirtio.c1174 uint16_t avail_idx, num_heads; in virtqueue_num_heads() local
1177 avail_idx = (vq->shadow_avail_idx != idx) ? vq->shadow_avail_idx in virtqueue_num_heads()
1179 num_heads = avail_idx - idx; in virtqueue_num_heads()
/openbmc/linux/tools/virtio/
H A Dvringh_test.c113 u16 avail_idx, i; in vringh_get_head() local
116 err = get_user(avail_idx, &vrh->vring.avail->idx); in vringh_get_head()
120 if (vrh->last_avail_idx == avail_idx) in vringh_get_head()
/openbmc/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c119 u16 avail_idx; member
887 MLX5_SET(virtio_net_q_object, obj_context, hw_available_index, mvq->avail_idx); in create_virtqueue()
1379 mvq->avail_idx = attr.available_index; in suspend_vq()
2251 mvq->avail_idx = state->split.avail_index; in mlx5_vdpa_set_vq_state()
2669 mvq->avail_idx = ri->avail_index; in restore_channels_info()