Searched refs:vq_state (Results 1 – 5 of 5) sorted by relevance
637 struct vdpa_vq_state vq_state; in vhost_vdpa_vring_ioctl() local699 r = ops->get_vq_state(v->vdpa, idx, &vq_state); in vhost_vdpa_vring_ioctl()704 vq->last_avail_idx = vq_state.packed.last_avail_idx | in vhost_vdpa_vring_ioctl()705 (vq_state.packed.last_avail_counter << 15); in vhost_vdpa_vring_ioctl()706 vq->last_used_idx = vq_state.packed.last_used_idx | in vhost_vdpa_vring_ioctl()707 (vq_state.packed.last_used_counter << 15); in vhost_vdpa_vring_ioctl()709 vq->last_avail_idx = vq_state.split.avail_index; in vhost_vdpa_vring_ioctl()742 vq_state.packed.last_avail_idx = vq->last_avail_idx & 0x7fff; in vhost_vdpa_vring_ioctl()743 vq_state.packed.last_avail_counter = !!(vq->last_avail_idx & 0x8000); in vhost_vdpa_vring_ioctl()744 vq_state.packed.last_used_idx = vq->last_used_idx & 0x7fff; in vhost_vdpa_vring_ioctl()[all …]
394 struct vduse_vq_state vq_state; member423 struct vduse_vq_state vq_state; member
31 struct vdpa_vq_state vq_state; member
173 memcpy(&snet->vqs[idx]->vq_state, state, sizeof(*state)); in snet_set_vq_state()376 snet_write32(snet, off, *(u32 *)&snet->vqs[i]->vq_state); in snet_write_conf()
288 msg.req.vq_state.index = vq->index; in vduse_dev_get_vq_state_packed()295 msg.resp.vq_state.packed.last_avail_counter & 0x0001; in vduse_dev_get_vq_state_packed()297 msg.resp.vq_state.packed.last_avail_idx & 0x7FFF; in vduse_dev_get_vq_state_packed()299 msg.resp.vq_state.packed.last_used_counter & 0x0001; in vduse_dev_get_vq_state_packed()301 msg.resp.vq_state.packed.last_used_idx & 0x7FFF; in vduse_dev_get_vq_state_packed()314 msg.req.vq_state.index = vq->index; in vduse_dev_get_vq_state_split()320 split->avail_index = msg.resp.vq_state.split.avail_index; in vduse_dev_get_vq_state_split()