Searched refs:last_used_idx (Results 1 – 12 of 12) sorted by relevance
43 unsigned short last_used_idx; member80 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() local201 unsigned short head = last_used_idx & (ring_size - 1); in used_empty()[all …]
61 unsigned last_used_idx; member94 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()
186 u16 last_used_idx; member401 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() local881 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 …]
212 s->last_used_idx = 0; in virtio_vdpa_setup_vq()
452 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()
314 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() local2034 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()
95 u16 last_used_idx; member
156 __u16 last_used_idx; member
259 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()
51 u16 last_used_idx:15; member
39 u16 last_used_idx; member
273 packed->last_used_idx == 0) in vp_vdpa_set_vq_state_packed()