Lines Matching refs:file
131 static int hugetlbfs_file_mmap(struct file *file, struct vm_area_struct *vma) in hugetlbfs_file_mmap() argument
133 struct inode *inode = file_inode(file); in hugetlbfs_file_mmap()
137 struct hstate *h = hstate_file(file); in hugetlbfs_file_mmap()
176 file_accessed(file); in hugetlbfs_file_mmap()
200 hugetlb_get_unmapped_area_bottomup(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area_bottomup() argument
203 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_bottomup()
216 hugetlb_get_unmapped_area_topdown(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area_topdown() argument
219 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_topdown()
248 hugetlb_get_unmapped_area(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area() argument
253 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
262 if (prepare_hugepage_range(file, addr, len)) in hugetlb_get_unmapped_area()
281 return hugetlb_get_unmapped_area_topdown(file, addr, len, in hugetlb_get_unmapped_area()
283 return hugetlb_get_unmapped_area_bottomup(file, addr, len, in hugetlb_get_unmapped_area()
324 struct file *file = iocb->ki_filp; in hugetlbfs_read_iter() local
325 struct hstate *h = hstate_file(file); in hugetlbfs_read_iter()
326 struct address_space *mapping = file->f_mapping; in hugetlbfs_read_iter()
384 static int hugetlbfs_write_begin(struct file *file, in hugetlbfs_write_begin() argument
392 static int hugetlbfs_write_end(struct file *file, struct address_space *mapping, in hugetlbfs_write_end() argument
632 static long hugetlbfs_fallocate(struct file *file, int mode, loff_t offset, in hugetlbfs_fallocate() argument
635 struct inode *inode = file_inode(file); in hugetlbfs_fallocate()
680 pseudo_vma.vm_file = file; in hugetlbfs_fallocate()
1460 struct file *hugetlb_file_setup(const char *name, size_t size, in hugetlb_file_setup()
1467 struct file *file; in hugetlb_file_setup() local
1491 file = ERR_PTR(-ENOSPC); in hugetlb_file_setup()
1504 file = ERR_PTR(-ENOMEM); in hugetlb_file_setup()
1506 file = alloc_file_pseudo(inode, mnt, name, O_RDWR, in hugetlb_file_setup()
1508 if (!IS_ERR(file)) in hugetlb_file_setup()
1509 return file; in hugetlb_file_setup()
1517 return file; in hugetlb_file_setup()