Lines Matching defs:hstate

50 	struct hstate *hstate;
124 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
243 unsigned long hugetlb_mask_last_page(struct hstate *h);
535 struct hstate *hstate;
570 static inline struct hstate *hstate_inode(struct inode *i)
572 return HUGETLBFS_SB(i->i_sb)->hstate;
584 static inline struct hstate *hstate_inode(struct inode *i)
714 struct hstate {
743 struct hstate *hstate;
749 struct folio *alloc_hugetlb_folio_nodemask(struct hstate *h, int preferred_nid,
753 void restore_reserve_on_error(struct hstate *h, struct vm_area_struct *vma,
757 int __init __alloc_bootmem_huge_page(struct hstate *h, int nid);
758 int __init alloc_bootmem_huge_page(struct hstate *h, int nid);
763 struct hstate *size_to_hstate(unsigned long size);
769 extern struct hstate hstates[HUGE_MAX_HSTATE];
785 static inline struct hstate *hstate_file(struct file *f)
790 static inline struct hstate *hstate_sizelog(int page_size_log)
801 static inline struct hstate *hstate_vma(struct vm_area_struct *vma)
806 static inline unsigned long huge_page_size(const struct hstate *h)
815 static inline unsigned long huge_page_mask(struct hstate *h)
820 static inline unsigned int huge_page_order(struct hstate *h)
825 static inline unsigned huge_page_shift(struct hstate *h)
830 static inline bool hstate_is_gigantic(struct hstate *h)
835 static inline unsigned int pages_per_huge_page(const struct hstate *h)
840 static inline unsigned int blocks_per_huge_page(struct hstate *h)
845 static inline struct folio *filemap_lock_hugetlb_folio(struct hstate *h,
875 static inline struct hstate *folio_hstate(struct folio *folio)
886 static inline int hstate_index(struct hstate *h)
905 static inline bool arch_hugetlb_migration_supported(struct hstate *h)
916 static inline bool arch_hugetlb_migration_supported(struct hstate *h)
922 static inline bool hugepage_migration_supported(struct hstate *h)
942 static inline bool hugepage_movable_supported(struct hstate *h)
953 static inline gfp_t htlb_alloc_mask(struct hstate *h)
961 static inline gfp_t htlb_modify_alloc_mask(struct hstate *h, gfp_t gfp_mask)
973 static inline spinlock_t *huge_pte_lockptr(struct hstate *h,
1040 struct hstate {};
1047 static inline struct folio *filemap_lock_hugetlb_folio(struct hstate *h,
1067 alloc_hugetlb_folio_nodemask(struct hstate *h, int preferred_nid,
1073 static inline int __alloc_bootmem_huge_page(struct hstate *h)
1078 static inline struct hstate *hstate_file(struct file *f)
1083 static inline struct hstate *hstate_sizelog(int page_size_log)
1088 static inline struct hstate *hstate_vma(struct vm_area_struct *vma)
1093 static inline struct hstate *folio_hstate(struct folio *folio)
1098 static inline struct hstate *size_to_hstate(unsigned long size)
1103 static inline unsigned long huge_page_size(struct hstate *h)
1108 static inline unsigned long huge_page_mask(struct hstate *h)
1123 static inline unsigned int huge_page_order(struct hstate *h)
1128 static inline unsigned int huge_page_shift(struct hstate *h)
1133 static inline bool hstate_is_gigantic(struct hstate *h)
1138 static inline unsigned int pages_per_huge_page(struct hstate *h)
1148 static inline int hstate_index(struct hstate *h)
1164 static inline bool hugepage_migration_supported(struct hstate *h)
1169 static inline bool hugepage_movable_supported(struct hstate *h)
1174 static inline gfp_t htlb_alloc_mask(struct hstate *h)
1179 static inline gfp_t htlb_modify_alloc_mask(struct hstate *h, gfp_t gfp_mask)
1184 static inline spinlock_t *huge_pte_lockptr(struct hstate *h,
1226 static inline spinlock_t *huge_pte_lock(struct hstate *h,