Lines Matching defs:filep

1131 static long vfio_fops_unl_ioctl(struct file *filep,
1134 struct vfio_container *container = filep->private_data;
1163 static int vfio_fops_open(struct inode *inode, struct file *filep)
1175 filep->private_data = container;
1180 static int vfio_fops_release(struct inode *inode, struct file *filep)
1182 struct vfio_container *container = filep->private_data;
1184 filep->private_data = NULL;
1195 static ssize_t vfio_fops_read(struct file *filep, char __user *buf,
1198 struct vfio_container *container = filep->private_data;
1210 static ssize_t vfio_fops_write(struct file *filep, const char __user *buf,
1213 struct vfio_container *container = filep->private_data;
1225 static int vfio_fops_mmap(struct file *filep, struct vm_area_struct *vma)
1227 struct vfio_container *container = filep->private_data;
1398 struct file *filep;
1429 filep = anon_inode_getfile("[vfio-device]", &vfio_device_fops,
1431 if (IS_ERR(filep)) {
1433 ret = PTR_ERR(filep);
1444 filep->f_mode |= (FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE);
1448 fd_install(ret, filep);
1457 static long vfio_group_fops_unl_ioctl(struct file *filep,
1460 struct vfio_group *group = filep->private_data;
1524 static int vfio_group_fops_open(struct inode *inode, struct file *filep)
1556 filep->private_data = group;
1561 static int vfio_group_fops_release(struct inode *inode, struct file *filep)
1563 struct vfio_group *group = filep->private_data;
1565 filep->private_data = NULL;
1587 static int vfio_device_fops_release(struct inode *inode, struct file *filep)
1589 struct vfio_device *device = filep->private_data;
1600 static long vfio_device_fops_unl_ioctl(struct file *filep,
1603 struct vfio_device *device = filep->private_data;
1611 static ssize_t vfio_device_fops_read(struct file *filep, char __user *buf,
1614 struct vfio_device *device = filep->private_data;
1622 static ssize_t vfio_device_fops_write(struct file *filep,
1626 struct vfio_device *device = filep->private_data;
1634 static int vfio_device_fops_mmap(struct file *filep, struct vm_area_struct *vma)
1636 struct vfio_device *device = filep->private_data;
1681 struct vfio_group *vfio_group_get_external_user(struct file *filep)
1683 struct vfio_group *group = filep->private_data;
1686 if (filep->f_op != &vfio_group_fops)
1745 struct file *filep)
1747 struct vfio_group *group = filep->private_data;
1749 return (filep->f_op == &vfio_group_fops) && (group == test_group);