Home
last modified time | relevance | path

Searched refs:pages_per_huge_page (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.15/mm/
Dhugetlb.c300 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()
[all …]
Dmemory.c5284 unsigned long addr_hint, unsigned int pages_per_huge_page, in process_huge_page() argument
5290 ~(((unsigned long)pages_per_huge_page << PAGE_SHIFT) - 1); in process_huge_page()
5295 if (2 * n <= pages_per_huge_page) { in process_huge_page()
5300 for (i = pages_per_huge_page - 1; i >= 2 * n; i--) { in process_huge_page()
5306 base = pages_per_huge_page - 2 * (pages_per_huge_page - n); in process_huge_page()
5307 l = pages_per_huge_page - n; in process_huge_page()
5331 unsigned int pages_per_huge_page) in clear_gigantic_page() argument
5337 for (i = 0; i < pages_per_huge_page; in clear_gigantic_page()
5352 unsigned long addr_hint, unsigned int pages_per_huge_page) in clear_huge_page() argument
5355 ~(((unsigned long)pages_per_huge_page << PAGE_SHIFT) - 1); in clear_huge_page()
[all …]
Dhugetlb_vmemmap.c269 unsigned int nr_pages = pages_per_huge_page(h); in hugetlb_vmemmap_init()
Dhugetlb_cgroup.c116 pages_per_huge_page(&hstates[idx])); in hugetlb_cgroup_init()
469 pages_per_huge_page(&hstates[idx])); in hugetlb_cgroup_read_u64_max()
516 nr_pages = round_down(nr_pages, pages_per_huge_page(&hstates[idx])); in hugetlb_cgroup_write()
/Linux-v5.15/include/linux/
Dhugetlb.h717 static inline unsigned int pages_per_huge_page(struct hstate *h) in pages_per_huge_page() function
998 static inline unsigned int pages_per_huge_page(struct hstate *h)
Dmm.h3167 unsigned int pages_per_huge_page);
3171 unsigned int pages_per_huge_page);
3174 unsigned int pages_per_huge_page,
/Linux-v5.15/fs/hugetlbfs/
Dinode.c517 index * pages_per_huge_page(h), in remove_inode_hugepages()
518 (index + 1) * pages_per_huge_page(h)); in remove_inode_hugepages()
734 clear_huge_page(page, addr, pages_per_huge_page(h)); in hugetlbfs_fallocate()
/Linux-v5.15/ipc/
Dshm.c841 *rss_add += pages_per_huge_page(h) * mapping->nrpages; in shm_add_rss_swap()