Lines Matching refs:vfio_group
73 struct vfio_group { struct
98 struct vfio_group *group; argument
273 static int vfio_alloc_group_minor(struct vfio_group *group) in vfio_alloc_group_minor()
285 static void vfio_group_get(struct vfio_group *group);
311 static void vfio_group_unlock_and_free(struct vfio_group *group) in vfio_group_unlock_and_free()
325 static struct vfio_group *vfio_create_group(struct iommu_group *iommu_group) in vfio_create_group()
327 struct vfio_group *group, *tmp; in vfio_create_group()
404 struct vfio_group *group = container_of(kref, struct vfio_group, kref); in vfio_group_release()
424 static void vfio_group_put(struct vfio_group *group) in vfio_group_put()
431 struct vfio_group *group;
444 static void vfio_group_schedule_put(struct vfio_group *group) in vfio_group_schedule_put()
458 static void vfio_group_get(struct vfio_group *group) in vfio_group_get()
467 static struct vfio_group *vfio_group_try_get(struct vfio_group *group) in vfio_group_try_get()
469 struct vfio_group *target = group; in vfio_group_try_get()
485 struct vfio_group *vfio_group_get_from_iommu(struct iommu_group *iommu_group) in vfio_group_get_from_iommu()
487 struct vfio_group *group; in vfio_group_get_from_iommu()
502 static struct vfio_group *vfio_group_get_from_minor(int minor) in vfio_group_get_from_minor()
504 struct vfio_group *group; in vfio_group_get_from_minor()
518 static struct vfio_group *vfio_group_get_from_dev(struct device *dev) in vfio_group_get_from_dev()
521 struct vfio_group *group; in vfio_group_get_from_dev()
537 struct vfio_device *vfio_group_create_device(struct vfio_group *group, in vfio_group_create_device()
569 struct vfio_group *group = device->group; in vfio_device_release()
585 struct vfio_group *group = device->group; in vfio_device_put()
597 static struct vfio_device *vfio_group_get_device(struct vfio_group *group, in vfio_group_get_device()
661 struct vfio_group *group = data; in vfio_dev_viable()
691 static int vfio_group_nb_add_dev(struct vfio_group *group, struct device *dev) in vfio_group_nb_add_dev()
713 static int vfio_group_nb_verify(struct vfio_group *group, struct device *dev) in vfio_group_nb_verify()
725 struct vfio_group *group = container_of(nb, struct vfio_group, nb); in vfio_iommu_group_notifier()
809 struct vfio_group *group; in vfio_add_group_dev()
866 struct vfio_group *group; in vfio_device_get_from_dev()
880 static struct vfio_device *vfio_device_get_from_name(struct vfio_group *group, in vfio_device_get_from_name()
908 static bool vfio_dev_present(struct vfio_group *group, struct device *dev) in vfio_dev_present()
926 struct vfio_group *group = device->group; in vfio_del_group_dev()
1077 struct vfio_group *group; in __vfio_container_attach_groups()
1303 static void __vfio_group_unset_container(struct vfio_group *group) in __vfio_group_unset_container()
1338 static int vfio_group_unset_container(struct vfio_group *group) in vfio_group_unset_container()
1358 static void vfio_group_try_dissolve_container(struct vfio_group *group) in vfio_group_try_dissolve_container()
1364 static int vfio_group_set_container(struct vfio_group *group, int container_fd) in vfio_group_set_container()
1421 static bool vfio_group_viable(struct vfio_group *group) in vfio_group_viable()
1427 static int vfio_group_add_container_user(struct vfio_group *group) in vfio_group_add_container_user()
1446 static int vfio_group_get_device_fd(struct vfio_group *group, char *buf) in vfio_group_get_device_fd()
1511 struct vfio_group *group = filep->private_data; in vfio_group_fops_unl_ioctl()
1586 struct vfio_group *group; in vfio_group_fops_open()
1623 struct vfio_group *group = filep->private_data; in vfio_group_fops_release()
1754 struct vfio_group *vfio_group_get_external_user(struct file *filep) in vfio_group_get_external_user()
1756 struct vfio_group *group = filep->private_data; in vfio_group_get_external_user()
1772 void vfio_group_put_external_user(struct vfio_group *group) in vfio_group_put_external_user()
1779 bool vfio_external_group_match_file(struct vfio_group *test_group, in vfio_external_group_match_file()
1782 struct vfio_group *group = filep->private_data; in vfio_external_group_match_file()
1788 int vfio_external_user_iommu_id(struct vfio_group *group) in vfio_external_user_iommu_id()
1794 long vfio_external_check_extension(struct vfio_group *group, unsigned long arg) in vfio_external_check_extension()
1933 struct vfio_group *group; in vfio_pin_pages()
1979 struct vfio_group *group; in vfio_unpin_pages()
2013 static int vfio_register_iommu_notifier(struct vfio_group *group, in vfio_register_iommu_notifier()
2038 static int vfio_unregister_iommu_notifier(struct vfio_group *group, in vfio_unregister_iommu_notifier()
2062 void vfio_group_set_kvm(struct vfio_group *group, struct kvm *kvm) in vfio_group_set_kvm()
2070 static int vfio_register_group_notifier(struct vfio_group *group, in vfio_register_group_notifier()
2106 static int vfio_unregister_group_notifier(struct vfio_group *group, in vfio_unregister_group_notifier()
2125 struct vfio_group *group; in vfio_register_notifier()
2154 struct vfio_group *group; in vfio_unregister_notifier()