Lines Matching refs:filep

1113 static long vfio_fops_unl_ioctl(struct file *filep,  in vfio_fops_unl_ioctl()  argument
1116 struct vfio_container *container = filep->private_data; in vfio_fops_unl_ioctl()
1145 static int vfio_fops_open(struct inode *inode, struct file *filep) in vfio_fops_open() argument
1157 filep->private_data = container; in vfio_fops_open()
1162 static int vfio_fops_release(struct inode *inode, struct file *filep) in vfio_fops_release() argument
1164 struct vfio_container *container = filep->private_data; in vfio_fops_release()
1171 filep->private_data = NULL; in vfio_fops_release()
1336 struct file *filep; in vfio_group_get_device_fd() local
1373 filep = anon_inode_getfile("[vfio-device]", &vfio_device_fops, in vfio_group_get_device_fd()
1375 if (IS_ERR(filep)) { in vfio_group_get_device_fd()
1376 ret = PTR_ERR(filep); in vfio_group_get_device_fd()
1385 filep->f_mode |= (FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE); in vfio_group_get_device_fd()
1389 fd_install(fdno, filep); in vfio_group_get_device_fd()
1411 static long vfio_group_fops_unl_ioctl(struct file *filep, in vfio_group_fops_unl_ioctl() argument
1414 struct vfio_group *group = filep->private_data; in vfio_group_fops_unl_ioctl()
1478 static int vfio_group_fops_open(struct inode *inode, struct file *filep) in vfio_group_fops_open() argument
1511 filep->private_data = group; in vfio_group_fops_open()
1516 static int vfio_group_fops_release(struct inode *inode, struct file *filep) in vfio_group_fops_release() argument
1518 struct vfio_group *group = filep->private_data; in vfio_group_fops_release()
1520 filep->private_data = NULL; in vfio_group_fops_release()
1542 static int vfio_device_fops_release(struct inode *inode, struct file *filep) in vfio_device_fops_release() argument
1544 struct vfio_device *device = filep->private_data; in vfio_device_fops_release()
1560 static long vfio_device_fops_unl_ioctl(struct file *filep, in vfio_device_fops_unl_ioctl() argument
1563 struct vfio_device *device = filep->private_data; in vfio_device_fops_unl_ioctl()
1571 static ssize_t vfio_device_fops_read(struct file *filep, char __user *buf, in vfio_device_fops_read() argument
1574 struct vfio_device *device = filep->private_data; in vfio_device_fops_read()
1582 static ssize_t vfio_device_fops_write(struct file *filep, in vfio_device_fops_write() argument
1586 struct vfio_device *device = filep->private_data; in vfio_device_fops_write()
1594 static int vfio_device_fops_mmap(struct file *filep, struct vm_area_struct *vma) in vfio_device_fops_mmap() argument
1596 struct vfio_device *device = filep->private_data; in vfio_device_fops_mmap()
1641 struct vfio_group *vfio_group_get_external_user(struct file *filep) in vfio_group_get_external_user() argument
1643 struct vfio_group *group = filep->private_data; in vfio_group_get_external_user()
1646 if (filep->f_op != &vfio_group_fops) in vfio_group_get_external_user()
1708 struct file *filep) in vfio_external_group_match_file() argument
1710 struct vfio_group *group = filep->private_data; in vfio_external_group_match_file()
1712 return (filep->f_op == &vfio_group_fops) && (group == test_group); in vfio_external_group_match_file()