Home
last modified time | relevance | path

Searched refs:vq_state (Results 1 – 7 of 7) sorted by relevance

/openbmc/linux/include/uapi/linux/
H A Dvduse.h324 struct vduse_vq_state vq_state; member
348 struct vduse_vq_state vq_state; member
/openbmc/qemu/linux-headers/linux/
H A Dvduse.h324 struct vduse_vq_state vq_state; member
348 struct vduse_vq_state vq_state; member
/openbmc/linux/drivers/vhost/
H A Dvdpa.c573 struct vdpa_vq_state vq_state; in vhost_vdpa_vring_ioctl() local
615 r = ops->get_vq_state(v->vdpa, idx, &vq_state); in vhost_vdpa_vring_ioctl()
620 vq->last_avail_idx = vq_state.packed.last_avail_idx | in vhost_vdpa_vring_ioctl()
621 (vq_state.packed.last_avail_counter << 15); in vhost_vdpa_vring_ioctl()
622 vq->last_used_idx = vq_state.packed.last_used_idx | in vhost_vdpa_vring_ioctl()
623 (vq_state.packed.last_used_counter << 15); in vhost_vdpa_vring_ioctl()
625 vq->last_avail_idx = vq_state.split.avail_index; in vhost_vdpa_vring_ioctl()
653 vq_state.packed.last_avail_idx = vq->last_avail_idx & 0x7fff; in vhost_vdpa_vring_ioctl()
654 vq_state.packed.last_avail_counter = !!(vq->last_avail_idx & 0x8000); in vhost_vdpa_vring_ioctl()
655 vq_state.packed.last_used_idx = vq->last_used_idx & 0x7fff; in vhost_vdpa_vring_ioctl()
[all …]
/openbmc/linux/drivers/vdpa/solidrun/
H A Dsnet_vdpa.h31 struct vdpa_vq_state vq_state; member
H A Dsnet_main.c173 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()
/openbmc/linux/drivers/vdpa/vdpa_user/
H A Dvduse_dev.c260 msg.req.vq_state.index = vq->index; in vduse_dev_get_vq_state_packed()
267 msg.resp.vq_state.packed.last_avail_counter & 0x0001; in vduse_dev_get_vq_state_packed()
269 msg.resp.vq_state.packed.last_avail_idx & 0x7FFF; in vduse_dev_get_vq_state_packed()
271 msg.resp.vq_state.packed.last_used_counter & 0x0001; in vduse_dev_get_vq_state_packed()
273 msg.resp.vq_state.packed.last_used_idx & 0x7FFF; in vduse_dev_get_vq_state_packed()
286 msg.req.vq_state.index = vq->index; in vduse_dev_get_vq_state_split()
292 split->avail_index = msg.resp.vq_state.split.avail_index; in vduse_dev_get_vq_state_split()
/openbmc/qemu/subprojects/libvduse/
H A Dlibvduse.c1018 vq = &dev->vqs[req.vq_state.index]; in vduse_dev_handler()
1019 resp.vq_state.split.avail_index = vq->last_avail_idx; in vduse_dev_handler()