Lines Matching refs:h
44 #define for_each_hstate(h) \ argument
45 for ((h) = hstates; (h) < &hstates[hugetlb_max_hstate]; (h)++)
47 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
323 struct page *alloc_huge_page_node(struct hstate *h, int nid);
328 int __init alloc_bootmem_huge_page(struct hstate *h);
367 static inline unsigned long huge_page_size(struct hstate *h) in huge_page_size() argument
369 return (unsigned long)PAGE_SIZE << h->order; in huge_page_size()
376 static inline unsigned long huge_page_mask(struct hstate *h) in huge_page_mask() argument
378 return h->mask; in huge_page_mask()
381 static inline unsigned int huge_page_order(struct hstate *h) in huge_page_order() argument
383 return h->order; in huge_page_order()
386 static inline unsigned huge_page_shift(struct hstate *h) in huge_page_shift() argument
388 return h->order + PAGE_SHIFT; in huge_page_shift()
391 static inline bool hstate_is_gigantic(struct hstate *h) in hstate_is_gigantic() argument
393 return huge_page_order(h) >= MAX_ORDER; in hstate_is_gigantic()
396 static inline unsigned int pages_per_huge_page(struct hstate *h) in pages_per_huge_page() argument
398 return 1 << h->order; in pages_per_huge_page()
401 static inline unsigned int blocks_per_huge_page(struct hstate *h) in blocks_per_huge_page() argument
403 return huge_page_size(h) / 512; in blocks_per_huge_page()
427 static inline int hstate_index(struct hstate *h) in hstate_index() argument
429 return h - hstates; in hstate_index()
445 static inline int hugepage_migration_supported(struct hstate *h) in hugepage_migration_supported() argument
448 return huge_page_shift(h) == PMD_SHIFT; in hugepage_migration_supported()
454 static inline spinlock_t *huge_pte_lockptr(struct hstate *h, in huge_pte_lockptr() argument
457 if (huge_page_size(h) == PMD_SIZE) in huge_pte_lockptr()
459 VM_BUG_ON(huge_page_size(h) == PAGE_SIZE); in huge_pte_lockptr()
474 #define alloc_huge_page_node(h, nid) NULL argument
476 #define alloc_bootmem_huge_page(h) NULL argument
482 #define huge_page_size(h) PAGE_SIZE argument
483 #define huge_page_mask(h) PAGE_MASK argument
486 #define huge_page_order(h) 0 argument
487 #define huge_page_shift(h) PAGE_SHIFT argument
488 static inline unsigned int pages_per_huge_page(struct hstate *h) in pages_per_huge_page() argument
493 #define hstate_index(h) 0 argument
500 #define hugepage_migration_supported(h) 0 argument
502 static inline spinlock_t *huge_pte_lockptr(struct hstate *h, in huge_pte_lockptr() argument
509 static inline spinlock_t *huge_pte_lock(struct hstate *h, in huge_pte_lock() argument
514 ptl = huge_pte_lockptr(h, mm, pte); in huge_pte_lock()