Lines Matching refs:h
27 #define for_each_hstate(h) \ argument
28 for ((h) = hstates; (h) < &hstates[hugetlb_max_hstate]; (h)++)
265 struct page *alloc_huge_page_node(struct hstate *h, int nid);
268 int __init alloc_bootmem_huge_page(struct hstate *h);
306 static inline unsigned long huge_page_size(struct hstate *h) in huge_page_size() argument
308 return (unsigned long)PAGE_SIZE << h->order; in huge_page_size()
315 static inline unsigned long huge_page_mask(struct hstate *h) in huge_page_mask() argument
317 return h->mask; in huge_page_mask()
320 static inline unsigned int huge_page_order(struct hstate *h) in huge_page_order() argument
322 return h->order; in huge_page_order()
325 static inline unsigned huge_page_shift(struct hstate *h) in huge_page_shift() argument
327 return h->order + PAGE_SHIFT; in huge_page_shift()
330 static inline unsigned int pages_per_huge_page(struct hstate *h) in pages_per_huge_page() argument
332 return 1 << h->order; in pages_per_huge_page()
335 static inline unsigned int blocks_per_huge_page(struct hstate *h) in blocks_per_huge_page() argument
337 return huge_page_size(h) / 512; in blocks_per_huge_page()
360 static inline int hstate_index(struct hstate *h) in hstate_index() argument
362 return h - hstates; in hstate_index()
367 #define alloc_huge_page_node(h, nid) NULL argument
368 #define alloc_bootmem_huge_page(h) NULL argument
373 #define huge_page_size(h) PAGE_SIZE argument
374 #define huge_page_mask(h) PAGE_MASK argument
377 #define huge_page_order(h) 0 argument
378 #define huge_page_shift(h) PAGE_SHIFT argument
379 static inline unsigned int pages_per_huge_page(struct hstate *h) in pages_per_huge_page() argument
384 #define hstate_index(h) 0 argument