Lines Matching refs:filep
256 struct file *filep; in vfio_device_open_file() local
275 filep = anon_inode_getfile("[vfio-device]", &vfio_device_fops, in vfio_device_open_file()
277 if (IS_ERR(filep)) { in vfio_device_open_file()
278 ret = PTR_ERR(filep); in vfio_device_open_file()
287 filep->f_mode |= (FMODE_PREAD | FMODE_PWRITE); in vfio_device_open_file()
296 return filep; in vfio_device_open_file()
310 struct file *filep; in vfio_group_ioctl_get_device_fd() local
330 filep = vfio_device_open_file(device); in vfio_group_ioctl_get_device_fd()
331 if (IS_ERR(filep)) { in vfio_group_ioctl_get_device_fd()
332 ret = PTR_ERR(filep); in vfio_group_ioctl_get_device_fd()
336 fd_install(fdno, filep); in vfio_group_ioctl_get_device_fd()
385 static long vfio_group_fops_unl_ioctl(struct file *filep, in vfio_group_fops_unl_ioctl() argument
388 struct vfio_group *group = filep->private_data; in vfio_group_fops_unl_ioctl()
432 static int vfio_group_fops_open(struct inode *inode, struct file *filep) in vfio_group_fops_open() argument
466 group->opened_file = filep; in vfio_group_fops_open()
467 filep->private_data = group; in vfio_group_fops_open()
474 static int vfio_group_fops_release(struct inode *inode, struct file *filep) in vfio_group_fops_release() argument
476 struct vfio_group *group = filep->private_data; in vfio_group_fops_release()
478 filep->private_data = NULL; in vfio_group_fops_release()