Home
last modified time | relevance | path

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

/linux-6.1.9/mm/
Dhugetlb_cgroup.c113 pages_per_huge_page(&hstates[idx])); in hugetlb_cgroup_init()
268 if (huge_page_order(&hstates[idx]) < HUGETLB_CGROUP_MIN_ORDER) in __hugetlb_cgroup_charge_cgroup()
399 if (huge_page_order(&hstates[idx]) < HUGETLB_CGROUP_MIN_ORDER) in __hugetlb_cgroup_uncharge_cgroup()
564 pages_per_huge_page(&hstates[idx])); in hugetlb_cgroup_read_u64_max()
611 nr_pages = round_down(nr_pages, pages_per_huge_page(&hstates[idx])); in hugetlb_cgroup_write()
717 struct hstate *h = &hstates[idx]; in __hugetlb_cgroup_file_dfl_init()
788 struct hstate *h = &hstates[idx]; in __hugetlb_cgroup_file_legacy_init()
Dhugetlb.c52 struct hstate hstates[HUGE_MAX_HSTATE]; variable
3689 return &hstates[i]; in kobj_to_hstate()
4066 return &hstates[i]; in kobj_to_node_hstate()
4282 h = &hstates[hugetlb_max_hstate++]; in hugetlb_add_hstate()
/linux-6.1.9/include/linux/
Dhugetlb.h130 for ((h) = hstates; (h) < &hstates[hugetlb_max_hstate]; (h)++)
726 extern struct hstate hstates[HUGE_MAX_HSTATE];
729 #define default_hstate (hstates[default_hstate_idx])
834 return hstates[index].order + PAGE_SHIFT; in hstate_index_to_shift()
839 return h - hstates; in hstate_index()