Searched refs:avail_idx (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.10/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-v5.10/drivers/vhost/ |
D | vhost.c | 321 vq->avail_idx = 0; in vhost_vq_reset() 948 return vhost_put_user(vq, cpu_to_vhost16(vq, vq->avail_idx), in vhost_put_avail_event() 1623 vq->avail_idx = vq->last_avail_idx; in vhost_vring_ioctl() 2201 __virtio16 avail_idx; in vhost_get_vq_desc() local 2208 if (vq->avail_idx == vq->last_avail_idx) { in vhost_get_vq_desc() 2209 if (unlikely(vhost_get_avail_idx(vq, &avail_idx))) { in vhost_get_vq_desc() 2214 vq->avail_idx = vhost16_to_cpu(vq, avail_idx); in vhost_get_vq_desc() 2216 if (unlikely((u16)(vq->avail_idx - last_avail_idx) > vq->num)) { in vhost_get_vq_desc() 2218 last_avail_idx, vq->avail_idx); in vhost_get_vq_desc() 2225 if (vq->avail_idx == last_avail_idx) in vhost_get_vq_desc() [all …]
|
D | vhost.h | 94 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-v5.10/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-v5.10/samples/bpf/ |
D | xdp_redirect_cpu_user.c | 576 __u32 avail_idx, bool new) in create_cpu_entry() argument 594 ret = bpf_map_update_elem(map_fds[CPUS_AVAILABLE], &avail_idx, &cpu, 0); in create_cpu_entry() 617 new ? "Add-new":"Replace", cpu, avail_idx, in create_cpu_entry()
|
/Linux-v5.10/drivers/vdpa/mlx5/net/ |
D | mlx5_vnet.c | 113 u16 avail_idx; member 786 MLX5_SET(virtio_net_q_object, obj_context, hw_available_index, mvq->avail_idx); in create_virtqueue() 1146 mvq->avail_idx = attr.available_index; in suspend_vq() 1404 mvq->avail_idx = state->avail_index; in mlx5_vdpa_set_vq_state() 1421 state->avail_index = mvq->avail_idx; in mlx5_vdpa_get_vq_state() 1636 mvq->avail_idx = ri->avail_index; in restore_channels_info()
|