Home
last modified time | relevance | path

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

12

/Linux-v5.10/include/linux/
Dhugetlb.h37 struct hstate *hstate; member
104 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,
411 struct hstate *hstate; member
448 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
450 return HUGETLBFS_SB(i->i_sb)->hstate; in hstate_inode()
463 static inline struct hstate *hstate_inode(struct inode *i) in hstate_inode()
479 struct hstate { struct
505 struct hstate *hstate; argument
510 struct page *alloc_huge_page_nodemask(struct hstate *h, int preferred_nid,
512 struct page *alloc_huge_page_vma(struct hstate *h, struct vm_area_struct *vma,
[all …]
/Linux-v5.10/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()
50 struct hstate *h = hstate_file(file); in radix__hugetlb_get_unmapped_area()
/Linux-v5.10/mm/
Dhugetlb.c48 struct hstate hstates[HUGE_MAX_HSTATE];
64 static struct hstate * __initdata parsed_hstate;
83 static int hugetlb_acct_memory(struct hstate *h, long delta);
96 hugetlb_acct_memory(spool->hstate, in unlock_or_release_subpool()
102 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages, in hugepage_new_subpool()
114 spool->hstate = h; in hugepage_new_subpool()
264 struct hstate *h, in record_hugetlb_cgroup_uncharge_info()
334 struct hstate *h, long *regions_needed) in add_reservation_in_range()
479 long in_regions_needed, struct hstate *h, in region_add()
715 struct hstate *h = hstate_inode(inode); in hugetlb_fix_reserve_counts()
[all …]
Dhugetlb_cgroup.c200 struct hstate *h; in hugetlb_cgroup_css_offline()
616 struct hstate *h = &hstates[idx]; in __hugetlb_cgroup_file_dfl_init()
680 struct hstate *h = &hstates[idx]; in __hugetlb_cgroup_file_legacy_init()
755 struct hstate *h; in hugetlb_cgroup_file_init()
776 struct hstate *h = page_hstate(oldhpage); in hugetlb_cgroup_migrate()
Dpagewalk.c238 static unsigned long hugetlb_entry_end(struct hstate *h, unsigned long addr, in hugetlb_entry_end()
249 struct hstate *h = hstate_vma(vma); in walk_hugetlb_range()
Dmigrate.c584 struct hstate *h = page_hstate(src); in copy_huge_page()
1556 struct hstate *h = page_hstate(compound_head(page)); in alloc_migration_target()
/Linux-v5.10/fs/hugetlbfs/
Dinode.c52 struct hstate *hstate; member
136 struct hstate *h = hstate_file(file); in hugetlbfs_file_mmap()
198 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_bottomup()
214 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_topdown()
248 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
319 struct hstate *h = hstate_file(file); in hugetlbfs_read_iter()
462 struct hstate *h = hstate_inode(inode); in remove_inode_hugepages()
574 struct hstate *h = hstate_inode(inode); in hugetlb_vmtruncate()
590 struct hstate *h = hstate_inode(inode); in hugetlbfs_punch_hole()
632 struct hstate *h = hstate_inode(inode); in hugetlbfs_fallocate()
[all …]
/Linux-v5.10/arch/powerpc/include/asm/book3s/64/
Dhugetlb.h20 static inline int hstate_get_psize(struct hstate *hstate) in hstate_get_psize() argument
24 shift = huge_page_shift(hstate); in hstate_get_psize()
/Linux-v5.10/arch/powerpc/mm/
Dhugetlbpage.c220 int __init pseries_alloc_bootmem_huge_page(struct hstate *hstate) in pseries_alloc_bootmem_huge_page() argument
228 m->hstate = hstate; in pseries_alloc_bootmem_huge_page()
234 int __init alloc_bootmem_huge_page(struct hstate *h) in alloc_bootmem_huge_page()
562 struct hstate *hstate = hstate_file(file); in hugetlb_get_unmapped_area() local
563 int mmu_psize = shift_to_mmu_psize(huge_page_shift(hstate)); in hugetlb_get_unmapped_area()
Dpgtable.c239 struct hstate *h = hstate_vma(vma); in huge_ptep_set_access_flags()
/Linux-v5.10/arch/powerpc/mm/nohash/
Dbook3e_hugetlbpage.c200 struct hstate *hstate = hstate_file(vma->vm_file); in flush_hugetlb_page() local
201 unsigned long tsize = huge_page_shift(hstate) - 10; in flush_hugetlb_page()
/Linux-v5.10/arch/x86/mm/
Dhugetlbpage.c82 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_bottomup()
105 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_topdown()
145 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
/Linux-v5.10/arch/s390/mm/
Dhugetlbpage.c271 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_bottomup()
287 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_topdown()
319 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
/Linux-v5.10/arch/arm64/include/asm/
Dhugetlb.h17 extern bool arch_hugetlb_migration_supported(struct hstate *h);
/Linux-v5.10/arch/mips/include/asm/
Dhugetlb.h20 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
/Linux-v5.10/arch/sparc/mm/
Dhugetlbpage.c32 struct hstate *h = hstate_file(filp); in hugetlb_get_unmapped_area_bottomup()
63 struct hstate *h = hstate_file(filp); in hugetlb_get_unmapped_area_topdown()
100 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
/Linux-v5.10/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_crtc.c296 struct atmel_hlcdc_crtc_state *hstate; in atmel_hlcdc_crtc_select_output_mode() local
321 hstate = drm_crtc_state_to_atmel_hlcdc_crtc_state(state); in atmel_hlcdc_crtc_select_output_mode()
322 hstate->output_mode = fls(output_fmts) - 1; in atmel_hlcdc_crtc_select_output_mode()
/Linux-v5.10/include/asm-generic/
Dhugetlb.h94 struct hstate *h = hstate_file(file); in prepare_hugepage_range()
/Linux-v5.10/arch/powerpc/include/asm/
Dkvm_book3s_asm.h154 struct kvmppc_host_state hstate;
/Linux-v5.10/Documentation/vm/
Dhugetlbfs_reserv.rst36 This is a global (per-hstate) count of reserved huge pages. Reserved
302 There is a struct hstate associated with each huge page size. The hstate
304 of pages within a hstate that is associated with a mounted hugetlbfs
467 long vma_needs_reservation(struct hstate *h,
474 long vma_commit_reservation(struct hstate *h,
486 void vma_end_reservation(struct hstate *h,
495 long vma_add_reservation(struct hstate *h,
556 Per-node huge page lists existed in struct hstate when git was first used
/Linux-v5.10/arch/parisc/mm/
Dhugetlbpage.c28 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
/Linux-v5.10/arch/arm64/mm/
Dhugetlbpage.c60 bool arch_hugetlb_migration_supported(struct hstate *h) in arch_hugetlb_migration_supported()
/Linux-v5.10/ipc/
Dshm.c639 struct hstate *hs; in newseg()
840 struct hstate *h = hstate_file(shp->shm_file); in shm_add_rss_swap()
/Linux-v5.10/drivers/scsi/lpfc/
Dlpfc_nvmet.c1315 u32 hstate; in lpfc_nvmet_ls_req() local
1324 hstate = atomic_read(&lpfc_nvmet->state); in lpfc_nvmet_ls_req()
1325 if (hstate == LPFC_NVMET_INV_HOST_ACTIVE) in lpfc_nvmet_ls_req()
/Linux-v5.10/arch/powerpc/kernel/
Dasm-offsets.c636 # define HSTATE_FIELD(x, f) DEFINE(x, offsetof(struct kvmppc_book3s_shadow_vcpu, hstate.f)) in main()

12