Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dhugetlb.h43 struct hstate *hstate; member
117 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
166 bool hugetlbfs_pagecache_present(struct hstate *h,
240 unsigned long hugetlb_mask_last_page(struct hstate *h);
501 struct hstate *hstate; member
533 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
535 return HUGETLBFS_SB(i->i_sb)->hstate; in hstate_inode()
547 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
661 struct hstate { struct
688 struct hstate *hstate; argument
[all …]
/linux/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_plane.c725 struct atmel_hlcdc_plane_state *hstate = in atmel_hlcdc_plane_atomic_check() local
728 struct drm_framebuffer *fb = hstate->base.fb; in atmel_hlcdc_plane_atomic_check()
734 if (!hstate->base.crtc || WARN_ON(!fb)) in atmel_hlcdc_plane_atomic_check()
746 hstate->src_x = s->src.x1 >> 16; in atmel_hlcdc_plane_atomic_check()
747 hstate->src_y = s->src.y1 >> 16; in atmel_hlcdc_plane_atomic_check()
748 hstate->src_w = drm_rect_width(&s->src) >> 16; in atmel_hlcdc_plane_atomic_check()
749 hstate->src_h = drm_rect_height(&s->src) >> 16; in atmel_hlcdc_plane_atomic_check()
750 hstate->crtc_x = s->dst.x1; in atmel_hlcdc_plane_atomic_check()
751 hstate->crtc_y = s->dst.y1; in atmel_hlcdc_plane_atomic_check()
752 hstate->crtc_w = drm_rect_width(&s->dst); in atmel_hlcdc_plane_atomic_check()
[all …]
H A Datmel_hlcdc_crtc.c419 struct atmel_hlcdc_crtc_state *hstate; in atmel_hlcdc_crtc_select_output_mode() local
446 hstate = drm_crtc_state_to_atmel_hlcdc_crtc_state(state); in atmel_hlcdc_crtc_select_output_mode()
447 hstate->output_mode = fls(output_fmts) - 1; in atmel_hlcdc_crtc_select_output_mode()
451 hstate->output_mode -= 4; in atmel_hlcdc_crtc_select_output_mode()
452 hstate->dpi = 1; in atmel_hlcdc_crtc_select_output_mode()
454 hstate->dpi = 0; in atmel_hlcdc_crtc_select_output_mode()
/linux/arch/powerpc/mm/book3s64/
H A 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()
/linux/mm/
H A Dhugetlb_sysfs.c26 static struct hstate *kobj_to_node_hstate(struct kobject *kobj, int *nidp);
28 static struct hstate *kobj_to_hstate(struct kobject *kobj, int *nidp) in kobj_to_hstate()
45 struct hstate *h; in nr_hugepages_show_common()
62 struct hstate *h; in nr_hugepages_store_common()
113 struct hstate *h = kobj_to_hstate(kobj, NULL); in nr_overcommit_hugepages_show()
122 struct hstate *h = kobj_to_hstate(kobj, NULL); in nr_overcommit_hugepages_store()
142 struct hstate *h; in free_hugepages_show()
159 struct hstate *h = kobj_to_hstate(kobj, NULL); in resv_hugepages_show()
167 struct hstate *h; in surplus_hugepages_show()
187 struct hstate *h; in demote_store()
[all …]
H A Dhugetlb_internal.h19 static inline bool hstate_is_gigantic_no_runtime(struct hstate *h) in hstate_is_gigantic_no_runtime()
71 static inline int hstate_next_node_to_free(struct hstate *h, nodemask_t *nodes_allowed) in hstate_next_node_to_free()
95 extern void remove_hugetlb_folio(struct hstate *h, struct folio *folio,
97 extern void add_hugetlb_folio(struct hstate *h, struct folio *folio,
100 extern void prep_and_add_allocated_folios(struct hstate *h,
102 extern long demote_pool_huge_page(struct hstate *src,
106 struct hstate *h, int nid,
H A Dhugetlb.c57 struct hstate hstates[HUGE_MAX_HSTATE];
82 static struct hstate * __initdata parsed_hstate;
117 static int hugetlb_acct_memory(struct hstate *h, long delta);
147 hugetlb_acct_memory(spool->hstate, in unlock_or_release_subpool()
153 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages, in hugepage_new_subpool()
165 spool->hstate = h; in hugepage_new_subpool()
484 struct hstate *h, in record_hugetlb_cgroup_uncharge_info()
566 long to, struct hstate *h, struct hugetlb_cgroup *cg, in hugetlb_resv_map_add()
593 struct hstate *h, long *regions_needed) in add_reservation_in_range()
725 long in_regions_needed, struct hstate *h, in region_add()
[all …]
H A Dhugetlb_cgroup.c81 struct hstate *h; in hugetlb_cgroup_have_usage()
225 struct hstate *h; in hugetlb_cgroup_css_offline()
805 hugetlb_cgroup_cfttypes_init(struct hstate *h, struct cftype *cft, in hugetlb_cgroup_cfttypes_init()
832 static void __init __hugetlb_cgroup_file_dfl_init(struct hstate *h) in __hugetlb_cgroup_file_dfl_init()
840 static void __init __hugetlb_cgroup_file_legacy_init(struct hstate *h) in __hugetlb_cgroup_file_legacy_init()
848 static void __init __hugetlb_cgroup_file_init(struct hstate *h) in __hugetlb_cgroup_file_init()
876 struct hstate *h; in hugetlb_cgroup_file_init()
892 struct hstate *h = folio_hstate(old_folio); in hugetlb_cgroup_migrate()
H A Dhugetlb_cma.c60 hugetlb_cma_alloc_bootmem(struct hstate *h, int *nid, bool node_exact) in hugetlb_cma_alloc_bootmem()
275 bool __init hugetlb_early_cma(struct hstate *h) in hugetlb_early_cma()
H A Dpagewalk.c330 static unsigned long hugetlb_entry_end(struct hstate *h, unsigned long addr, in hugetlb_entry_end()
342 struct hstate *h = hstate_vma(vma); in walk_hugetlb_range()
H A Dmemfd.c81 struct hstate *h = hstate_file(memfd); in memfd_alloc_folio()
H A Dmigrate.c416 struct hstate *h = hstate_vma(vma); in remove_migration_pte()
2203 struct hstate *h = folio_hstate(src); in alloc_migration_target()
H A Dmemory-failure.c780 struct hstate *h = hstate_vma(walk->vma); in hwpoison_hugetlb_range()
H A Dmempolicy.c1449 struct hstate *h; in alloc_migration_target_by_mpol()
/linux/Documentation/translations/zh_CN/mm/
H A 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/fs/hugetlbfs/
H A Dinode.c53 struct hstate *hstate; member
104 struct hstate *h = hstate_file(file); in hugetlbfs_file_mmap()
178 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
222 struct hstate *h = hstate_file(file); in hugetlbfs_read_iter()
379 static void hugetlb_unmap_file_folio(struct hstate *h, in hugetlb_unmap_file_folio()
497 static void remove_inode_single_folio(struct hstate *h, struct inode *inode, in remove_inode_single_folio()
554 struct hstate *h = hstate_inode(inode); in remove_inode_hugepages()
610 struct hstate *h = hstate_inode(inode); in hugetlb_vmtruncate()
624 static void hugetlbfs_zero_partial_page(struct hstate *h, in hugetlbfs_zero_partial_page()
651 struct hstate *h = hstate_inode(inode); in hugetlbfs_punch_hole()
[all …]
/linux/arch/powerpc/mm/nohash/
H A 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/arch/riscv/include/asm/
H A Dhugetlb.h15 bool arch_hugetlb_migration_supported(struct hstate *h);
/linux/arch/powerpc/include/asm/
H A Dkvm_book3s_asm.h140 struct kvmppc_host_state hstate; member
/linux/ipc/
H A Dshm.c742 struct hstate *hs; in newseg()
943 struct hstate *h = hstate_file(shp->shm_file); in shm_add_rss_swap()