Searched refs:vq_state (Results 1 – 3 of 3) sorted by relevance
277 struct vduse_vq_state vq_state; member301 struct vduse_vq_state vq_state; member
236 msg.req.vq_state.index = vq->index; in vduse_dev_get_vq_state_packed()243 msg.resp.vq_state.packed.last_avail_counter & 0x0001; in vduse_dev_get_vq_state_packed()245 msg.resp.vq_state.packed.last_avail_idx & 0x7FFF; in vduse_dev_get_vq_state_packed()247 msg.resp.vq_state.packed.last_used_counter & 0x0001; in vduse_dev_get_vq_state_packed()249 msg.resp.vq_state.packed.last_used_idx & 0x7FFF; in vduse_dev_get_vq_state_packed()262 msg.req.vq_state.index = vq->index; in vduse_dev_get_vq_state_split()268 split->avail_index = msg.resp.vq_state.split.avail_index; in vduse_dev_get_vq_state_split()
364 struct vdpa_vq_state vq_state; in vhost_vdpa_vring_ioctl() local388 r = ops->get_vq_state(v->vdpa, idx, &vq_state); in vhost_vdpa_vring_ioctl()392 vq->last_avail_idx = vq_state.split.avail_index; in vhost_vdpa_vring_ioctl()410 vq_state.split.avail_index = vq->last_avail_idx; in vhost_vdpa_vring_ioctl()411 if (ops->set_vq_state(vdpa, idx, &vq_state)) in vhost_vdpa_vring_ioctl()