Home
last modified time | relevance | path

Searched refs:hstates (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/mm/
H A Dhugetlb_cgroup.c116 1 << huge_page_order(&hstates[idx])); in hugetlb_cgroup_init()
245 if (huge_page_order(&hstates[idx]) < HUGETLB_CGROUP_MIN_ORDER) in __hugetlb_cgroup_charge_cgroup()
357 if (huge_page_order(&hstates[idx]) < HUGETLB_CGROUP_MIN_ORDER) in __hugetlb_cgroup_uncharge_cgroup()
469 1 << huge_page_order(&hstates[idx])); in hugetlb_cgroup_read_u64_max()
516 nr_pages = round_down(nr_pages, 1 << huge_page_order(&hstates[idx])); in hugetlb_cgroup_write()
622 struct hstate *h = &hstates[idx]; in __hugetlb_cgroup_file_dfl_init()
686 struct hstate *h = &hstates[idx]; in __hugetlb_cgroup_file_legacy_init()
H A Dhugetlb.c48 struct hstate hstates[HUGE_MAX_HSTATE]; variable
2816 return &hstates[i]; in kobj_to_hstate()
3090 return &hstates[i]; in kobj_to_node_hstate()
3272 h = &hstates[hugetlb_max_hstate++]; in hugetlb_add_hstate()
3327 * But we need to allocate >= MAX_ORDER hstates here early to still in hugepages_setup()
/kernel/linux/linux-5.10/include/linux/
H A Dhugetlb.h103 for ((h) = hstates; (h) < &hstates[hugetlb_max_hstate]; (h)++)
530 extern struct hstate hstates[HUGE_MAX_HSTATE];
533 #define default_hstate (hstates[default_hstate_idx])
627 return hstates[index].order + PAGE_SHIFT; in hstate_index_to_shift()
632 return h - hstates; in hstate_index()
/kernel/linux/linux-6.6/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
3725 return &hstates[i]; in kobj_to_hstate()
4102 return &hstates[i]; in kobj_to_node_hstate()
4325 h = &hstates[hugetlb_max_hstate++]; in hugetlb_add_hstate()
4433 * But we need to allocate gigantic hstates here early to still in hugepages_setup()
/kernel/linux/linux-6.6/include/linux/
H A Dhugetlb.h122 for ((h) = hstates; (h) < &hstates[hugetlb_max_hstate]; (h)++)
771 extern struct hstate hstates[HUGE_MAX_HSTATE];
774 #define default_hstate (hstates[default_hstate_idx])
879 return hstates[index].order + PAGE_SHIFT; in hstate_index_to_shift()
884 return h - hstates; in hstate_index()
/kernel/linux/linux-5.10/fs/hugetlbfs/
H A Dinode.c1453 return h - hstates; in get_hstate_idx()
1564 mnt = mount_one_hugetlbfs(&hstates[default_hstate_idx]); in init_hugetlbfs_fs()
1571 /* other hstates are optional */ in init_hugetlbfs_fs()

Completed in 25 milliseconds