Lines Matching refs:file
92 static int vol_cdev_open(struct inode *inode, struct file *file) in vol_cdev_open() argument
101 if (file->f_mode & FMODE_WRITE) in vol_cdev_open()
113 file->private_data = desc; in vol_cdev_open()
117 static int vol_cdev_release(struct inode *inode, struct file *file) in vol_cdev_release() argument
119 struct ubi_volume_desc *desc = file->private_data; in vol_cdev_release()
143 static loff_t vol_cdev_llseek(struct file *file, loff_t offset, int origin) in vol_cdev_llseek() argument
145 struct ubi_volume_desc *desc = file->private_data; in vol_cdev_llseek()
154 return fixed_size_llseek(file, offset, origin, vol->used_bytes); in vol_cdev_llseek()
157 static int vol_cdev_fsync(struct file *file, loff_t start, loff_t end, in vol_cdev_fsync() argument
160 struct ubi_volume_desc *desc = file->private_data; in vol_cdev_fsync()
162 struct inode *inode = file_inode(file); in vol_cdev_fsync()
171 static ssize_t vol_cdev_read(struct file *file, __user char *buf, size_t count, in vol_cdev_read() argument
174 struct ubi_volume_desc *desc = file->private_data; in vol_cdev_read()
248 static ssize_t vol_cdev_direct_write(struct file *file, const char __user *buf, in vol_cdev_direct_write() argument
251 struct ubi_volume_desc *desc = file->private_data; in vol_cdev_direct_write()
323 static ssize_t vol_cdev_write(struct file *file, const char __user *buf, in vol_cdev_write() argument
327 struct ubi_volume_desc *desc = file->private_data; in vol_cdev_write()
332 return vol_cdev_direct_write(file, buf, count, offp); in vol_cdev_write()
378 static long vol_cdev_ioctl(struct file *file, unsigned int cmd, in vol_cdev_ioctl() argument
382 struct ubi_volume_desc *desc = file->private_data; in vol_cdev_ioctl()
831 static long ubi_cdev_ioctl(struct file *file, unsigned int cmd, in ubi_cdev_ioctl() argument
842 ubi = ubi_get_by_major(imajor(file->f_mapping->host)); in ubi_cdev_ioctl()
1003 static long ctrl_cdev_ioctl(struct file *file, unsigned int cmd, in ctrl_cdev_ioctl() argument