Searched refs:hstate (Results 1 – 16 of 16) sorted by relevance
150 struct hstate *hstate; member196 struct hstate { struct216 struct hstate *hstate; argument222 struct page *alloc_huge_page_node(struct hstate *h, int nid);225 int __init alloc_bootmem_huge_page(struct hstate *h);228 struct hstate *size_to_hstate(unsigned long size);234 extern struct hstate hstates[HUGE_MAX_HSTATE];239 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()243 return hsb->hstate; in hstate_inode()246 static inline struct hstate *hstate_file(struct file *f) in hstate_file()[all …]
39 struct hstate hstates[HUGE_MAX_HSTATE];44 static struct hstate * __initdata parsed_hstate;297 static pgoff_t vma_hugecache_offset(struct hstate *h, in vma_hugecache_offset()316 struct hstate *hstate; in vma_kernel_pagesize() local321 hstate = hstate_vma(vma); in vma_kernel_pagesize()323 return 1UL << (hstate->order + PAGE_SHIFT); in vma_kernel_pagesize()439 static void decrement_hugepage_resv_vma(struct hstate *h, in decrement_hugepage_resv_vma()478 struct hstate *h = page_hstate(src); in copy_gigantic_page()495 struct hstate *h = page_hstate(src); in copy_huge_page()509 static void enqueue_huge_page(struct hstate *h, struct page *page) in enqueue_huge_page()[all …]
101 static unsigned long hugetlb_entry_end(struct hstate *h, unsigned long addr, in hugetlb_entry_end()112 struct hstate *h = hstate_vma(vma); in walk_hugetlb_range()
27 struct hstate *h; in mincore_hugetlb_page_range()
50 struct hstate *hstate; member103 struct hstate *h = hstate_file(file); in hugetlbfs_file_mmap()155 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()258 struct hstate *h = hstate_file(filp); in hugetlbfs_read()359 struct hstate *h = hstate_inode(inode); in truncate_hugepages()428 struct hstate *h = hstate_inode(inode); in hugetlb_vmtruncate()445 struct hstate *h = hstate_inode(inode); in hugetlbfs_setattr()622 struct hstate *h = hstate_inode(dentry->d_inode); in hugetlbfs_statfs()824 pconfig->hstate = size_to_hstate(ps); in hugetlbfs_parse_options()825 if (!pconfig->hstate) { in hugetlbfs_parse_options()[all …]
240 int alloc_bootmem_huge_page(struct hstate *hstate) in alloc_bootmem_huge_page() argument243 int idx = shift_to_mmu_psize(hstate->order + PAGE_SHIFT); in alloc_bootmem_huge_page()263 m->hstate = hstate; in alloc_bootmem_huge_page()357 int alloc_bootmem_huge_page(struct hstate *hstate) in alloc_bootmem_huge_page() argument365 m->hstate = hstate; in alloc_bootmem_huge_page()741 struct hstate *hstate = hstate_file(file); in hugetlb_get_unmapped_area() local742 int mmu_psize = shift_to_mmu_psize(huge_page_shift(hstate)); in hugetlb_get_unmapped_area()
117 struct hstate *hstate = hstate_file(vma->vm_file); in flush_hugetlb_page() local118 unsigned long tsize = huge_page_shift(hstate) - 10; in flush_hugetlb_page()
159 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_bottomup()202 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_topdown()296 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
277 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_bottomup()320 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_topdown()406 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
34 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
20 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
111 struct kvmppc_host_state hstate; member
76 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
27 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
496 # define HSTATE_FIELD(x, f) DEFINE(x, offsetof(struct kvmppc_book3s_shadow_vcpu, hstate.f)) in main()
674 struct hstate *h = hstate_file(shp->shm_file); in shm_add_rss_swap()