Lines Matching refs:hstate
54 struct hstate *hstate; member
76 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
126 u32 hugetlb_fault_mutex_hash(struct hstate *h, struct mm_struct *mm,
278 struct hstate *hstate; member
339 struct hstate { struct
364 struct hstate *hstate; argument
369 struct page *alloc_huge_page_node(struct hstate *h, int nid);
370 struct page *alloc_huge_page_nodemask(struct hstate *h, int preferred_nid,
372 struct page *alloc_huge_page_vma(struct hstate *h, struct vm_area_struct *vma,
378 int __init __alloc_bootmem_huge_page(struct hstate *h);
379 int __init alloc_bootmem_huge_page(struct hstate *h);
383 struct hstate *size_to_hstate(unsigned long size);
389 extern struct hstate hstates[HUGE_MAX_HSTATE];
394 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
396 return HUGETLBFS_SB(i->i_sb)->hstate; in hstate_inode()
399 static inline struct hstate *hstate_file(struct file *f) in hstate_file()
404 static inline struct hstate *hstate_sizelog(int page_size_log) in hstate_sizelog()
412 static inline struct hstate *hstate_vma(struct vm_area_struct *vma) in hstate_vma()
417 static inline unsigned long huge_page_size(struct hstate *h) in huge_page_size()
426 static inline unsigned long huge_page_mask(struct hstate *h) in huge_page_mask()
431 static inline unsigned int huge_page_order(struct hstate *h) in huge_page_order()
436 static inline unsigned huge_page_shift(struct hstate *h) in huge_page_shift()
441 static inline bool hstate_is_gigantic(struct hstate *h) in hstate_is_gigantic()
446 static inline unsigned int pages_per_huge_page(struct hstate *h) in pages_per_huge_page()
451 static inline unsigned int blocks_per_huge_page(struct hstate *h) in blocks_per_huge_page()
466 static inline struct hstate *page_hstate(struct page *page) in page_hstate()
477 static inline int hstate_index(struct hstate *h) in hstate_index()
496 static inline bool hugepage_migration_supported(struct hstate *h) in hugepage_migration_supported()
509 static inline spinlock_t *huge_pte_lockptr(struct hstate *h, in huge_pte_lockptr()
547 struct hstate {}; struct
564 static inline bool hstate_is_gigantic(struct hstate *h) in hstate_is_gigantic()
569 static inline unsigned int pages_per_huge_page(struct hstate *h) in pages_per_huge_page()
579 static inline int hstate_index(struct hstate *h) in hstate_index()
600 static inline bool hugepage_migration_supported(struct hstate *h) in hugepage_migration_supported()
605 static inline spinlock_t *huge_pte_lockptr(struct hstate *h, in huge_pte_lockptr()
625 static inline spinlock_t *huge_pte_lock(struct hstate *h, in huge_pte_lock()