Home
last modified time | relevance | path

Searched refs:hstate (Results 1 – 21 of 21) sorted by relevance

/linux-4.1.27/include/linux/
Dhugetlb.h28 struct hstate *hstate; member
47 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
243 struct hstate *hstate; member
292 struct hstate { struct
317 struct hstate *hstate; argument
323 struct page *alloc_huge_page_node(struct hstate *h, int nid);
328 int __init alloc_bootmem_huge_page(struct hstate *h);
331 struct hstate *size_to_hstate(unsigned long size);
337 extern struct hstate hstates[HUGE_MAX_HSTATE];
342 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
[all …]
/linux-4.1.27/mm/
Dhugetlb.c42 struct hstate hstates[HUGE_MAX_HSTATE];
52 static struct hstate * __initdata parsed_hstate;
70 static int hugetlb_acct_memory(struct hstate *h, long delta);
83 hugetlb_acct_memory(spool->hstate, in unlock_or_release_subpool()
89 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages, in hugepage_new_subpool()
101 spool->hstate = h; in hugepage_new_subpool()
400 static pgoff_t vma_hugecache_offset(struct hstate *h, in vma_hugecache_offset()
419 struct hstate *hstate; in vma_kernel_pagesize() local
424 hstate = hstate_vma(vma); in vma_kernel_pagesize()
426 return 1UL << huge_page_shift(hstate); in vma_kernel_pagesize()
[all …]
Dhugetlb_cgroup.c148 struct hstate *h; in hugetlb_cgroup_css_offline()
339 struct hstate *h = &hstates[idx]; in __hugetlb_cgroup_file_init()
381 struct hstate *h; in hugetlb_cgroup_file_init()
401 struct hstate *h = page_hstate(oldhpage); in hugetlb_cgroup_migrate()
Dpagewalk.c125 static unsigned long hugetlb_entry_end(struct hstate *h, unsigned long addr, in hugetlb_entry_end()
136 struct hstate *h = hstate_vma(vma); in walk_hugetlb_range()
Dmigrate.c465 struct hstate *h = page_hstate(src); in copy_huge_page()
Dmmap.c1422 struct hstate *hs; in SYSCALL_DEFINE6()
/linux-4.1.27/fs/hugetlbfs/
Dinode.c53 struct hstate *hstate; member
102 struct hstate *h = hstate_file(file); in hugetlbfs_file_mmap()
153 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
222 struct hstate *h = hstate_file(file); in hugetlbfs_read_iter()
306 struct hstate *h = hstate_inode(inode); in truncate_hugepages()
380 struct hstate *h = hstate_inode(inode); in hugetlb_vmtruncate()
397 struct hstate *h = hstate_inode(inode); in hugetlbfs_setattr()
590 struct hstate *h = hstate_inode(d_inode(dentry)); in hugetlbfs_statfs()
742 hugetlbfs_size_to_hpages(struct hstate *h, unsigned long long size_opt, in hugetlbfs_size_to_hpages()
820 pconfig->hstate = size_to_hstate(ps); in hugetlbfs_parse_options()
[all …]
/linux-4.1.27/arch/powerpc/mm/
Dhugetlbpage.c304 int alloc_bootmem_huge_page(struct hstate *hstate) in alloc_bootmem_huge_page() argument
307 int idx = shift_to_mmu_psize(huge_page_shift(hstate)); in alloc_bootmem_huge_page()
327 m->hstate = hstate; in alloc_bootmem_huge_page()
429 int alloc_bootmem_huge_page(struct hstate *hstate) in alloc_bootmem_huge_page() argument
437 m->hstate = hstate; in alloc_bootmem_huge_page()
769 struct hstate *hstate = hstate_file(file); in hugetlb_get_unmapped_area() local
770 int mmu_psize = shift_to_mmu_psize(huge_page_shift(hstate)); in hugetlb_get_unmapped_area()
Dhugetlbpage-book3e.c149 struct hstate *hstate = hstate_file(vma->vm_file); in flush_hugetlb_page() local
150 unsigned long tsize = huge_page_shift(hstate) - 10; in flush_hugetlb_page()
/linux-4.1.27/arch/x86/mm/
Dhugetlbpage.c79 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_bottomup()
95 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_topdown()
128 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
/linux-4.1.27/arch/tile/mm/
Dhugetlbpage.c173 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_bottomup()
189 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_topdown()
221 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
/linux-4.1.27/arch/metag/mm/
Dhugetlbpage.c34 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
204 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
/linux-4.1.27/arch/arm/include/asm/
Dhugetlb.h48 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
/linux-4.1.27/arch/x86/include/asm/
Dhugetlb.h22 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
/linux-4.1.27/arch/arm64/include/asm/
Dhugetlb.h81 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
/linux-4.1.27/arch/powerpc/include/asm/
Dkvm_book3s_asm.h128 struct kvmppc_host_state hstate;
Dhugetlb.h107 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
/linux-4.1.27/arch/mips/include/asm/
Dhugetlb.h28 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
/linux-4.1.27/arch/tile/include/asm/
Dhugetlb.h35 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
/linux-4.1.27/ipc/
Dshm.c557 struct hstate *hs; in newseg()
762 struct hstate *h = hstate_file(shp->shm_file); in shm_add_rss_swap()
/linux-4.1.27/arch/powerpc/kernel/
Dasm-offsets.c604 # define HSTATE_FIELD(x, f) DEFINE(x, offsetof(struct kvmppc_book3s_shadow_vcpu, hstate.f)) in main()