Lines Matching refs:hstate
48 struct hstate *hstate; member
121 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
236 unsigned long hugetlb_mask_last_page(struct hstate *h);
507 struct hstate *hstate; member
543 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
545 return HUGETLBFS_SB(i->i_sb)->hstate; in hstate_inode()
557 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
687 struct hstate { struct
716 struct hstate *hstate; argument
722 struct folio *alloc_hugetlb_folio_nodemask(struct hstate *h, int preferred_nid,
724 struct folio *alloc_hugetlb_folio_vma(struct hstate *h, struct vm_area_struct *vma,
728 void restore_reserve_on_error(struct hstate *h, struct vm_area_struct *vma,
732 int __init __alloc_bootmem_huge_page(struct hstate *h, int nid);
733 int __init alloc_bootmem_huge_page(struct hstate *h, int nid);
738 struct hstate *size_to_hstate(unsigned long size);
744 extern struct hstate hstates[HUGE_MAX_HSTATE];
774 static inline struct hstate *hstate_file(struct file *f) in hstate_file()
779 static inline struct hstate *hstate_sizelog(int page_size_log) in hstate_sizelog()
790 static inline struct hstate *hstate_vma(struct vm_area_struct *vma) in hstate_vma()
795 static inline unsigned long huge_page_size(const struct hstate *h) in huge_page_size()
804 static inline unsigned long huge_page_mask(struct hstate *h) in huge_page_mask()
809 static inline unsigned int huge_page_order(struct hstate *h) in huge_page_order()
814 static inline unsigned huge_page_shift(struct hstate *h) in huge_page_shift()
819 static inline bool hstate_is_gigantic(struct hstate *h) in hstate_is_gigantic()
824 static inline unsigned int pages_per_huge_page(const struct hstate *h) in pages_per_huge_page()
829 static inline unsigned int blocks_per_huge_page(struct hstate *h) in blocks_per_huge_page()
858 static inline struct hstate *folio_hstate(struct folio *folio) in folio_hstate()
864 static inline struct hstate *page_hstate(struct page *page) in page_hstate()
874 static inline int hstate_index(struct hstate *h) in hstate_index()
893 static inline bool arch_hugetlb_migration_supported(struct hstate *h) in arch_hugetlb_migration_supported()
904 static inline bool arch_hugetlb_migration_supported(struct hstate *h) in arch_hugetlb_migration_supported()
910 static inline bool hugepage_migration_supported(struct hstate *h) in hugepage_migration_supported()
930 static inline bool hugepage_movable_supported(struct hstate *h) in hugepage_movable_supported()
941 static inline gfp_t htlb_alloc_mask(struct hstate *h) in htlb_alloc_mask()
949 static inline gfp_t htlb_modify_alloc_mask(struct hstate *h, gfp_t gfp_mask) in htlb_modify_alloc_mask()
961 static inline spinlock_t *huge_pte_lockptr(struct hstate *h, in huge_pte_lockptr()
1021 struct hstate {};
1047 alloc_hugetlb_folio_nodemask(struct hstate *h, int preferred_nid,
1053 static inline struct folio *alloc_hugetlb_folio_vma(struct hstate *h,
1060 static inline int __alloc_bootmem_huge_page(struct hstate *h)
1065 static inline struct hstate *hstate_file(struct file *f)
1070 static inline struct hstate *hstate_sizelog(int page_size_log)
1075 static inline struct hstate *hstate_vma(struct vm_area_struct *vma)
1080 static inline struct hstate *folio_hstate(struct folio *folio)
1085 static inline struct hstate *page_hstate(struct page *page)
1090 static inline struct hstate *size_to_hstate(unsigned long size)
1095 static inline unsigned long huge_page_size(struct hstate *h)
1100 static inline unsigned long huge_page_mask(struct hstate *h)
1115 static inline unsigned int huge_page_order(struct hstate *h)
1120 static inline unsigned int huge_page_shift(struct hstate *h)
1125 static inline bool hstate_is_gigantic(struct hstate *h)
1130 static inline unsigned int pages_per_huge_page(struct hstate *h)
1140 static inline int hstate_index(struct hstate *h)
1156 static inline bool hugepage_migration_supported(struct hstate *h)
1161 static inline bool hugepage_movable_supported(struct hstate *h)
1166 static inline gfp_t htlb_alloc_mask(struct hstate *h)
1171 static inline gfp_t htlb_modify_alloc_mask(struct hstate *h, gfp_t gfp_mask)
1176 static inline spinlock_t *huge_pte_lockptr(struct hstate *h,
1214 static inline spinlock_t *huge_pte_lock(struct hstate *h, in huge_pte_lock()