Home
last modified time | relevance | path

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

/linux/drivers/vhost/
H A Dvdpa.c644 struct vdpa_vq_state vq_state; in vhost_vdpa_vring_ioctl() local
706 r = ops->get_vq_state(v->vdpa, idx, &vq_state); in vhost_vdpa_vring_ioctl()
711 vq->last_avail_idx = vq_state.packed.last_avail_idx | in vhost_vdpa_vring_ioctl()
712 (vq_state.packed.last_avail_counter << 15); in vhost_vdpa_vring_ioctl()
713 vq->last_used_idx = vq_state.packed.last_used_idx | in vhost_vdpa_vring_ioctl()
714 (vq_state.packed.last_used_counter << 15); in vhost_vdpa_vring_ioctl()
716 vq->last_avail_idx = vq_state.split.avail_index; in vhost_vdpa_vring_ioctl()
749 vq_state.packed.last_avail_idx = vq->last_avail_idx & 0x7fff; in vhost_vdpa_vring_ioctl()
750 vq_state.packed.last_avail_counter = !!(vq->last_avail_idx & 0x8000); in vhost_vdpa_vring_ioctl()
751 vq_state.packed.last_used_idx = vq->last_used_idx & 0x7fff; in vhost_vdpa_vring_ioctl()
[all …]
/linux/include/uapi/linux/
H A Dvduse.h418 struct vduse_vq_state vq_state; member
451 struct vduse_vq_state vq_state; member
/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()
/linux/drivers/vdpa/vdpa_user/
H A Dvduse_dev.c304 msg.req.vq_state.index = vq->index; in vduse_dev_get_vq_state_packed()
311 msg.resp.vq_state.packed.last_avail_counter & 0x0001; in vduse_dev_get_vq_state_packed()
313 msg.resp.vq_state.packed.last_avail_idx & 0x7FFF; in vduse_dev_get_vq_state_packed()
315 msg.resp.vq_state.packed.last_used_counter & 0x0001; in vduse_dev_get_vq_state_packed()
317 msg.resp.vq_state.packed.last_used_idx & 0x7FFF; in vduse_dev_get_vq_state_packed()
330 msg.req.vq_state.index = vq->index; in vduse_dev_get_vq_state_split()
336 split->avail_index = msg.resp.vq_state.split.avail_index; in vduse_dev_get_vq_state_split()