Lines Matching refs:vfio
50 static struct vfio { struct
55 } vfio; argument
190 ida_free(&vfio.device_ida, device->index); in vfio_device_release()
196 simple_release_fs(&vfio.vfs_mount, &vfio.fs_count); in vfio_device_release()
256 ret = simple_pin_fs(&vfio_fs_type, &vfio.vfs_mount, &vfio.fs_count); in vfio_fs_inode_new()
260 inode = alloc_anon_inode(vfio.vfs_mount->mnt_sb); in vfio_fs_inode_new()
262 simple_release_fs(&vfio.vfs_mount, &vfio.fs_count); in vfio_fs_inode_new()
275 ret = ida_alloc_max(&vfio.device_ida, MINORMASK, GFP_KERNEL); in vfio_init_device()
299 device->device.class = vfio.device_class; in vfio_init_device()
305 simple_release_fs(&vfio.vfs_mount, &vfio.fs_count); in vfio_init_device()
308 ida_free(&vfio.device_ida, device->index); in vfio_init_device()
1704 ida_init(&vfio.device_ida); in vfio_init()
1715 vfio.device_class = class_create("vfio-dev"); in vfio_init()
1716 if (IS_ERR(vfio.device_class)) { in vfio_init()
1717 ret = PTR_ERR(vfio.device_class); in vfio_init()
1721 ret = vfio_cdev_init(vfio.device_class); in vfio_init()
1730 class_destroy(vfio.device_class); in vfio_init()
1731 vfio.device_class = NULL; in vfio_init()
1742 ida_destroy(&vfio.device_ida); in vfio_cleanup()
1744 class_destroy(vfio.device_class); in vfio_cleanup()
1745 vfio.device_class = NULL; in vfio_cleanup()