Lines Matching refs:pages_per_huge_page
312 resv->pages_per_hpage = pages_per_huge_page(h); in record_hugetlb_cgroup_uncharge_info()
316 VM_BUG_ON(resv->pages_per_hpage != pages_per_huge_page(h)); in record_hugetlb_cgroup_uncharge_info()
900 resv_map->pages_per_hpage = pages_per_huge_page(h); in resv_map_set_hugetlb_cgroup_uncharge_info()
1358 unsigned long nr_pages = pages_per_huge_page(h); in alloc_gigantic_page()
1547 for (i = 0; i < pages_per_huge_page(h); in __update_and_free_page()
1698 pages_per_huge_page(h), page); in free_huge_page()
1700 pages_per_huge_page(h), page); in free_huge_page()
2893 idx, pages_per_huge_page(h), &h_cg); in alloc_huge_page()
2898 ret = hugetlb_cgroup_charge_cgroup(idx, pages_per_huge_page(h), &h_cg); in alloc_huge_page()
2922 hugetlb_cgroup_commit_charge(idx, pages_per_huge_page(h), h_cg, page); in alloc_huge_page()
2927 hugetlb_cgroup_commit_charge_rsvd(idx, pages_per_huge_page(h), in alloc_huge_page()
2952 pages_per_huge_page(h), page); in alloc_huge_page()
2957 hugetlb_cgroup_uncharge_cgroup(idx, pages_per_huge_page(h), h_cg); in alloc_huge_page()
2960 hugetlb_cgroup_uncharge_cgroup_rsvd(idx, pages_per_huge_page(h), in alloc_huge_page()
3037 adjust_managed_page_count(page, pages_per_huge_page(h)); in gather_bootmem_prealloc()
3441 for (i = 0; i < pages_per_huge_page(h); in demote_free_huge_page()
3442 i += pages_per_huge_page(target_hstate)) { in demote_free_huge_page()
3462 target_hstate->max_huge_pages += pages_per_huge_page(h); in demote_free_huge_page()
4487 nr_total_pages += h->nr_huge_pages * pages_per_huge_page(h); in hugetlb_total_pages()
4689 hugetlb_count_add(pages_per_huge_page(hstate_vma(vma)), vma->vm_mm); in hugetlb_install_page()
4703 unsigned long npages = pages_per_huge_page(h); in copy_hugetlb_page_range()
5016 hugetlb_count_sub(pages_per_huge_page(h), mm); in __unmap_hugepage_range()
5243 pages_per_huge_page(h)); in hugetlb_cow()
5446 clear_huge_page(page, address, pages_per_huge_page(h)); in hugetlb_no_page()
5519 hugetlb_count_add(pages_per_huge_page(h), mm); in hugetlb_no_page()
5780 pages_per_huge_page(h), false); in hugetlb_mcopy_atomic_pte()
5895 hugetlb_count_add(pages_per_huge_page(h), dst_mm); in hugetlb_mcopy_atomic_pte()
6055 (remainder >= pages_per_huge_page(h))) { in follow_hugetlb_page()
6057 remainder -= pages_per_huge_page(h); in follow_hugetlb_page()
6058 i += pages_per_huge_page(h); in follow_hugetlb_page()
6064 refs = min3(pages_per_huge_page(h) - pfn_offset, remainder, in follow_hugetlb_page()
6264 chg * pages_per_huge_page(h), &h_cg) < 0) in hugetlb_reserve_pages()
6323 (chg - add) * pages_per_huge_page(h), h_cg); in hugetlb_reserve_pages()
6345 chg * pages_per_huge_page(h), h_cg); in hugetlb_reserve_pages()