Lines Matching refs:hstate
55 struct hstate *hstate; member
122 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
445 struct hstate *hstate; member
482 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
484 return HUGETLBFS_SB(i->i_sb)->hstate; in hstate_inode()
497 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
594 struct hstate { struct
624 struct hstate *hstate; argument
630 struct page *alloc_huge_page_nodemask(struct hstate *h, int preferred_nid,
632 struct page *alloc_huge_page_vma(struct hstate *h, struct vm_area_struct *vma,
636 void restore_reserve_on_error(struct hstate *h, struct vm_area_struct *vma,
640 int __init __alloc_bootmem_huge_page(struct hstate *h);
641 int __init alloc_bootmem_huge_page(struct hstate *h);
645 struct hstate *size_to_hstate(unsigned long size);
651 extern struct hstate hstates[HUGE_MAX_HSTATE];
670 static inline struct hstate *hstate_file(struct file *f) in hstate_file()
675 static inline struct hstate *hstate_sizelog(int page_size_log) in hstate_sizelog()
683 static inline struct hstate *hstate_vma(struct vm_area_struct *vma) in hstate_vma()
688 static inline unsigned long huge_page_size(struct hstate *h) in huge_page_size()
697 static inline unsigned long huge_page_mask(struct hstate *h) in huge_page_mask()
702 static inline unsigned int huge_page_order(struct hstate *h) in huge_page_order()
707 static inline unsigned huge_page_shift(struct hstate *h) in huge_page_shift()
712 static inline bool hstate_is_gigantic(struct hstate *h) in hstate_is_gigantic()
717 static inline unsigned int pages_per_huge_page(struct hstate *h) in pages_per_huge_page()
722 static inline unsigned int blocks_per_huge_page(struct hstate *h) in blocks_per_huge_page()
751 static inline struct hstate *page_hstate(struct page *page) in page_hstate()
762 static inline int hstate_index(struct hstate *h) in hstate_index()
773 static inline bool arch_hugetlb_migration_supported(struct hstate *h) in arch_hugetlb_migration_supported()
784 static inline bool arch_hugetlb_migration_supported(struct hstate *h) in arch_hugetlb_migration_supported()
790 static inline bool hugepage_migration_supported(struct hstate *h) in hugepage_migration_supported()
810 static inline bool hugepage_movable_supported(struct hstate *h) in hugepage_movable_supported()
821 static inline gfp_t htlb_alloc_mask(struct hstate *h) in htlb_alloc_mask()
829 static inline gfp_t htlb_modify_alloc_mask(struct hstate *h, gfp_t gfp_mask) in htlb_modify_alloc_mask()
841 static inline spinlock_t *huge_pte_lockptr(struct hstate *h, in huge_pte_lockptr()
904 struct hstate {};
925 alloc_huge_page_nodemask(struct hstate *h, int preferred_nid,
931 static inline struct page *alloc_huge_page_vma(struct hstate *h,
938 static inline int __alloc_bootmem_huge_page(struct hstate *h)
943 static inline struct hstate *hstate_file(struct file *f)
948 static inline struct hstate *hstate_sizelog(int page_size_log)
953 static inline struct hstate *hstate_vma(struct vm_area_struct *vma)
958 static inline struct hstate *page_hstate(struct page *page)
963 static inline unsigned long huge_page_size(struct hstate *h)
968 static inline unsigned long huge_page_mask(struct hstate *h)
983 static inline unsigned int huge_page_order(struct hstate *h)
988 static inline unsigned int huge_page_shift(struct hstate *h)
993 static inline bool hstate_is_gigantic(struct hstate *h)
998 static inline unsigned int pages_per_huge_page(struct hstate *h)
1008 static inline int hstate_index(struct hstate *h)
1024 static inline bool hugepage_migration_supported(struct hstate *h)
1029 static inline bool hugepage_movable_supported(struct hstate *h)
1034 static inline gfp_t htlb_alloc_mask(struct hstate *h)
1039 static inline gfp_t htlb_modify_alloc_mask(struct hstate *h, gfp_t gfp_mask)
1044 static inline spinlock_t *huge_pte_lockptr(struct hstate *h,
1074 static inline spinlock_t *huge_pte_lock(struct hstate *h, in huge_pte_lock()