Searched refs:vq_info (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/vdpa/pds/ |
H A D | cmds.c | 126 struct pds_vdpa_vq_info *vq_info) in pds_vdpa_cmd_init_vq() argument 135 .vdpa_vq_init.len = cpu_to_le16(ilog2(vq_info->q_len)), in pds_vdpa_cmd_init_vq() 136 .vdpa_vq_init.desc_addr = cpu_to_le64(vq_info->desc_addr), in pds_vdpa_cmd_init_vq() 137 .vdpa_vq_init.avail_addr = cpu_to_le64(vq_info->avail_addr), in pds_vdpa_cmd_init_vq() 138 .vdpa_vq_init.used_addr = cpu_to_le64(vq_info->used_addr), in pds_vdpa_cmd_init_vq() 140 .vdpa_vq_init.avail_index = cpu_to_le16(vq_info->avail_idx ^ invert_idx), in pds_vdpa_cmd_init_vq() 141 .vdpa_vq_init.used_index = cpu_to_le16(vq_info->used_idx ^ invert_idx), in pds_vdpa_cmd_init_vq() 147 __func__, qid, ilog2(vq_info->q_len), in pds_vdpa_cmd_init_vq() 148 vq_info->desc_addr, vq_info->avail_addr, vq_info->used_addr); in pds_vdpa_cmd_init_vq() 160 struct pds_vdpa_vq_info *vq_info) in pds_vdpa_cmd_reset_vq() argument [all …]
|
H A D | cmds.h | 14 struct pds_vdpa_vq_info *vq_info); 16 struct pds_vdpa_vq_info *vq_info);
|
/openbmc/linux/tools/virtio/ |
H A D | virtio_test.c | 27 struct vq_info { struct 42 struct vq_info vqs[1]; argument 55 struct vq_info *info = vq->priv; in vq_notify() 68 void vhost_vq_setup(struct vdev_info *dev, struct vq_info *info) in vhost_vq_setup() 98 static void vq_reset(struct vq_info *info, int num, struct virtio_device *vdev) in vq_reset() 113 struct vq_info *info = &dev->vqs[dev->nvqs]; in vq_info_add() 169 static void run_test(struct vdev_info *dev, struct vq_info *vq, in run_test()
|
/openbmc/qemu/subprojects/libvduse/ |
H A D | libvduse.c | 889 struct vduse_vq_info vq_info; in vduse_queue_enable() local 893 vq_info.index = vq->index; in vduse_queue_enable() 894 if (ioctl(dev->fd, VDUSE_VQ_GET_INFO, &vq_info)) { in vduse_queue_enable() 900 if (!vq_info.ready) { in vduse_queue_enable() 904 vq->vring.num = vq_info.num; in vduse_queue_enable() 905 vq->vring.desc_addr = vq_info.desc_addr; in vduse_queue_enable() 906 vq->vring.avail_addr = vq_info.driver_addr; in vduse_queue_enable() 907 vq->vring.used_addr = vq_info.device_addr; in vduse_queue_enable() 909 if (vduse_queue_update_vring(vq, vq_info.desc_addr, in vduse_queue_enable() 910 vq_info.driver_addr, vq_info.device_addr)) { in vduse_queue_enable()
|
/openbmc/linux/drivers/vdpa/vdpa_user/ |
H A D | vduse_dev.c | 1222 struct vduse_vq_info vq_info; in vduse_dev_ioctl() local 1227 if (copy_from_user(&vq_info, argp, sizeof(vq_info))) in vduse_dev_ioctl() 1231 if (vq_info.index >= dev->vq_num) in vduse_dev_ioctl() 1234 index = array_index_nospec(vq_info.index, dev->vq_num); in vduse_dev_ioctl() 1236 vq_info.desc_addr = vq->desc_addr; in vduse_dev_ioctl() 1237 vq_info.driver_addr = vq->driver_addr; in vduse_dev_ioctl() 1238 vq_info.device_addr = vq->device_addr; in vduse_dev_ioctl() 1239 vq_info.num = vq->num; in vduse_dev_ioctl() 1242 vq_info.packed.last_avail_counter = in vduse_dev_ioctl() 1244 vq_info.packed.last_avail_idx = in vduse_dev_ioctl() [all …]
|