• Home
  • Raw
  • Download

Lines Matching refs:file

160 		struct file *file;  in close_pdeo()  local
165 file = pdeo->file; in close_pdeo()
166 pde->proc_fops->release(file_inode(file), file); in close_pdeo()
198 static loff_t proc_reg_llseek(struct file *file, loff_t offset, int whence) in proc_reg_llseek() argument
200 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_llseek()
208 rv = llseek(file, offset, whence); in proc_reg_llseek()
214 static ssize_t proc_reg_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) in proc_reg_read() argument
216 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_read()
223 rv = read(file, buf, count, ppos); in proc_reg_read()
229 static ssize_t proc_reg_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) in proc_reg_write() argument
231 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_write()
238 rv = write(file, buf, count, ppos); in proc_reg_write()
244 static __poll_t proc_reg_poll(struct file *file, struct poll_table_struct *pts) in proc_reg_poll() argument
246 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_poll()
253 rv = poll(file, pts); in proc_reg_poll()
259 static long proc_reg_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in proc_reg_unlocked_ioctl() argument
261 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_unlocked_ioctl()
268 rv = ioctl(file, cmd, arg); in proc_reg_unlocked_ioctl()
275 static long proc_reg_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in proc_reg_compat_ioctl() argument
277 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_compat_ioctl()
284 rv = compat_ioctl(file, cmd, arg); in proc_reg_compat_ioctl()
291 static int proc_reg_mmap(struct file *file, struct vm_area_struct *vma) in proc_reg_mmap() argument
293 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_mmap()
300 rv = mmap(file, vma); in proc_reg_mmap()
307 proc_reg_get_unmapped_area(struct file *file, unsigned long orig_addr, in proc_reg_get_unmapped_area() argument
311 struct proc_dir_entry *pde = PDE(file_inode(file)); in proc_reg_get_unmapped_area()
324 rv = get_area(file, orig_addr, len, pgoff, flags); in proc_reg_get_unmapped_area()
332 static int proc_reg_open(struct inode *inode, struct file *file) in proc_reg_open() argument
365 rv = open(inode, file); in proc_reg_open()
370 pdeo->file = file; in proc_reg_open()
385 static int proc_reg_release(struct inode *inode, struct file *file) in proc_reg_release() argument
391 if (pdeo->file == file) { in proc_reg_release()