Lines Matching refs:h
47 #define for_each_hstate(h) \ argument
48 for ((h) = hstates; (h) < &hstates[hugetlb_max_hstate]; (h)++)
50 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
94 u32 hugetlb_fault_mutex_hash(struct hstate *h, struct mm_struct *mm,
335 struct page *alloc_huge_page_node(struct hstate *h, int nid);
342 int __init alloc_bootmem_huge_page(struct hstate *h);
381 static inline unsigned long huge_page_size(struct hstate *h) in huge_page_size() argument
383 return (unsigned long)PAGE_SIZE << h->order; in huge_page_size()
390 static inline unsigned long huge_page_mask(struct hstate *h) in huge_page_mask() argument
392 return h->mask; in huge_page_mask()
395 static inline unsigned int huge_page_order(struct hstate *h) in huge_page_order() argument
397 return h->order; in huge_page_order()
400 static inline unsigned huge_page_shift(struct hstate *h) in huge_page_shift() argument
402 return h->order + PAGE_SHIFT; in huge_page_shift()
405 static inline bool hstate_is_gigantic(struct hstate *h) in hstate_is_gigantic() argument
407 return huge_page_order(h) >= MAX_ORDER; in hstate_is_gigantic()
410 static inline unsigned int pages_per_huge_page(struct hstate *h) in pages_per_huge_page() argument
412 return 1 << h->order; in pages_per_huge_page()
415 static inline unsigned int blocks_per_huge_page(struct hstate *h) in blocks_per_huge_page() argument
417 return huge_page_size(h) / 512; in blocks_per_huge_page()
441 static inline int hstate_index(struct hstate *h) in hstate_index() argument
443 return h - hstates; in hstate_index()
459 static inline int hugepage_migration_supported(struct hstate *h) in hugepage_migration_supported() argument
462 return huge_page_shift(h) == PMD_SHIFT; in hugepage_migration_supported()
468 static inline spinlock_t *huge_pte_lockptr(struct hstate *h, in huge_pte_lockptr() argument
471 if (huge_page_size(h) == PMD_SIZE) in huge_pte_lockptr()
473 VM_BUG_ON(huge_page_size(h) == PAGE_SIZE); in huge_pte_lockptr()
500 #define alloc_huge_page_node(h, nid) NULL argument
502 #define alloc_bootmem_huge_page(h) NULL argument
508 #define huge_page_size(h) PAGE_SIZE argument
509 #define huge_page_mask(h) PAGE_MASK argument
512 #define huge_page_order(h) 0 argument
513 #define huge_page_shift(h) PAGE_SHIFT argument
514 static inline unsigned int pages_per_huge_page(struct hstate *h) in pages_per_huge_page() argument
519 #define hstate_index(h) 0 argument
526 #define hugepage_migration_supported(h) 0 argument
528 static inline spinlock_t *huge_pte_lockptr(struct hstate *h, in huge_pte_lockptr() argument
543 static inline spinlock_t *huge_pte_lock(struct hstate *h, in huge_pte_lock() argument
548 ptl = huge_pte_lockptr(h, mm, pte); in huge_pte_lock()