Lines Matching refs:pages_per_huge_page
300 resv->pages_per_hpage = pages_per_huge_page(h); in record_hugetlb_cgroup_uncharge_info()
304 VM_BUG_ON(resv->pages_per_hpage != pages_per_huge_page(h)); in record_hugetlb_cgroup_uncharge_info()
890 resv_map->pages_per_hpage = pages_per_huge_page(h); in resv_map_set_hugetlb_cgroup_uncharge_info()
1302 unsigned long nr_pages = pages_per_huge_page(h); in alloc_gigantic_page()
1472 for (i = 0; i < pages_per_huge_page(h); in __update_and_free_page()
1617 pages_per_huge_page(h), page); in free_huge_page()
1619 pages_per_huge_page(h), page); in free_huge_page()
2795 idx, pages_per_huge_page(h), &h_cg); in alloc_huge_page()
2800 ret = hugetlb_cgroup_charge_cgroup(idx, pages_per_huge_page(h), &h_cg); in alloc_huge_page()
2824 hugetlb_cgroup_commit_charge(idx, pages_per_huge_page(h), h_cg, page); in alloc_huge_page()
2829 hugetlb_cgroup_commit_charge_rsvd(idx, pages_per_huge_page(h), in alloc_huge_page()
2854 pages_per_huge_page(h), page); in alloc_huge_page()
2859 hugetlb_cgroup_uncharge_cgroup(idx, pages_per_huge_page(h), h_cg); in alloc_huge_page()
2862 hugetlb_cgroup_uncharge_cgroup_rsvd(idx, pages_per_huge_page(h), in alloc_huge_page()
2933 adjust_managed_page_count(page, pages_per_huge_page(h)); in gather_bootmem_prealloc()
4063 nr_total_pages += h->nr_huge_pages * pages_per_huge_page(h); in hugetlb_total_pages()
4265 hugetlb_count_add(pages_per_huge_page(hstate_vma(vma)), vma->vm_mm); in hugetlb_install_page()
4279 unsigned long npages = pages_per_huge_page(h); in copy_hugetlb_page_range()
4517 hugetlb_count_sub(pages_per_huge_page(h), mm); in __unmap_hugepage_range()
4728 pages_per_huge_page(h)); in hugetlb_cow()
4931 clear_huge_page(page, address, pages_per_huge_page(h)); in hugetlb_no_page()
5004 hugetlb_count_add(pages_per_huge_page(h), mm); in hugetlb_no_page()
5264 pages_per_huge_page(h), false); in hugetlb_mcopy_atomic_pte()
5379 hugetlb_count_add(pages_per_huge_page(h), dst_mm); in hugetlb_mcopy_atomic_pte()
5539 (remainder >= pages_per_huge_page(h))) { in follow_hugetlb_page()
5541 remainder -= pages_per_huge_page(h); in follow_hugetlb_page()
5542 i += pages_per_huge_page(h); in follow_hugetlb_page()
5548 refs = min3(pages_per_huge_page(h) - pfn_offset, remainder, in follow_hugetlb_page()
5748 chg * pages_per_huge_page(h), &h_cg) < 0) in hugetlb_reserve_pages()
5807 (chg - add) * pages_per_huge_page(h), h_cg); in hugetlb_reserve_pages()
5829 chg * pages_per_huge_page(h), h_cg); in hugetlb_reserve_pages()