Lines Matching refs:hstate

38 	struct hstate *hstate;
105 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
412 struct hstate *hstate;
449 static inline struct hstate *hstate_inode(struct inode *i)
451 return HUGETLBFS_SB(i->i_sb)->hstate;
464 static inline struct hstate *hstate_inode(struct inode *i)
480 struct hstate {
506 struct hstate *hstate;
511 struct page *alloc_huge_page_nodemask(struct hstate *h, int preferred_nid,
513 struct page *alloc_huge_page_vma(struct hstate *h, struct vm_area_struct *vma,
519 int __init __alloc_bootmem_huge_page(struct hstate *h);
520 int __init alloc_bootmem_huge_page(struct hstate *h);
524 struct hstate *size_to_hstate(unsigned long size);
530 extern struct hstate hstates[HUGE_MAX_HSTATE];
535 static inline struct hstate *hstate_file(struct file *f)
540 static inline struct hstate *hstate_sizelog(int page_size_log)
551 static inline struct hstate *hstate_vma(struct vm_area_struct *vma)
556 static inline unsigned long huge_page_size(struct hstate *h)
565 static inline unsigned long huge_page_mask(struct hstate *h)
570 static inline unsigned int huge_page_order(struct hstate *h)
575 static inline unsigned huge_page_shift(struct hstate *h)
580 static inline bool hstate_is_gigantic(struct hstate *h)
585 static inline unsigned int pages_per_huge_page(struct hstate *h)
590 static inline unsigned int blocks_per_huge_page(struct hstate *h)
619 static inline struct hstate *page_hstate(struct page *page)
630 static inline int hstate_index(struct hstate *h)
641 static inline bool arch_hugetlb_migration_supported(struct hstate *h)
652 static inline bool arch_hugetlb_migration_supported(struct hstate *h)
658 static inline bool hugepage_migration_supported(struct hstate *h)
678 static inline bool hugepage_movable_supported(struct hstate *h)
689 static inline gfp_t htlb_alloc_mask(struct hstate *h)
697 static inline gfp_t htlb_modify_alloc_mask(struct hstate *h, gfp_t gfp_mask)
709 static inline spinlock_t *huge_pte_lockptr(struct hstate *h,
774 struct hstate {};
784 alloc_huge_page_nodemask(struct hstate *h, int preferred_nid,
790 static inline struct page *alloc_huge_page_vma(struct hstate *h,
797 static inline int __alloc_bootmem_huge_page(struct hstate *h)
802 static inline struct hstate *hstate_file(struct file *f)
807 static inline struct hstate *hstate_sizelog(int page_size_log)
812 static inline struct hstate *hstate_vma(struct vm_area_struct *vma)
817 static inline struct hstate *page_hstate(struct page *page)
822 static inline unsigned long huge_page_size(struct hstate *h)
827 static inline unsigned long huge_page_mask(struct hstate *h)
842 static inline unsigned int huge_page_order(struct hstate *h)
847 static inline unsigned int huge_page_shift(struct hstate *h)
852 static inline bool hstate_is_gigantic(struct hstate *h)
857 static inline unsigned int pages_per_huge_page(struct hstate *h)
867 static inline int hstate_index(struct hstate *h)
883 static inline bool hugepage_migration_supported(struct hstate *h)
888 static inline bool hugepage_movable_supported(struct hstate *h)
893 static inline gfp_t htlb_alloc_mask(struct hstate *h)
898 static inline gfp_t htlb_modify_alloc_mask(struct hstate *h, gfp_t gfp_mask)
903 static inline spinlock_t *huge_pte_lockptr(struct hstate *h,
927 static inline spinlock_t *huge_pte_lock(struct hstate *h,