• Home
  • Raw
  • Download

Lines Matching refs:h

103 	struct hstate *h = hstate_file(file);  in hugetlbfs_file_mmap()  local
116 if (vma->vm_pgoff & (~huge_page_mask(h) >> PAGE_SHIFT)) in hugetlbfs_file_mmap()
128 vma->vm_pgoff >> huge_page_order(h), in hugetlbfs_file_mmap()
129 len >> huge_page_shift(h), vma, in hugetlbfs_file_mmap()
154 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area() local
157 if (len & ~huge_page_mask(h)) in hugetlb_get_unmapped_area()
169 addr = ALIGN(addr, huge_page_size(h)); in hugetlb_get_unmapped_area()
180 info.align_mask = PAGE_MASK & ~huge_page_mask(h); in hugetlb_get_unmapped_area()
232 struct hstate *h = hstate_file(filp); in hugetlbfs_read() local
235 unsigned long index = *ppos >> huge_page_shift(h); in hugetlbfs_read()
236 unsigned long offset = *ppos & ~huge_page_mask(h); in hugetlbfs_read()
251 nr = huge_page_size(h); in hugetlbfs_read()
255 end_index = (isize - 1) >> huge_page_shift(h); in hugetlbfs_read()
259 nr = ((isize - 1) & ~huge_page_mask(h)) + 1; in hugetlbfs_read()
296 index += offset >> huge_page_shift(h); in hugetlbfs_read()
297 offset &= ~huge_page_mask(h); in hugetlbfs_read()
304 *ppos = ((loff_t)index << huge_page_shift(h)) + offset; in hugetlbfs_read()
333 struct hstate *h = hstate_inode(inode); in truncate_hugepages() local
335 const pgoff_t start = lstart >> huge_page_shift(h); in truncate_hugepages()
401 struct hstate *h = hstate_inode(inode); in hugetlb_vmtruncate() local
403 BUG_ON(offset & ~huge_page_mask(h)); in hugetlb_vmtruncate()
418 struct hstate *h = hstate_inode(inode); in hugetlbfs_setattr() local
430 if (attr->ia_size & ~huge_page_mask(h)) in hugetlbfs_setattr()
595 struct hstate *h = hstate_inode(dentry->d_inode); in hugetlbfs_statfs() local
598 buf->f_bsize = huge_page_size(h); in hugetlbfs_statfs()
821 struct hstate *h = pconfig->hstate; in hugetlbfs_parse_options() local
823 size <<= huge_page_shift(h); in hugetlbfs_parse_options()
824 size *= h->max_huge_pages; in hugetlbfs_parse_options()
827 pconfig->nr_blocks = (size >> huge_page_shift(h)); in hugetlbfs_parse_options()
912 struct hstate *h = hstate_sizelog(page_size_log); in get_hstate_idx() local
914 if (!h) in get_hstate_idx()
916 return h - hstates; in get_hstate_idx()
1006 struct hstate *h; in init_hugetlbfs_fs() local
1026 for_each_hstate(h) { in init_hugetlbfs_fs()
1028 unsigned ps_kb = 1U << (h->order + PAGE_SHIFT - 10); in init_hugetlbfs_fs()
1055 struct hstate *h; in exit_hugetlbfs_fs() local
1066 for_each_hstate(h) in exit_hugetlbfs_fs()