Searched refs:pages_per_huge_page (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/mm/ |
H A D | hugetlb_vmemmap.h | 25 return pages_per_huge_page(h) * sizeof(struct page); in hugetlb_vmemmap_size()
|
H A D | hugetlb.c | 487 resv->pages_per_hpage = pages_per_huge_page(h); in record_hugetlb_cgroup_uncharge_info() 491 VM_BUG_ON(resv->pages_per_hpage != pages_per_huge_page(h)); in record_hugetlb_cgroup_uncharge_info() 1083 resv_map->pages_per_hpage = pages_per_huge_page(h); in resv_map_set_hugetlb_cgroup_uncharge_info() 1575 unsigned long nr_pages = pages_per_huge_page(h); in alloc_gigantic_folio() 1937 pages_per_huge_page(h), folio); in free_huge_folio() 1939 pages_per_huge_page(h), folio); in free_huge_folio() 3106 idx, pages_per_huge_page(h), &h_cg); in alloc_hugetlb_folio() 3111 ret = hugetlb_cgroup_charge_cgroup(idx, pages_per_huge_page(h), &h_cg); in alloc_hugetlb_folio() 3137 hugetlb_cgroup_commit_charge(idx, pages_per_huge_page(h), h_cg, folio); in alloc_hugetlb_folio() 3142 hugetlb_cgroup_commit_charge_rsvd(idx, pages_per_huge_page( in alloc_hugetlb_folio() [all...] |
H A D | memory.c | 5961 unsigned long addr_hint, unsigned int pages_per_huge_page, in process_huge_page() argument 5967 ~(((unsigned long)pages_per_huge_page << PAGE_SHIFT) - 1); in process_huge_page() 5972 if (2 * n <= pages_per_huge_page) { in process_huge_page() 5977 for (i = pages_per_huge_page - 1; i >= 2 * n; i--) { in process_huge_page() 5985 base = pages_per_huge_page - 2 * (pages_per_huge_page - n); in process_huge_page() 5986 l = pages_per_huge_page - n; in process_huge_page() 6017 unsigned int pages_per_huge_page) in clear_gigantic_page() argument 6023 for (i = 0; i < pages_per_huge_page; i++) { in clear_gigantic_page() 6039 unsigned long addr_hint, unsigned int pages_per_huge_page) in clear_huge_page() argument 6042 ~(((unsigned long)pages_per_huge_page << PAGE_SHIFT) - 1); in clear_huge_page() [all …]
|
H A D | hugetlb_cgroup.c | 113 pages_per_huge_page(&hstates[idx])); in hugetlb_cgroup_init() 565 pages_per_huge_page(&hstates[idx])); in hugetlb_cgroup_read_u64_max() 612 nr_pages = round_down(nr_pages, pages_per_huge_page(&hstates[idx])); in hugetlb_cgroup_write()
|
/openbmc/linux/include/linux/ |
H A D | hugetlb.h | 838 static inline unsigned int pages_per_huge_page(const struct hstate *h) in pages_per_huge_page() function 1136 static inline unsigned int pages_per_huge_page(struct hstate *h)
|
H A D | mm.h | 3950 unsigned int pages_per_huge_page);
|
/openbmc/linux/fs/hugetlbfs/ |
H A D | inode.c | 506 start = index * pages_per_huge_page(h); in hugetlb_unmap_file_folio() 507 end = (index + 1) * pages_per_huge_page(h); in hugetlb_unmap_file_folio() 923 clear_huge_page(&folio->page, addr, pages_per_huge_page(h)); in hugetlbfs_fallocate()
|
/openbmc/linux/ipc/ |
H A D | shm.c | 947 *rss_add += pages_per_huge_page(h) * mapping->nrpages; in shm_add_rss_swap()
|