Lines Matching refs:file

82 static ssize_t read_mem(struct file *file, char __user *buf,  in read_mem()  argument
169 static ssize_t write_mem(struct file *file, const char __user *buf, in write_mem() argument
242 int __weak phys_mem_access_prot_allowed(struct file *file, in phys_mem_access_prot_allowed() argument
256 static int uncached_access(struct file *file, phys_addr_t addr) in uncached_access() argument
263 if (file->f_flags & O_DSYNC) in uncached_access()
269 static pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, in phys_mem_access_prot() argument
275 if (uncached_access(file, offset)) in phys_mem_access_prot()
283 static unsigned long get_unmapped_area_mem(struct file *file, in get_unmapped_area_mem() argument
295 static unsigned memory_mmap_capabilities(struct file *file) in memory_mmap_capabilities() argument
301 static unsigned zero_mmap_capabilities(struct file *file) in zero_mmap_capabilities() argument
325 static int mmap_mem(struct file *file, struct vm_area_struct *vma) in mmap_mem() argument
347 if (!phys_mem_access_prot_allowed(file, vma->vm_pgoff, size, in mmap_mem()
351 vma->vm_page_prot = phys_mem_access_prot(file, vma->vm_pgoff, in mmap_mem()
369 static ssize_t read_port(struct file *file, char __user *buf, in read_port() argument
387 static ssize_t write_port(struct file *file, const char __user *buf, in write_port() argument
412 static ssize_t read_null(struct file *file, char __user *buf, in read_null() argument
418 static ssize_t write_null(struct file *file, const char __user *buf, in write_null() argument
442 static ssize_t splice_write_null(struct pipe_inode_info *pipe, struct file *out, in splice_write_null()
477 static ssize_t read_zero(struct file *file, char __user *buf, in read_zero() argument
504 static int mmap_zero(struct file *file, struct vm_area_struct *vma) in mmap_zero() argument
515 static unsigned long get_unmapped_area_zero(struct file *file, in get_unmapped_area_zero() argument
531 return mm_get_unmapped_area(current->mm, file, addr, len, pgoff, flags); in get_unmapped_area_zero()
537 static ssize_t write_full(struct file *file, const char __user *buf, in write_full() argument
548 static loff_t null_lseek(struct file *file, loff_t offset, int orig) in null_lseek() argument
550 return file->f_pos = 0; in null_lseek()
561 static loff_t memory_lseek(struct file *file, loff_t offset, int orig) in memory_lseek() argument
565 inode_lock(file_inode(file)); in memory_lseek()
568 offset += file->f_pos; in memory_lseek()
576 file->f_pos = offset; in memory_lseek()
577 ret = file->f_pos; in memory_lseek()
583 inode_unlock(file_inode(file)); in memory_lseek()
587 static int open_port(struct inode *inode, struct file *filp) in open_port()
694 static int memory_open(struct inode *inode, struct file *filp) in memory_open()