Home
last modified time | relevance | path

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

/drivers/vhost/
Dvdpa.c519 struct vdpa_vq_state vq_state; in vhost_vdpa_vring_ioctl() local
561 r = ops->get_vq_state(v->vdpa, idx, &vq_state); in vhost_vdpa_vring_ioctl()
566 vq->last_avail_idx = vq_state.packed.last_avail_idx | in vhost_vdpa_vring_ioctl()
567 (vq_state.packed.last_avail_counter << 15); in vhost_vdpa_vring_ioctl()
568 vq->last_used_idx = vq_state.packed.last_used_idx | in vhost_vdpa_vring_ioctl()
569 (vq_state.packed.last_used_counter << 15); in vhost_vdpa_vring_ioctl()
571 vq->last_avail_idx = vq_state.split.avail_index; in vhost_vdpa_vring_ioctl()
591 vq_state.packed.last_avail_idx = vq->last_avail_idx & 0x7fff; in vhost_vdpa_vring_ioctl()
592 vq_state.packed.last_avail_counter = !!(vq->last_avail_idx & 0x8000); in vhost_vdpa_vring_ioctl()
593 vq_state.packed.last_used_idx = vq->last_used_idx & 0x7fff; in vhost_vdpa_vring_ioctl()
[all …]
/drivers/vdpa/vdpa_user/
Dvduse_dev.c247 msg.req.vq_state.index = vq->index; in vduse_dev_get_vq_state_packed()
254 msg.resp.vq_state.packed.last_avail_counter & 0x0001; in vduse_dev_get_vq_state_packed()
256 msg.resp.vq_state.packed.last_avail_idx & 0x7FFF; in vduse_dev_get_vq_state_packed()
258 msg.resp.vq_state.packed.last_used_counter & 0x0001; in vduse_dev_get_vq_state_packed()
260 msg.resp.vq_state.packed.last_used_idx & 0x7FFF; in vduse_dev_get_vq_state_packed()
273 msg.req.vq_state.index = vq->index; in vduse_dev_get_vq_state_split()
279 split->avail_index = msg.resp.vq_state.split.avail_index; in vduse_dev_get_vq_state_split()