• Home
  • Raw
  • Download

Lines Matching refs:h

85 	struct hstate *h = hstate_file(file);  in hugetlbfs_file_mmap()  local
98 if (vma->vm_pgoff & ~(huge_page_mask(h) >> PAGE_SHIFT)) in hugetlbfs_file_mmap()
110 vma->vm_pgoff >> huge_page_order(h), in hugetlbfs_file_mmap()
111 len >> huge_page_shift(h), vma, in hugetlbfs_file_mmap()
137 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area() local
139 if (len & ~huge_page_mask(h)) in hugetlb_get_unmapped_area()
151 addr = ALIGN(addr, huge_page_size(h)); in hugetlb_get_unmapped_area()
164 addr = ALIGN(start_addr, huge_page_size(h)); in hugetlb_get_unmapped_area()
182 addr = ALIGN(vma->vm_end, huge_page_size(h)); in hugetlb_get_unmapped_area()
233 struct hstate *h = hstate_file(filp); in hugetlbfs_read() local
236 unsigned long index = *ppos >> huge_page_shift(h); in hugetlbfs_read()
237 unsigned long offset = *ppos & ~huge_page_mask(h); in hugetlbfs_read()
252 end_index = (isize - 1) >> huge_page_shift(h); in hugetlbfs_read()
259 nr = huge_page_size(h); in hugetlbfs_read()
263 nr = ((isize - 1) & ~huge_page_mask(h)) + 1; in hugetlbfs_read()
300 index += offset >> huge_page_shift(h); in hugetlbfs_read()
301 offset &= ~huge_page_mask(h); in hugetlbfs_read()
311 *ppos = ((loff_t)index << huge_page_shift(h)) + offset; in hugetlbfs_read()
352 struct hstate *h = hstate_inode(inode); in truncate_hugepages() local
354 const pgoff_t start = lstart >> huge_page_shift(h); in truncate_hugepages()
463 struct hstate *h = hstate_inode(inode); in hugetlb_vmtruncate() local
465 BUG_ON(offset & ~huge_page_mask(h)); in hugetlb_vmtruncate()
480 struct hstate *h = hstate_inode(inode); in hugetlbfs_setattr() local
492 if (!(attr->ia_size & ~huge_page_mask(h))) in hugetlbfs_setattr()
625 struct hstate *h = hstate_inode(dentry->d_inode); in hugetlbfs_statfs() local
628 buf->f_bsize = huge_page_size(h); in hugetlbfs_statfs()
831 struct hstate *h = pconfig->hstate; in hugetlbfs_parse_options() local
833 size <<= huge_page_shift(h); in hugetlbfs_parse_options()
834 size *= h->max_huge_pages; in hugetlbfs_parse_options()
837 pconfig->nr_blocks = (size >> huge_page_shift(h)); in hugetlbfs_parse_options()