Lines Matching refs:hstate

44 	struct hstate *hstate;  member
118 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
168 bool hugetlbfs_pagecache_present(struct hstate *h,
240 unsigned long hugetlb_mask_last_page(struct hstate *h);
506 struct hstate *hstate; member
537 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
539 return HUGETLBFS_SB(i->i_sb)->hstate; in hstate_inode()
551 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
665 struct hstate { struct
692 struct hstate *hstate; argument
708 struct folio *alloc_hugetlb_folio_nodemask(struct hstate *h, int preferred_nid,
711 struct folio *alloc_hugetlb_folio_reserve(struct hstate *h, int preferred_nid,
716 void restore_reserve_on_error(struct hstate *h, struct vm_area_struct *vma,
720 int __init __alloc_bootmem_huge_page(struct hstate *h, int nid);
721 int __init alloc_bootmem_huge_page(struct hstate *h, int nid);
726 struct hstate *size_to_hstate(unsigned long size);
732 extern struct hstate hstates[HUGE_MAX_HSTATE];
748 static inline struct hstate *hstate_file(struct file *f) in hstate_file()
753 static inline struct hstate *hstate_sizelog(int page_size_log) in hstate_sizelog()
764 static inline struct hstate *hstate_vma(struct vm_area_struct *vma) in hstate_vma()
769 static inline unsigned long huge_page_size(const struct hstate *h) in huge_page_size()
778 static inline unsigned long huge_page_mask(struct hstate *h) in huge_page_mask()
783 static inline unsigned int huge_page_order(struct hstate *h) in huge_page_order()
788 static inline unsigned huge_page_shift(struct hstate *h) in huge_page_shift()
793 static inline bool hstate_is_gigantic(struct hstate *h) in hstate_is_gigantic()
798 static inline unsigned int pages_per_huge_page(const struct hstate *h) in pages_per_huge_page()
803 static inline unsigned int blocks_per_huge_page(struct hstate *h) in blocks_per_huge_page()
808 static inline struct folio *filemap_lock_hugetlb_folio(struct hstate *h, in filemap_lock_hugetlb_folio()
849 static inline struct hstate *folio_hstate(struct folio *folio) in folio_hstate()
860 static inline int hstate_index(struct hstate *h) in hstate_index()
879 static inline bool arch_hugetlb_migration_supported(struct hstate *h) in arch_hugetlb_migration_supported()
890 static inline bool arch_hugetlb_migration_supported(struct hstate *h) in arch_hugetlb_migration_supported()
896 static inline bool hugepage_migration_supported(struct hstate *h) in hugepage_migration_supported()
916 static inline bool hugepage_movable_supported(struct hstate *h) in hugepage_movable_supported()
927 static inline gfp_t htlb_alloc_mask(struct hstate *h) in htlb_alloc_mask()
936 static inline gfp_t htlb_modify_alloc_mask(struct hstate *h, gfp_t gfp_mask) in htlb_modify_alloc_mask()
972 static inline spinlock_t *huge_pte_lockptr(struct hstate *h, in huge_pte_lockptr()
1073 struct hstate {};
1085 static inline struct folio *filemap_lock_hugetlb_folio(struct hstate *h,
1115 alloc_hugetlb_folio_reserve(struct hstate *h, int preferred_nid,
1122 alloc_hugetlb_folio_nodemask(struct hstate *h, int preferred_nid,
1129 static inline int __alloc_bootmem_huge_page(struct hstate *h)
1134 static inline struct hstate *hstate_file(struct file *f)
1139 static inline struct hstate *hstate_sizelog(int page_size_log)
1144 static inline struct hstate *hstate_vma(struct vm_area_struct *vma)
1149 static inline struct hstate *folio_hstate(struct folio *folio)
1154 static inline struct hstate *size_to_hstate(unsigned long size)
1159 static inline unsigned long huge_page_size(struct hstate *h)
1164 static inline unsigned long huge_page_mask(struct hstate *h)
1179 static inline unsigned int huge_page_order(struct hstate *h)
1184 static inline unsigned int huge_page_shift(struct hstate *h)
1189 static inline bool hstate_is_gigantic(struct hstate *h)
1194 static inline unsigned int pages_per_huge_page(struct hstate *h)
1204 static inline int hstate_index(struct hstate *h)
1220 static inline bool hugepage_migration_supported(struct hstate *h)
1225 static inline bool hugepage_movable_supported(struct hstate *h)
1230 static inline gfp_t htlb_alloc_mask(struct hstate *h)
1235 static inline gfp_t htlb_modify_alloc_mask(struct hstate *h, gfp_t gfp_mask)
1245 static inline spinlock_t *huge_pte_lockptr(struct hstate *h,
1287 struct hstate *h, struct vm_area_struct *vma, unsigned long address)
1302 static inline spinlock_t *huge_pte_lock(struct hstate *h, in huge_pte_lock()