Searched refs:huge_page_shift (Results 1 – 12 of 12) sorted by relevance
157 len >> huge_page_shift(h), vma, in hugetlbfs_file_mmap()316 unsigned long index = iocb->ki_pos >> huge_page_shift(h); in hugetlbfs_read_iter()331 end_index = (isize - 1) >> huge_page_shift(h); in hugetlbfs_read_iter()381 index += offset >> huge_page_shift(h); in hugetlbfs_read_iter()384 iocb->ki_pos = ((loff_t)index << huge_page_shift(h)) + offset; in hugetlbfs_read_iter()682 lstart >> huge_page_shift(h), in remove_inode_hugepages()728 pgoff_t idx = start >> huge_page_shift(h); in hugetlbfs_zero_partial_page()809 unsigned long hpage_shift = huge_page_shift(h); in hugetlbfs_fallocate()1154 unsigned hpage_shift = huge_page_shift(sbinfo->hstate); in hugetlbfs_show_options()1350 size_opt <<= huge_page_shift(h); in hugetlbfs_size_to_hpages()[all …]
772 static inline unsigned huge_page_shift(struct hstate *h) in huge_page_shift() function854 if ((huge_page_shift(h) == PMD_SHIFT) || in arch_hugetlb_migration_supported()855 (huge_page_shift(h) == PUD_SHIFT) || in arch_hugetlb_migration_supported()856 (huge_page_shift(h) == PGDIR_SHIFT)) in arch_hugetlb_migration_supported()1135 static inline unsigned int huge_page_shift(struct hstate *h)
23 shift = huge_page_shift(hstate); in hstate_get_psize()
190 unsigned long tsize = huge_page_shift(hstate) - 10; in flush_hugetlb_page()
243 ? huge_page_shift(hstate_vma(vma)) \
795 return shift_to_mmu_psize(huge_page_shift(hstate)); in file_to_psize()
622 vma_pageshift = huge_page_shift(hstate_vma(vma)); in kvm_riscv_gstage_map()
994 return ((address - vma->vm_start) >> huge_page_shift(h)) + in vma_hugecache_offset()5140 unsigned int shift = huge_page_shift(hstate_vma(vma)); in make_huge_pte()6085 size = i_size_read(mapping->host) >> huge_page_shift(h); in hugetlb_no_page()6664 if (idx >= (i_size_read(mapping->host) >> huge_page_shift(h))) in hugetlb_mfill_atomic_pte()6849 unsigned int shift = huge_page_shift(hstate_vma(vma)); in hugetlb_change_protection()
841 return check_hwpoisoned_entry(pte, addr, huge_page_shift(h), in hwpoison_hugetlb_range()
318 unsigned int shift = huge_page_shift(h); in remove_migration_pte()
3678 pgshift = huge_page_shift(h); in memfd_pin_folios()
1365 return huge_page_shift(hstate_vma(vma)); in get_vma_page_shift()