Searched refs:size_to_hstate (Results 1 – 3 of 3) sorted by relevance
720 struct hstate *size_to_hstate(unsigned long size);755 return size_to_hstate(1UL << page_size_log); in hstate_sizelog()829 return size_to_hstate(page_size(page)); in page_hstate()1043 static inline struct hstate *size_to_hstate(unsigned long size)
1793 h = size_to_hstate(page_size(page)); in free_hpage_workfn()1837 struct hstate *size_to_hstate(unsigned long size) in size_to_hstate() function3581 target_hstate = size_to_hstate(PAGE_SIZE << h->demote_order); in demote_free_huge_page()3941 demote_hstate = size_to_hstate(demote_size); in demote_size_store()4221 default_hstate_idx = hstate_index(size_to_hstate(HPAGE_SIZE)); in hugetlb_init()4277 if (size_to_hstate(PAGE_SIZE << order)) { in hugetlb_add_hstate()4427 h = size_to_hstate(size); in hugepagesz_setup()4483 default_hstate_idx = hstate_index(size_to_hstate(size)); in default_hugepagesz_setup()
1397 ctx->hstate = size_to_hstate(ps); in hugetlbfs_parse_param()