• Home
  • Raw
  • Download

Lines Matching refs:h

38 #define for_each_hstate(h) \  argument
39 for ((h) = hstates; (h) < &hstates[hugetlb_max_hstate]; (h)++)
279 struct page *alloc_huge_page_node(struct hstate *h, int nid);
284 int __init alloc_bootmem_huge_page(struct hstate *h);
322 static inline unsigned long huge_page_size(struct hstate *h) in huge_page_size() argument
324 return (unsigned long)PAGE_SIZE << h->order; in huge_page_size()
331 static inline unsigned long huge_page_mask(struct hstate *h) in huge_page_mask() argument
333 return h->mask; in huge_page_mask()
336 static inline unsigned int huge_page_order(struct hstate *h) in huge_page_order() argument
338 return h->order; in huge_page_order()
341 static inline unsigned huge_page_shift(struct hstate *h) in huge_page_shift() argument
343 return h->order + PAGE_SHIFT; in huge_page_shift()
346 static inline bool hstate_is_gigantic(struct hstate *h) in hstate_is_gigantic() argument
348 return huge_page_order(h) >= MAX_ORDER; in hstate_is_gigantic()
351 static inline unsigned int pages_per_huge_page(struct hstate *h) in pages_per_huge_page() argument
353 return 1 << h->order; in pages_per_huge_page()
356 static inline unsigned int blocks_per_huge_page(struct hstate *h) in blocks_per_huge_page() argument
358 return huge_page_size(h) / 512; in blocks_per_huge_page()
382 static inline int hstate_index(struct hstate *h) in hstate_index() argument
384 return h - hstates; in hstate_index()
400 static inline int hugepage_migration_supported(struct hstate *h) in hugepage_migration_supported() argument
403 return huge_page_shift(h) == PMD_SHIFT; in hugepage_migration_supported()
409 static inline spinlock_t *huge_pte_lockptr(struct hstate *h, in huge_pte_lockptr() argument
412 if (huge_page_size(h) == PMD_SIZE) in huge_pte_lockptr()
414 VM_BUG_ON(huge_page_size(h) == PAGE_SIZE); in huge_pte_lockptr()
429 #define alloc_huge_page_node(h, nid) NULL argument
431 #define alloc_bootmem_huge_page(h) NULL argument
437 #define huge_page_size(h) PAGE_SIZE argument
438 #define huge_page_mask(h) PAGE_MASK argument
441 #define huge_page_order(h) 0 argument
442 #define huge_page_shift(h) PAGE_SHIFT argument
443 static inline unsigned int pages_per_huge_page(struct hstate *h) in pages_per_huge_page() argument
448 #define hstate_index(h) 0 argument
455 #define hugepage_migration_supported(h) 0 argument
457 static inline spinlock_t *huge_pte_lockptr(struct hstate *h, in huge_pte_lockptr() argument
464 static inline spinlock_t *huge_pte_lock(struct hstate *h, in huge_pte_lock() argument
469 ptl = huge_pte_lockptr(h, mm, pte); in huge_pte_lock()