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