Home
last modified time | relevance | path

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

12

/linux-6.12.1/include/linux/
Dhugetlb.h44 struct hstate *hstate; member
118 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
168 bool hugetlbfs_pagecache_present(struct hstate *h,
237 unsigned long hugetlb_mask_last_page(struct hstate *h);
498 struct hstate *hstate; member
529 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
531 return HUGETLBFS_SB(i->i_sb)->hstate; in hstate_inode()
543 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
661 struct hstate { struct
686 struct hstate *hstate; argument
[all …]
/linux-6.12.1/mm/
Dhugetlb_vmemmap.h21 int hugetlb_vmemmap_restore_folio(const struct hstate *h, struct folio *folio);
22 long hugetlb_vmemmap_restore_folios(const struct hstate *h,
25 void hugetlb_vmemmap_optimize_folio(const struct hstate *h, struct folio *folio);
26 void hugetlb_vmemmap_optimize_folios(struct hstate *h, struct list_head *folio_list);
28 static inline unsigned int hugetlb_vmemmap_size(const struct hstate *h) in hugetlb_vmemmap_size()
37 static inline unsigned int hugetlb_vmemmap_optimizable_size(const struct hstate *h) in hugetlb_vmemmap_optimizable_size()
46 static inline int hugetlb_vmemmap_restore_folio(const struct hstate *h, struct folio *folio) in hugetlb_vmemmap_restore_folio()
51 static long hugetlb_vmemmap_restore_folios(const struct hstate *h, in hugetlb_vmemmap_restore_folios()
59 static inline void hugetlb_vmemmap_optimize_folio(const struct hstate *h, struct folio *folio) in hugetlb_vmemmap_optimize_folio()
63 static inline void hugetlb_vmemmap_optimize_folios(struct hstate *h, struct list_head *folio_list) in hugetlb_vmemmap_optimize_folios()
[all …]
Dhugetlb.c54 struct hstate hstates[HUGE_MAX_HSTATE];
65 static struct hstate * __initdata parsed_hstate;
85 static int hugetlb_acct_memory(struct hstate *h, long delta);
126 hugetlb_acct_memory(spool->hstate, in unlock_or_release_subpool()
132 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages, in hugepage_new_subpool()
144 spool->hstate = h; in hugepage_new_subpool()
468 struct hstate *h, in record_hugetlb_cgroup_uncharge_info()
550 long to, struct hstate *h, struct hugetlb_cgroup *cg, in hugetlb_resv_map_add()
576 struct hstate *h, long *regions_needed) in add_reservation_in_range()
708 long in_regions_needed, struct hstate *h, in region_add()
[all …]
Dhugetlb_vmemmap.c449 static int __hugetlb_vmemmap_restore_folio(const struct hstate *h, in __hugetlb_vmemmap_restore_folio()
495 int hugetlb_vmemmap_restore_folio(const struct hstate *h, struct folio *folio) in hugetlb_vmemmap_restore_folio()
513 long hugetlb_vmemmap_restore_folios(const struct hstate *h, in hugetlb_vmemmap_restore_folios()
545 static bool vmemmap_should_optimize_folio(const struct hstate *h, struct folio *folio) in vmemmap_should_optimize_folio()
559 static int __hugetlb_vmemmap_optimize_folio(const struct hstate *h, in __hugetlb_vmemmap_optimize_folio()
621 void hugetlb_vmemmap_optimize_folio(const struct hstate *h, struct folio *folio) in hugetlb_vmemmap_optimize_folio()
629 static int hugetlb_vmemmap_split_folio(const struct hstate *h, struct folio *folio) in hugetlb_vmemmap_split_folio()
648 void hugetlb_vmemmap_optimize_folios(struct hstate *h, struct list_head *folio_list) in hugetlb_vmemmap_optimize_folios()
708 const struct hstate *h; in hugetlb_vmemmap_init()
Dpage_vma_mapped.c189 struct hstate *hstate = hstate_vma(vma); in page_vma_mapped_walk() local
190 unsigned long size = huge_page_size(hstate); in page_vma_mapped_walk()
203 pvmw->ptl = huge_pte_lock(hstate, mm, pvmw->pte); in page_vma_mapped_walk()
Dhugetlb_cgroup.c88 struct hstate *h; in hugetlb_cgroup_have_usage()
237 struct hstate *h; in hugetlb_cgroup_css_offline()
817 hugetlb_cgroup_cfttypes_init(struct hstate *h, struct cftype *cft, in hugetlb_cgroup_cfttypes_init()
844 static void __init __hugetlb_cgroup_file_dfl_init(struct hstate *h) in __hugetlb_cgroup_file_dfl_init()
852 static void __init __hugetlb_cgroup_file_legacy_init(struct hstate *h) in __hugetlb_cgroup_file_legacy_init()
860 static void __init __hugetlb_cgroup_file_init(struct hstate *h) in __hugetlb_cgroup_file_init()
888 struct hstate *h; in hugetlb_cgroup_file_init()
904 struct hstate *h = folio_hstate(old_folio); in hugetlb_cgroup_migrate()
/linux-6.12.1/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c705 struct atmel_hlcdc_plane_state *hstate = in atmel_hlcdc_plane_atomic_check() local
708 struct drm_framebuffer *fb = hstate->base.fb; in atmel_hlcdc_plane_atomic_check()
714 if (!hstate->base.crtc || WARN_ON(!fb)) in atmel_hlcdc_plane_atomic_check()
726 hstate->src_x = s->src.x1; in atmel_hlcdc_plane_atomic_check()
727 hstate->src_y = s->src.y1; in atmel_hlcdc_plane_atomic_check()
728 hstate->src_w = drm_rect_width(&s->src); in atmel_hlcdc_plane_atomic_check()
729 hstate->src_h = drm_rect_height(&s->src); in atmel_hlcdc_plane_atomic_check()
730 hstate->crtc_x = s->dst.x1; in atmel_hlcdc_plane_atomic_check()
731 hstate->crtc_y = s->dst.y1; in atmel_hlcdc_plane_atomic_check()
732 hstate->crtc_w = drm_rect_width(&s->dst); in atmel_hlcdc_plane_atomic_check()
[all …]
Datmel_hlcdc_crtc.c418 struct atmel_hlcdc_crtc_state *hstate; in atmel_hlcdc_crtc_select_output_mode() local
445 hstate = drm_crtc_state_to_atmel_hlcdc_crtc_state(state); in atmel_hlcdc_crtc_select_output_mode()
446 hstate->output_mode = fls(output_fmts) - 1; in atmel_hlcdc_crtc_select_output_mode()
450 hstate->output_mode -= 4; in atmel_hlcdc_crtc_select_output_mode()
451 hstate->dpi = 1; in atmel_hlcdc_crtc_select_output_mode()
453 hstate->dpi = 0; in atmel_hlcdc_crtc_select_output_mode()
/linux-6.12.1/arch/powerpc/mm/book3s64/
Dradix_hugetlbpage.c13 struct hstate *hstate = hstate_file(vma->vm_file); in radix__flush_hugetlb_page() local
15 psize = hstate_get_psize(hstate); in radix__flush_hugetlb_page()
22 struct hstate *hstate = hstate_file(vma->vm_file); in radix__local_flush_hugetlb_page() local
24 psize = hstate_get_psize(hstate); in radix__local_flush_hugetlb_page()
32 struct hstate *hstate = hstate_file(vma->vm_file); in radix__flush_hugetlb_tlb_range() local
34 psize = hstate_get_psize(hstate); in radix__flush_hugetlb_tlb_range()
Dslice.c794 struct hstate *hstate = hstate_file(file); in file_to_psize() local
795 return shift_to_mmu_psize(huge_page_shift(hstate)); in file_to_psize()
/linux-6.12.1/Documentation/translations/zh_CN/mm/
Dhugetlbfs_reserv.rst39 这是一个全局的(per-hstate)预留的巨页的计数。预留的巨页只对预留它们的任
240 有一个结构体hstate与每个巨页尺寸相关联。hstate跟踪所有指定大小的巨页。一个子池代表一
241hstate中的页面子集,它与一个已挂载的hugetlbfs文件系统相关
344 long vma_needs_reservation(struct hstate *h,
350 long vma_commit_reservation(struct hstate *h,
359 void vma_end_reservation(struct hstate *h,
366 long vma_add_reservation(struct hstate *h,
409 当git第一次被用来管理Linux代码时,每个节点的巨页列表就存在于hstate结构中。预留的概念是
/linux-6.12.1/fs/hugetlbfs/
Dinode.c50 struct hstate *hstate; member
102 struct hstate *h = hstate_file(file); in hugetlbfs_file_mmap()
178 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_bottomup()
192 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_topdown()
226 struct hstate *h = hstate_file(file); in generic_hugetlb_get_unmapped_area()
313 struct hstate *h = hstate_file(file); in hugetlbfs_read_iter()
469 static void hugetlb_unmap_file_folio(struct hstate *h, in hugetlb_unmap_file_folio()
588 static bool remove_inode_single_folio(struct hstate *h, struct inode *inode, in remove_inode_single_folio()
648 struct hstate *h = hstate_inode(inode); in remove_inode_hugepages()
709 struct hstate *h = hstate_inode(inode); in hugetlb_vmtruncate()
[all …]
/linux-6.12.1/arch/powerpc/mm/
Dhugetlbpage.c107 static int __init pseries_alloc_bootmem_huge_page(struct hstate *hstate) in pseries_alloc_bootmem_huge_page() argument
115 m->hstate = hstate; in pseries_alloc_bootmem_huge_page()
126 int __init alloc_bootmem_huge_page(struct hstate *h, int nid) in alloc_bootmem_huge_page()
/linux-6.12.1/arch/powerpc/include/asm/book3s/64/
Dhugetlb.h19 static inline int hstate_get_psize(struct hstate *hstate) in hstate_get_psize() argument
23 shift = huge_page_shift(hstate); in hstate_get_psize()
/linux-6.12.1/arch/x86/mm/
Dhugetlbpage.c27 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_bottomup()
48 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_topdown()
87 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
/linux-6.12.1/arch/powerpc/mm/nohash/
De500_hugetlbpage.c189 struct hstate *hstate = hstate_file(vma->vm_file); in flush_hugetlb_page() local
190 unsigned long tsize = huge_page_shift(hstate) - 10; in flush_hugetlb_page()
/linux-6.12.1/arch/s390/mm/
Dhugetlbpage.c250 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_bottomup()
264 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_topdown()
295 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
/linux-6.12.1/arch/riscv/include/asm/
Dhugetlb.h15 bool arch_hugetlb_migration_supported(struct hstate *h);
/linux-6.12.1/arch/mips/include/asm/
Dhugetlb.h20 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
/linux-6.12.1/arch/sparc/mm/
Dhugetlbpage.c32 struct hstate *h = hstate_file(filp); in hugetlb_get_unmapped_area_bottomup()
61 struct hstate *h = hstate_file(filp); in hugetlb_get_unmapped_area_topdown()
97 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
/linux-6.12.1/arch/loongarch/include/asm/
Dhugetlb.h19 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
/linux-6.12.1/arch/arm64/include/asm/
Dhugetlb.h18 extern bool arch_hugetlb_migration_supported(struct hstate *h);
/linux-6.12.1/arch/powerpc/include/asm/
Dkvm_book3s_asm.h140 struct kvmppc_host_state hstate; member
/linux-6.12.1/include/asm-generic/
Dhugetlb.h118 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
/linux-6.12.1/arch/s390/include/asm/
Dhugetlb.h33 struct hstate *h = hstate_file(file); in prepare_hugepage_range()

12