Searched refs:vq_state (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | vduse.h | 312 * @vq_state: virtqueue state, only index field is available 324 struct vduse_vq_state vq_state; member 336 * @vq_state: virtqueue state 348 struct vduse_vq_state vq_state; member
|
/kernel/linux/linux-6.6/drivers/vhost/ |
H A D | vdpa.c | 575 struct vdpa_vq_state vq_state; in vhost_vdpa_vring_ioctl() local 617 r = ops->get_vq_state(v->vdpa, idx, &vq_state); in vhost_vdpa_vring_ioctl() 622 vq->last_avail_idx = vq_state.packed.last_avail_idx | in vhost_vdpa_vring_ioctl() 623 (vq_state.packed.last_avail_counter << 15); in vhost_vdpa_vring_ioctl() 624 vq->last_used_idx = vq_state.packed.last_used_idx | in vhost_vdpa_vring_ioctl() 625 (vq_state.packed.last_used_counter << 15); in vhost_vdpa_vring_ioctl() 627 vq->last_avail_idx = vq_state.split.avail_index; in vhost_vdpa_vring_ioctl() 647 vq_state.packed.last_avail_idx = vq->last_avail_idx & 0x7fff; in vhost_vdpa_vring_ioctl() 648 vq_state.packed.last_avail_counter = !!(vq->last_avail_idx & 0x8000); in vhost_vdpa_vring_ioctl() 649 vq_state in vhost_vdpa_vring_ioctl() [all...] |
/kernel/linux/linux-5.10/drivers/vhost/ |
H A D | vdpa.c | 370 struct vdpa_vq_state vq_state; in vhost_vdpa_vring_ioctl() local 394 r = ops->get_vq_state(v->vdpa, idx, &vq_state); in vhost_vdpa_vring_ioctl() 398 vq->last_avail_idx = vq_state.avail_index; in vhost_vdpa_vring_ioctl() 416 vq_state.avail_index = vq->last_avail_idx; in vhost_vdpa_vring_ioctl() 417 if (ops->set_vq_state(vdpa, idx, &vq_state)) in vhost_vdpa_vring_ioctl()
|
/kernel/linux/linux-6.6/drivers/vdpa/solidrun/ |
H A D | snet_vdpa.h | 31 struct vdpa_vq_state vq_state; member
|
H A D | snet_main.c | 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()
|
/kernel/linux/linux-6.6/drivers/vdpa/vdpa_user/ |
H A D | vduse_dev.c | 258 msg.req.vq_state.index = vq->index; in vduse_dev_get_vq_state_packed() 265 msg.resp.vq_state.packed.last_avail_counter & 0x0001; in vduse_dev_get_vq_state_packed() 267 msg.resp.vq_state.packed.last_avail_idx & 0x7FFF; in vduse_dev_get_vq_state_packed() 269 msg.resp.vq_state.packed.last_used_counter & 0x0001; in vduse_dev_get_vq_state_packed() 271 msg.resp.vq_state.packed.last_used_idx & 0x7FFF; in vduse_dev_get_vq_state_packed() 284 msg.req.vq_state.index = vq->index; in vduse_dev_get_vq_state_split() 290 split->avail_index = msg.resp.vq_state.split.avail_index; in vduse_dev_get_vq_state_split()
|
Completed in 10 milliseconds