Lines Matching refs:file
46 static loff_t msr_seek(struct file *file, loff_t offset, int orig) in msr_seek() argument
49 struct inode *inode = file_inode(file); in msr_seek()
54 file->f_pos = offset; in msr_seek()
55 ret = file->f_pos; in msr_seek()
58 file->f_pos += offset; in msr_seek()
59 ret = file->f_pos; in msr_seek()
68 static ssize_t msr_read(struct file *file, char __user *buf, in msr_read() argument
74 int cpu = iminor(file_inode(file)); in msr_read()
96 static ssize_t msr_write(struct file *file, const char __user *buf, in msr_write() argument
102 int cpu = iminor(file_inode(file)); in msr_write()
124 static long msr_ioctl(struct file *file, unsigned int ioc, unsigned long arg) in msr_ioctl() argument
128 int cpu = iminor(file_inode(file)); in msr_ioctl()
133 if (!(file->f_mode & FMODE_READ)) { in msr_ioctl()
149 if (!(file->f_mode & FMODE_WRITE)) { in msr_ioctl()
172 static int msr_open(struct inode *inode, struct file *file) in msr_open() argument
174 unsigned int cpu = iminor(file_inode(file)); in msr_open()