Home
last modified time | relevance | path

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

/linux-6.6.21/tools/virtio/ringtest/
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()
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()
/linux-6.6.21/drivers/vhost/
Dvhost.c371 vq->avail_idx = 0; in vhost_vq_reset()
1229 return vhost_put_user(vq, cpu_to_vhost16(vq, vq->avail_idx), in vhost_put_avail_event()
1921 vq->avail_idx = vq->last_avail_idx; in vhost_vring_ioctl()
2502 __virtio16 avail_idx; in vhost_get_vq_desc() local
2509 if (vq->avail_idx == vq->last_avail_idx) { in vhost_get_vq_desc()
2510 if (unlikely(vhost_get_avail_idx(vq, &avail_idx))) { in vhost_get_vq_desc()
2515 vq->avail_idx = vhost16_to_cpu(vq, avail_idx); in vhost_get_vq_desc()
2517 if (unlikely((u16)(vq->avail_idx - last_avail_idx) > vq->num)) { in vhost_get_vq_desc()
2519 last_avail_idx, vq->avail_idx); in vhost_get_vq_desc()
2526 if (vq->avail_idx == last_avail_idx) in vhost_get_vq_desc()
[all …]
Dvhost.h106 u16 avail_idx; member
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()
/linux-6.6.21/drivers/vdpa/pds/
Dvdpa_dev.h24 u16 avail_idx; member
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()
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()
Ddebugfs.c248 seq_printf(seq, "avail_idx: %d\n", vq->avail_idx); in vq_show()
/linux-6.6.21/tools/virtio/
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()
/linux-6.6.21/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c119 u16 avail_idx; member
889 MLX5_SET(virtio_net_q_object, obj_context, hw_available_index, mvq->avail_idx); in create_virtqueue()
1381 mvq->avail_idx = attr.available_index; in suspend_vq()
2246 mvq->avail_idx = state->split.avail_index; in mlx5_vdpa_set_vq_state()
2664 mvq->avail_idx = ri->avail_index; in restore_channels_info()