Searched refs:avail_idx (Results 1 – 11 of 11) sorted by relevance
/linux-6.6.21/tools/virtio/ringtest/ |
D | virtio_ring_0_9.c | 42 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()
|
D | ring.c | 60 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/ |
D | vhost.c | 371 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 …]
|
D | vhost.h | 106 u16 avail_idx; member
|
D | vringh.c | 43 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/ |
D | vdpa_dev.h | 24 u16 avail_idx; member
|
D | cmds.c | 140 .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()
|
D | vdpa_dev.c | 215 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()
|
D | debugfs.c | 248 seq_printf(seq, "avail_idx: %d\n", vq->avail_idx); in vq_show()
|
/linux-6.6.21/tools/virtio/ |
D | vringh_test.c | 113 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/ |
D | mlx5_vnet.c | 119 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()
|