Lines Matching refs:vq_state
575 struct vdpa_vq_state vq_state; in vhost_vdpa_vring_ioctl() local
617 r = ops->get_vq_state(v->vdpa, idx, &vq_state); in vhost_vdpa_vring_ioctl()
622 vq->last_avail_idx = vq_state.packed.last_avail_idx | in vhost_vdpa_vring_ioctl()
623 (vq_state.packed.last_avail_counter << 15); in vhost_vdpa_vring_ioctl()
624 vq->last_used_idx = vq_state.packed.last_used_idx | in vhost_vdpa_vring_ioctl()
625 (vq_state.packed.last_used_counter << 15); in vhost_vdpa_vring_ioctl()
627 vq->last_avail_idx = vq_state.split.avail_index; in vhost_vdpa_vring_ioctl()
647 vq_state.packed.last_avail_idx = vq->last_avail_idx & 0x7fff; in vhost_vdpa_vring_ioctl()
648 vq_state.packed.last_avail_counter = !!(vq->last_avail_idx & 0x8000); in vhost_vdpa_vring_ioctl()
649 vq_state.packed.last_used_idx = vq->last_used_idx & 0x7fff; in vhost_vdpa_vring_ioctl()
650 vq_state.packed.last_used_counter = !!(vq->last_used_idx & 0x8000); in vhost_vdpa_vring_ioctl()
652 vq_state.split.avail_index = vq->last_avail_idx; in vhost_vdpa_vring_ioctl()
654 r = ops->set_vq_state(vdpa, idx, &vq_state); in vhost_vdpa_vring_ioctl()