Lines Matching refs:hstate

50 	struct hstate *hstate;  member
124 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
243 unsigned long hugetlb_mask_last_page(struct hstate *h);
534 struct hstate *hstate; member
570 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
572 return HUGETLBFS_SB(i->i_sb)->hstate; in hstate_inode()
584 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
714 struct hstate { struct
743 struct hstate *hstate; argument
749 struct folio *alloc_hugetlb_folio_nodemask(struct hstate *h, int preferred_nid,
751 struct folio *alloc_hugetlb_folio_vma(struct hstate *h, struct vm_area_struct *vma,
755 void restore_reserve_on_error(struct hstate *h, struct vm_area_struct *vma,
759 int __init __alloc_bootmem_huge_page(struct hstate *h, int nid);
760 int __init alloc_bootmem_huge_page(struct hstate *h, int nid);
765 struct hstate *size_to_hstate(unsigned long size);
771 extern struct hstate hstates[HUGE_MAX_HSTATE];
787 static inline struct hstate *hstate_file(struct file *f) in hstate_file()
792 static inline struct hstate *hstate_sizelog(int page_size_log) in hstate_sizelog()
803 static inline struct hstate *hstate_vma(struct vm_area_struct *vma) in hstate_vma()
808 static inline unsigned long huge_page_size(const struct hstate *h) in huge_page_size()
817 static inline unsigned long huge_page_mask(struct hstate *h) in huge_page_mask()
822 static inline unsigned int huge_page_order(struct hstate *h) in huge_page_order()
827 static inline unsigned huge_page_shift(struct hstate *h) in huge_page_shift()
832 static inline bool hstate_is_gigantic(struct hstate *h) in hstate_is_gigantic()
837 static inline unsigned int pages_per_huge_page(const struct hstate *h) in pages_per_huge_page()
842 static inline unsigned int blocks_per_huge_page(struct hstate *h) in blocks_per_huge_page()
871 static inline struct hstate *folio_hstate(struct folio *folio) in folio_hstate()
882 static inline int hstate_index(struct hstate *h) in hstate_index()
901 static inline bool arch_hugetlb_migration_supported(struct hstate *h) in arch_hugetlb_migration_supported()
912 static inline bool arch_hugetlb_migration_supported(struct hstate *h) in arch_hugetlb_migration_supported()
918 static inline bool hugepage_migration_supported(struct hstate *h) in hugepage_migration_supported()
938 static inline bool hugepage_movable_supported(struct hstate *h) in hugepage_movable_supported()
949 static inline gfp_t htlb_alloc_mask(struct hstate *h) in htlb_alloc_mask()
957 static inline gfp_t htlb_modify_alloc_mask(struct hstate *h, gfp_t gfp_mask) in htlb_modify_alloc_mask()
969 static inline spinlock_t *huge_pte_lockptr(struct hstate *h, in huge_pte_lockptr()
1036 struct hstate {};
1057 alloc_hugetlb_folio_nodemask(struct hstate *h, int preferred_nid,
1063 static inline struct folio *alloc_hugetlb_folio_vma(struct hstate *h,
1070 static inline int __alloc_bootmem_huge_page(struct hstate *h)
1075 static inline struct hstate *hstate_file(struct file *f)
1080 static inline struct hstate *hstate_sizelog(int page_size_log)
1085 static inline struct hstate *hstate_vma(struct vm_area_struct *vma)
1090 static inline struct hstate *folio_hstate(struct folio *folio)
1095 static inline struct hstate *size_to_hstate(unsigned long size)
1100 static inline unsigned long huge_page_size(struct hstate *h)
1105 static inline unsigned long huge_page_mask(struct hstate *h)
1120 static inline unsigned int huge_page_order(struct hstate *h)
1125 static inline unsigned int huge_page_shift(struct hstate *h)
1130 static inline bool hstate_is_gigantic(struct hstate *h)
1135 static inline unsigned int pages_per_huge_page(struct hstate *h)
1145 static inline int hstate_index(struct hstate *h)
1161 static inline bool hugepage_migration_supported(struct hstate *h)
1166 static inline bool hugepage_movable_supported(struct hstate *h)
1171 static inline gfp_t htlb_alloc_mask(struct hstate *h)
1176 static inline gfp_t htlb_modify_alloc_mask(struct hstate *h, gfp_t gfp_mask)
1181 static inline spinlock_t *huge_pte_lockptr(struct hstate *h,
1223 static inline spinlock_t *huge_pte_lock(struct hstate *h, in huge_pte_lock()