• Home
  • Raw
  • Download

Lines Matching refs:h

136 	struct hstate *h = hstate_file(file);  in hugetlbfs_file_mmap()  local
161 if (vma->vm_pgoff & (~huge_page_mask(h) >> PAGE_SHIFT)) in hugetlbfs_file_mmap()
175 vma->vm_pgoff >> huge_page_order(h), in hugetlbfs_file_mmap()
176 len >> huge_page_shift(h), vma, in hugetlbfs_file_mmap()
200 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area() local
203 if (len & ~huge_page_mask(h)) in hugetlb_get_unmapped_area()
215 addr = ALIGN(addr, huge_page_size(h)); in hugetlb_get_unmapped_area()
226 info.align_mask = PAGE_MASK & ~huge_page_mask(h); in hugetlb_get_unmapped_area()
269 struct hstate *h = hstate_file(file); in hugetlbfs_read_iter() local
272 unsigned long index = iocb->ki_pos >> huge_page_shift(h); in hugetlbfs_read_iter()
273 unsigned long offset = iocb->ki_pos & ~huge_page_mask(h); in hugetlbfs_read_iter()
283 nr = huge_page_size(h); in hugetlbfs_read_iter()
287 end_index = (isize - 1) >> huge_page_shift(h); in hugetlbfs_read_iter()
291 nr = ((isize - 1) & ~huge_page_mask(h)) + 1; in hugetlbfs_read_iter()
321 index += offset >> huge_page_shift(h); in hugetlbfs_read_iter()
322 offset &= ~huge_page_mask(h); in hugetlbfs_read_iter()
324 iocb->ki_pos = ((loff_t)index << huge_page_shift(h)) + offset; in hugetlbfs_read_iter()
413 struct hstate *h = hstate_inode(inode); in remove_inode_hugepages() local
415 const pgoff_t start = lstart >> huge_page_shift(h); in remove_inode_hugepages()
416 const pgoff_t end = lend >> huge_page_shift(h); in remove_inode_hugepages()
439 hash = hugetlb_fault_mutex_hash(h, mapping, index, 0); in remove_inode_hugepages()
456 index * pages_per_huge_page(h), in remove_inode_hugepages()
457 (index + 1) * pages_per_huge_page(h)); in remove_inode_hugepages()
507 struct hstate *h = hstate_inode(inode); in hugetlb_vmtruncate() local
509 BUG_ON(offset & ~huge_page_mask(h)); in hugetlb_vmtruncate()
523 struct hstate *h = hstate_inode(inode); in hugetlbfs_punch_hole() local
524 loff_t hpage_size = huge_page_size(h); in hugetlbfs_punch_hole()
556 struct hstate *h = hstate_inode(inode); in hugetlbfs_fallocate() local
558 loff_t hpage_size = huge_page_size(h); in hugetlbfs_fallocate()
559 unsigned long hpage_shift = huge_page_shift(h); in hugetlbfs_fallocate()
621 hash = hugetlb_fault_mutex_hash(h, mapping, index, addr); in hugetlbfs_fallocate()
641 clear_huge_page(page, addr, pages_per_huge_page(h)); in hugetlbfs_fallocate()
671 struct hstate *h = hstate_inode(inode); in hugetlbfs_setattr() local
683 if (attr->ia_size & ~huge_page_mask(h)) in hugetlbfs_setattr()
928 struct hstate *h = hstate_inode(d_inode(dentry)); in hugetlbfs_statfs() local
931 buf->f_bsize = huge_page_size(h); in hugetlbfs_statfs()
1094 hugetlbfs_size_to_hpages(struct hstate *h, unsigned long long size_opt, in hugetlbfs_size_to_hpages() argument
1101 size_opt <<= huge_page_shift(h); in hugetlbfs_size_to_hpages()
1102 size_opt *= h->max_huge_pages; in hugetlbfs_size_to_hpages()
1106 size_opt >>= huge_page_shift(h); in hugetlbfs_size_to_hpages()
1306 struct hstate *h = hstate_sizelog(page_size_log); in get_hstate_idx() local
1308 if (!h) in get_hstate_idx()
1310 return h - hstates; in get_hstate_idx()
1401 struct hstate *h; in init_hugetlbfs_fs() local
1422 for_each_hstate(h) { in init_hugetlbfs_fs()
1424 unsigned ps_kb = 1U << (h->order + PAGE_SHIFT - 10); in init_hugetlbfs_fs()