Searched refs:hstates (Results 1 – 4 of 4) sorted by relevance
86 1 << huge_page_order(&hstates[idx])); in hugetlb_cgroup_init()194 if (huge_page_order(&hstates[idx]) < HUGETLB_CGROUP_MIN_ORDER) in hugetlb_cgroup_charge_cgroup()250 if (huge_page_order(&hstates[idx]) < HUGETLB_CGROUP_MIN_ORDER) in hugetlb_cgroup_uncharge_cgroup()304 nr_pages = round_down(nr_pages, 1 << huge_page_order(&hstates[idx])); in hugetlb_cgroup_write()357 struct hstate *h = &hstates[idx]; in __hugetlb_cgroup_file_init()
45 struct hstate hstates[HUGE_MAX_HSTATE]; variable2523 return &hstates[i]; in kobj_to_hstate()2795 return &hstates[i]; in kobj_to_node_hstate()2959 h = &hstates[hugetlb_max_hstate++]; in hugetlb_add_hstate()
56 for ((h) = hstates; (h) < &hstates[hugetlb_max_hstate]; (h)++)377 extern struct hstate hstates[HUGE_MAX_HSTATE];380 #define default_hstate (hstates[default_hstate_idx])462 return hstates[index].order + PAGE_SHIFT; in hstate_index_to_shift()467 return h - hstates; in hstate_index()
1360 return h - hstates; in get_hstate_idx()