Lines Matching refs:vq_num
115 u32 vq_num; member
449 for (i = 0; i < dev->vq_num; i++) { in vduse_dev_reset()
641 for (i = 0; i < dev->vq_num; i++) in vduse_vdpa_get_vq_num_max()
900 if (eventfd->index >= dev->vq_num) in vduse_kickfd_setup()
903 index = array_index_nospec(eventfd->index, dev->vq_num); in vduse_kickfd_setup()
929 for (i = 0; i < dev->vq_num; i++) in vduse_dev_is_ready()
1209 if (config.index >= dev->vq_num) in vduse_dev_ioctl()
1216 index = array_index_nospec(config.index, dev->vq_num); 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()
1281 if (index >= dev->vq_num) in vduse_dev_ioctl()
1285 index = array_index_nospec(index, dev->vq_num); in vduse_dev_ioctl()
1540 for (i = 0; i < dev->vq_num; i++) in vduse_dev_deinit_vqs()
1545 static int vduse_dev_init_vqs(struct vduse_dev *dev, u32 vq_align, u32 vq_num) in vduse_dev_init_vqs() argument
1550 dev->vq_num = vq_num; in vduse_dev_init_vqs()
1551 dev->vqs = kcalloc(dev->vq_num, sizeof(*dev->vqs), GFP_KERNEL); in vduse_dev_init_vqs()
1555 for (i = 0; i < vq_num; i++) { in vduse_dev_init_vqs()
1695 if (config->vq_num > 0xffff) in vduse_validate_config()
1822 ret = vduse_dev_init_vqs(dev, config->vq_align, config->vq_num); in vduse_create_dev()
2010 ret = _vdpa_register_device(&dev->vdev->vdpa, dev->vq_num); in vdpa_dev_add()