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()
294 filep->f_mapping = device->inode->i_mapping; in vfio_device_open_file()
303 return filep; in vfio_device_open_file()
317 struct file *filep; in vfio_group_ioctl_get_device_fd() local
337 filep = vfio_device_open_file(device); in vfio_group_ioctl_get_device_fd()
338 if (IS_ERR(filep)) { in vfio_group_ioctl_get_device_fd()
339 ret = PTR_ERR(filep); in vfio_group_ioctl_get_device_fd()
343 fd_install(fdno, filep); in vfio_group_ioctl_get_device_fd()
392 static long vfio_group_fops_unl_ioctl(struct file *filep, in vfio_group_fops_unl_ioctl() argument
395 struct vfio_group *group = filep->private_data; in vfio_group_fops_unl_ioctl()
439 static int vfio_group_fops_open(struct inode *inode, struct file *filep) in vfio_group_fops_open() argument
473 group->opened_file = filep; in vfio_group_fops_open()
474 filep->private_data = group; in vfio_group_fops_open()
481 static int vfio_group_fops_release(struct inode *inode, struct file *filep) in vfio_group_fops_release() argument
483 struct vfio_group *group = filep->private_data; in vfio_group_fops_release()
485 filep->private_data = NULL; in vfio_group_fops_release()