Lines Matching refs:filep

1171 static long vfio_fops_unl_ioctl(struct file *filep,  in vfio_fops_unl_ioctl()  argument
1174 struct vfio_container *container = filep->private_data; in vfio_fops_unl_ioctl()
1204 static long vfio_fops_compat_ioctl(struct file *filep, in vfio_fops_compat_ioctl() argument
1208 return vfio_fops_unl_ioctl(filep, cmd, arg); in vfio_fops_compat_ioctl()
1212 static int vfio_fops_open(struct inode *inode, struct file *filep) in vfio_fops_open() argument
1224 filep->private_data = container; in vfio_fops_open()
1229 static int vfio_fops_release(struct inode *inode, struct file *filep) in vfio_fops_release() argument
1231 struct vfio_container *container = filep->private_data; in vfio_fops_release()
1233 filep->private_data = NULL; in vfio_fops_release()
1244 static ssize_t vfio_fops_read(struct file *filep, char __user *buf, in vfio_fops_read() argument
1247 struct vfio_container *container = filep->private_data; in vfio_fops_read()
1259 static ssize_t vfio_fops_write(struct file *filep, const char __user *buf, in vfio_fops_write() argument
1262 struct vfio_container *container = filep->private_data; in vfio_fops_write()
1274 static int vfio_fops_mmap(struct file *filep, struct vm_area_struct *vma) in vfio_fops_mmap() argument
1276 struct vfio_container *container = filep->private_data; in vfio_fops_mmap()
1449 struct file *filep; in vfio_group_get_device_fd() local
1480 filep = anon_inode_getfile("[vfio-device]", &vfio_device_fops, in vfio_group_get_device_fd()
1482 if (IS_ERR(filep)) { in vfio_group_get_device_fd()
1484 ret = PTR_ERR(filep); in vfio_group_get_device_fd()
1495 filep->f_mode |= (FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE); in vfio_group_get_device_fd()
1499 fd_install(ret, filep); in vfio_group_get_device_fd()
1508 static long vfio_group_fops_unl_ioctl(struct file *filep, in vfio_group_fops_unl_ioctl() argument
1511 struct vfio_group *group = filep->private_data; in vfio_group_fops_unl_ioctl()
1576 static long vfio_group_fops_compat_ioctl(struct file *filep, in vfio_group_fops_compat_ioctl() argument
1580 return vfio_group_fops_unl_ioctl(filep, cmd, arg); in vfio_group_fops_compat_ioctl()
1584 static int vfio_group_fops_open(struct inode *inode, struct file *filep) in vfio_group_fops_open() argument
1616 filep->private_data = group; in vfio_group_fops_open()
1621 static int vfio_group_fops_release(struct inode *inode, struct file *filep) in vfio_group_fops_release() argument
1623 struct vfio_group *group = filep->private_data; in vfio_group_fops_release()
1625 filep->private_data = NULL; in vfio_group_fops_release()
1649 static int vfio_device_fops_release(struct inode *inode, struct file *filep) in vfio_device_fops_release() argument
1651 struct vfio_device *device = filep->private_data; in vfio_device_fops_release()
1662 static long vfio_device_fops_unl_ioctl(struct file *filep, in vfio_device_fops_unl_ioctl() argument
1665 struct vfio_device *device = filep->private_data; in vfio_device_fops_unl_ioctl()
1673 static ssize_t vfio_device_fops_read(struct file *filep, char __user *buf, in vfio_device_fops_read() argument
1676 struct vfio_device *device = filep->private_data; in vfio_device_fops_read()
1684 static ssize_t vfio_device_fops_write(struct file *filep, in vfio_device_fops_write() argument
1688 struct vfio_device *device = filep->private_data; in vfio_device_fops_write()
1696 static int vfio_device_fops_mmap(struct file *filep, struct vm_area_struct *vma) in vfio_device_fops_mmap() argument
1698 struct vfio_device *device = filep->private_data; in vfio_device_fops_mmap()
1707 static long vfio_device_fops_compat_ioctl(struct file *filep, in vfio_device_fops_compat_ioctl() argument
1711 return vfio_device_fops_unl_ioctl(filep, cmd, arg); in vfio_device_fops_compat_ioctl()
1754 struct vfio_group *vfio_group_get_external_user(struct file *filep) in vfio_group_get_external_user() argument
1756 struct vfio_group *group = filep->private_data; in vfio_group_get_external_user()
1759 if (filep->f_op != &vfio_group_fops) in vfio_group_get_external_user()
1780 struct file *filep) in vfio_external_group_match_file() argument
1782 struct vfio_group *group = filep->private_data; in vfio_external_group_match_file()
1784 return (filep->f_op == &vfio_group_fops) && (group == test_group); in vfio_external_group_match_file()