Home
last modified time | relevance | path

Searched refs:last_used_idx (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/tools/virtio/ringtest/
Dvirtio_ring_0_9.c43 unsigned short last_used_idx; member
80 guest.last_used_idx = 0; in alloc_ring()
159 head = (ring_size - 1) & guest.last_used_idx; in get_buf()
161 if ((index ^ guest.last_used_idx ^ 0x8000) & ~(ring_size - 1)) in get_buf()
167 if (ring.used->idx == guest.last_used_idx) in get_buf()
172 head = (ring_size - 1) & guest.last_used_idx; in get_buf()
175 head = (ring_size - 1) & guest.last_used_idx; in get_buf()
193 guest.last_used_idx++; in get_buf()
199 unsigned short last_used_idx = guest.last_used_idx; in used_empty() local
201 unsigned short head = last_used_idx & (ring_size - 1); in used_empty()
[all …]
Dring.c61 unsigned last_used_idx; member
94 guest.last_used_idx = 0; in alloc_ring()
145 unsigned head = (ring_size - 1) & guest.last_used_idx; in get_buf()
160 guest.last_used_idx++; in get_buf()
166 unsigned head = (ring_size - 1) & guest.last_used_idx; in used_empty()
180 event->call_index = guest.last_used_idx; in enable_call()
/linux-6.1.9/drivers/virtio/
Dvirtio_ring.c186 u16 last_used_idx; member
401 vq->last_used_idx = 0 | (1 << VRING_PACKED_EVENT_F_WRAP_CTR); in virtqueue_init()
403 vq->last_used_idx = 0; in virtqueue_init()
783 return vq->last_used_idx != virtio16_to_cpu(vq->vq.vdev, in more_used_split()
812 last_used = (vq->last_used_idx & (vq->split.vring.num - 1)); in virtqueue_get_buf_ctx_split()
830 vq->last_used_idx++; in virtqueue_get_buf_ctx_split()
837 cpu_to_virtio16(_vq->vdev, vq->last_used_idx)); in virtqueue_get_buf_ctx_split()
864 u16 last_used_idx; in virtqueue_enable_cb_prepare_split() local
881 last_used_idx = vq->last_used_idx); in virtqueue_enable_cb_prepare_split()
883 return last_used_idx; in virtqueue_enable_cb_prepare_split()
[all …]
Dvirtio_vdpa.c212 s->last_used_idx = 0; in virtio_vdpa_setup_vq()
/linux-6.1.9/drivers/vhost/
Dvringh.c452 used_idx = vrh->last_used_idx + vrh->completed; in __vringh_complete()
526 vrh->last_used_idx + vrh->completed, in __vringh_need_notify()
527 vrh->last_used_idx); in __vringh_need_notify()
529 vrh->last_used_idx += vrh->completed; in __vringh_need_notify()
663 vrh->last_used_idx = 0; in vringh_init_user()
937 vrh->last_used_idx = 0; in vringh_init_kern()
Dvhost.c314 vq->last_used_idx = 0; in vhost_vq_reset()
968 return vhost_put_user(vq, cpu_to_vhost16(vq, vq->last_used_idx), in vhost_put_used_idx()
2016 __virtio16 last_used_idx; in vhost_vq_init_access() local
2034 r = vhost_get_used_idx(vq, &last_used_idx); in vhost_vq_init_access()
2040 vq->last_used_idx = vhost16_to_cpu(vq, last_used_idx); in vhost_vq_init_access()
2380 start = vq->last_used_idx & (vq->num - 1); in __vhost_add_used_n()
2393 old = vq->last_used_idx; in __vhost_add_used_n()
2394 new = (vq->last_used_idx += count); in __vhost_add_used_n()
2411 start = vq->last_used_idx & (vq->num - 1); in vhost_add_used_n()
2465 new = vq->signalled_used = vq->last_used_idx; in vhost_notify()
Dvhost.h95 u16 last_used_idx; member
/linux-6.1.9/include/uapi/linux/
Dvduse.h156 __u16 last_used_idx; member
/linux-6.1.9/drivers/vdpa/vdpa_user/
Dvduse_dev.c259 packed->last_used_idx = in vduse_dev_get_vq_state_packed()
260 msg.resp.vq_state.packed.last_used_idx & 0x7FFF; in vduse_dev_get_vq_state_packed()
561 vq->state.packed.last_used_idx = state->packed.last_used_idx; in vduse_vdpa_set_vq_state()
1164 vq_info.packed.last_used_idx = in vduse_dev_ioctl()
1165 vq->state.packed.last_used_idx; in vduse_dev_ioctl()
/linux-6.1.9/include/linux/
Dvdpa.h51 u16 last_used_idx:15; member
Dvringh.h39 u16 last_used_idx; member
/linux-6.1.9/drivers/vdpa/virtio_pci/
Dvp_vdpa.c273 packed->last_used_idx == 0) in vp_vdpa_set_vq_state_packed()