Home
last modified time | relevance | path

Searched refs:hstates (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/mm/
H A Dhugetlb_cgroup.c113 pages_per_huge_page(&hstates[idx])); in hugetlb_cgroup_init()
269 if (huge_page_order(&hstates[idx]) < HUGETLB_CGROUP_MIN_ORDER) in __hugetlb_cgroup_charge_cgroup()
400 if (huge_page_order(&hstates[idx]) < HUGETLB_CGROUP_MIN_ORDER) in __hugetlb_cgroup_uncharge_cgroup()
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()
718 struct hstate *h = &hstates[idx]; in __hugetlb_cgroup_file_dfl_init()
789 struct hstate *h = &hstates[idx]; in __hugetlb_cgroup_file_legacy_init()
H A Dhugetlb.c53 struct hstate hstates[HUGE_MAX_HSTATE]; variable
3737 return &hstates[i]; in kobj_to_hstate()
4114 return &hstates[i]; in kobj_to_node_hstate()
4337 h = &hstates[hugetlb_max_hstate++]; in hugetlb_add_hstate()
/openbmc/linux/include/linux/
H A Dhugetlb.h122 for ((h) = hstates; (h) < &hstates[hugetlb_max_hstate]; (h)++)
772 extern struct hstate hstates[HUGE_MAX_HSTATE];
775 #define default_hstate (hstates[default_hstate_idx])
880 return hstates[index].order + PAGE_SHIFT; in hstate_index_to_shift()
885 return h - hstates; in hstate_index()