Lines Matching refs:filep

1155 static long vfio_fops_unl_ioctl(struct file *filep,  in vfio_fops_unl_ioctl()  argument
1158 struct vfio_container *container = filep->private_data; in vfio_fops_unl_ioctl()
1188 static long vfio_fops_compat_ioctl(struct file *filep, in vfio_fops_compat_ioctl() argument
1192 return vfio_fops_unl_ioctl(filep, cmd, arg); in vfio_fops_compat_ioctl()
1196 static int vfio_fops_open(struct inode *inode, struct file *filep) in vfio_fops_open() argument
1208 filep->private_data = container; in vfio_fops_open()
1213 static int vfio_fops_release(struct inode *inode, struct file *filep) in vfio_fops_release() argument
1215 struct vfio_container *container = filep->private_data; in vfio_fops_release()
1217 filep->private_data = NULL; in vfio_fops_release()
1228 static ssize_t vfio_fops_read(struct file *filep, char __user *buf, in vfio_fops_read() argument
1231 struct vfio_container *container = filep->private_data; in vfio_fops_read()
1243 static ssize_t vfio_fops_write(struct file *filep, const char __user *buf, in vfio_fops_write() argument
1246 struct vfio_container *container = filep->private_data; in vfio_fops_write()
1258 static int vfio_fops_mmap(struct file *filep, struct vm_area_struct *vma) in vfio_fops_mmap() argument
1260 struct vfio_container *container = filep->private_data; in vfio_fops_mmap()
1433 struct file *filep; in vfio_group_get_device_fd() local
1464 filep = anon_inode_getfile("[vfio-device]", &vfio_device_fops, in vfio_group_get_device_fd()
1466 if (IS_ERR(filep)) { in vfio_group_get_device_fd()
1468 ret = PTR_ERR(filep); in vfio_group_get_device_fd()
1479 filep->f_mode |= (FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE); in vfio_group_get_device_fd()
1483 fd_install(ret, filep); in vfio_group_get_device_fd()
1492 static long vfio_group_fops_unl_ioctl(struct file *filep, in vfio_group_fops_unl_ioctl() argument
1495 struct vfio_group *group = filep->private_data; in vfio_group_fops_unl_ioctl()
1560 static long vfio_group_fops_compat_ioctl(struct file *filep, in vfio_group_fops_compat_ioctl() argument
1564 return vfio_group_fops_unl_ioctl(filep, cmd, arg); in vfio_group_fops_compat_ioctl()
1568 static int vfio_group_fops_open(struct inode *inode, struct file *filep) in vfio_group_fops_open() argument
1600 filep->private_data = group; in vfio_group_fops_open()
1605 static int vfio_group_fops_release(struct inode *inode, struct file *filep) in vfio_group_fops_release() argument
1607 struct vfio_group *group = filep->private_data; in vfio_group_fops_release()
1609 filep->private_data = NULL; in vfio_group_fops_release()
1633 static int vfio_device_fops_release(struct inode *inode, struct file *filep) in vfio_device_fops_release() argument
1635 struct vfio_device *device = filep->private_data; in vfio_device_fops_release()
1646 static long vfio_device_fops_unl_ioctl(struct file *filep, in vfio_device_fops_unl_ioctl() argument
1649 struct vfio_device *device = filep->private_data; in vfio_device_fops_unl_ioctl()
1657 static ssize_t vfio_device_fops_read(struct file *filep, char __user *buf, in vfio_device_fops_read() argument
1660 struct vfio_device *device = filep->private_data; in vfio_device_fops_read()
1668 static ssize_t vfio_device_fops_write(struct file *filep, in vfio_device_fops_write() argument
1672 struct vfio_device *device = filep->private_data; in vfio_device_fops_write()
1680 static int vfio_device_fops_mmap(struct file *filep, struct vm_area_struct *vma) in vfio_device_fops_mmap() argument
1682 struct vfio_device *device = filep->private_data; in vfio_device_fops_mmap()
1691 static long vfio_device_fops_compat_ioctl(struct file *filep, in vfio_device_fops_compat_ioctl() argument
1695 return vfio_device_fops_unl_ioctl(filep, cmd, arg); in vfio_device_fops_compat_ioctl()
1738 struct vfio_group *vfio_group_get_external_user(struct file *filep) in vfio_group_get_external_user() argument
1740 struct vfio_group *group = filep->private_data; in vfio_group_get_external_user()
1743 if (filep->f_op != &vfio_group_fops) in vfio_group_get_external_user()
1764 struct file *filep) in vfio_external_group_match_file() argument
1766 struct vfio_group *group = filep->private_data; in vfio_external_group_match_file()
1768 return (filep->f_op == &vfio_group_fops) && (group == test_group); in vfio_external_group_match_file()