Lines Matching refs:hstate
38 struct hstate *hstate; member
105 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
422 struct hstate *hstate; member
459 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
461 return HUGETLBFS_SB(i->i_sb)->hstate; in hstate_inode()
474 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
490 struct hstate { struct
516 struct hstate *hstate; member
521 struct page *alloc_huge_page_nodemask(struct hstate *h, int preferred_nid,
523 struct page *alloc_huge_page_vma(struct hstate *h, struct vm_area_struct *vma,
529 int __init __alloc_bootmem_huge_page(struct hstate *h);
530 int __init alloc_bootmem_huge_page(struct hstate *h);
534 struct hstate *size_to_hstate(unsigned long size);
540 extern struct hstate hstates[HUGE_MAX_HSTATE];
545 static inline struct hstate *hstate_file(struct file *f) in hstate_file()
550 static inline struct hstate *hstate_sizelog(int page_size_log) in hstate_sizelog()
558 static inline struct hstate *hstate_vma(struct vm_area_struct *vma) in hstate_vma()
563 static inline unsigned long huge_page_size(struct hstate *h) in huge_page_size()
572 static inline unsigned long huge_page_mask(struct hstate *h) in huge_page_mask()
577 static inline unsigned int huge_page_order(struct hstate *h) in huge_page_order()
582 static inline unsigned huge_page_shift(struct hstate *h) in huge_page_shift()
587 static inline bool hstate_is_gigantic(struct hstate *h) in hstate_is_gigantic()
592 static inline unsigned int pages_per_huge_page(struct hstate *h) in pages_per_huge_page()
597 static inline unsigned int blocks_per_huge_page(struct hstate *h) in blocks_per_huge_page()
626 static inline struct hstate *page_hstate(struct page *page) in page_hstate()
637 static inline int hstate_index(struct hstate *h) in hstate_index()
648 static inline bool arch_hugetlb_migration_supported(struct hstate *h) in arch_hugetlb_migration_supported()
659 static inline bool arch_hugetlb_migration_supported(struct hstate *h) in arch_hugetlb_migration_supported()
665 static inline bool hugepage_migration_supported(struct hstate *h) in hugepage_migration_supported()
685 static inline bool hugepage_movable_supported(struct hstate *h) in hugepage_movable_supported()
696 static inline gfp_t htlb_alloc_mask(struct hstate *h) in htlb_alloc_mask()
704 static inline gfp_t htlb_modify_alloc_mask(struct hstate *h, gfp_t gfp_mask) in htlb_modify_alloc_mask()
716 static inline spinlock_t *huge_pte_lockptr(struct hstate *h, in huge_pte_lockptr()
781 struct hstate {}; struct
791 alloc_huge_page_nodemask(struct hstate *h, int preferred_nid, in alloc_huge_page_nodemask()
797 static inline struct page *alloc_huge_page_vma(struct hstate *h, in alloc_huge_page_vma()
804 static inline int __alloc_bootmem_huge_page(struct hstate *h) in __alloc_bootmem_huge_page()
809 static inline struct hstate *hstate_file(struct file *f) in hstate_file()
814 static inline struct hstate *hstate_sizelog(int page_size_log) in hstate_sizelog()
819 static inline struct hstate *hstate_vma(struct vm_area_struct *vma) in hstate_vma()
824 static inline struct hstate *page_hstate(struct page *page) in page_hstate()
829 static inline unsigned long huge_page_size(struct hstate *h) in huge_page_size()
834 static inline unsigned long huge_page_mask(struct hstate *h) in huge_page_mask()
849 static inline unsigned int huge_page_order(struct hstate *h) in huge_page_order()
854 static inline unsigned int huge_page_shift(struct hstate *h) in huge_page_shift()
859 static inline bool hstate_is_gigantic(struct hstate *h) in hstate_is_gigantic()
864 static inline unsigned int pages_per_huge_page(struct hstate *h) in pages_per_huge_page()
874 static inline int hstate_index(struct hstate *h) in hstate_index()
890 static inline bool hugepage_migration_supported(struct hstate *h) in hugepage_migration_supported()
895 static inline bool hugepage_movable_supported(struct hstate *h) in hugepage_movable_supported()
900 static inline gfp_t htlb_alloc_mask(struct hstate *h) in htlb_alloc_mask()
905 static inline gfp_t htlb_modify_alloc_mask(struct hstate *h, gfp_t gfp_mask) in htlb_modify_alloc_mask()
910 static inline spinlock_t *huge_pte_lockptr(struct hstate *h, in huge_pte_lockptr()
934 static inline spinlock_t *huge_pte_lock(struct hstate *h, in huge_pte_lock()