Lines Matching defs:h

164 struct hugepage_subpool *hugepage_new_subpool(struct hstate *h, long max_hpages,  in hugepage_new_subpool()
500 struct hstate *h, in record_hugetlb_cgroup_uncharge_info()
582 long to, struct hstate *h, struct hugetlb_cgroup *cg, in hugetlb_resv_map_add()
608 struct hstate *h, long *regions_needed) in add_reservation_in_range()
740 long in_regions_needed, struct hstate *h, in region_add()
976 struct hstate *h = hstate_inode(inode); in hugetlb_fix_reserve_counts() local
1023 static pgoff_t vma_hugecache_offset(struct hstate *h, in vma_hugecache_offset()
1100 struct hstate *h) in resv_map_set_hugetlb_cgroup_uncharge_info()
1281 static void enqueue_hugetlb_folio(struct hstate *h, struct folio *folio) in enqueue_hugetlb_folio()
1294 static struct folio *dequeue_hugetlb_folio_node_exact(struct hstate *h, in dequeue_hugetlb_folio_node_exact()
1322 static struct folio *dequeue_hugetlb_folio_nodemask(struct hstate *h, gfp_t gfp_mask, in dequeue_hugetlb_folio_nodemask()
1362 static unsigned long available_huge_pages(struct hstate *h) in available_huge_pages()
1367 static struct folio *dequeue_hugetlb_folio_vma(struct hstate *h, in dequeue_hugetlb_folio_vma()
1453 static int hstate_next_node_to_free(struct hstate *h, nodemask_t *nodes_allowed) in hstate_next_node_to_free()
1479 static struct folio *alloc_gigantic_folio(struct hstate *h, gfp_t gfp_mask, in alloc_gigantic_folio()
1512 static struct folio *alloc_gigantic_folio(struct hstate *h, gfp_t gfp_mask, in alloc_gigantic_folio()
1520 static struct folio *alloc_gigantic_folio(struct hstate *h, gfp_t gfp_mask, in alloc_gigantic_folio()
1535 static void remove_hugetlb_folio(struct hstate *h, struct folio *folio, in remove_hugetlb_folio()
1571 static void add_hugetlb_folio(struct hstate *h, struct folio *folio, in add_hugetlb_folio()
1601 static void __update_and_free_hugetlb_folio(struct hstate *h, in __update_and_free_hugetlb_folio()
1676 struct hstate *h; in free_hpage_workfn() local
1697 static inline void flush_free_hpage_work(struct hstate *h) in flush_free_hpage_work()
1703 static void update_and_free_hugetlb_folio(struct hstate *h, struct folio *folio, in update_and_free_hugetlb_folio()
1722 static void bulk_vmemmap_restore_error(struct hstate *h, in bulk_vmemmap_restore_error()
1773 static void update_and_free_pages_bulk(struct hstate *h, in update_and_free_pages_bulk()
1816 struct hstate *h; in size_to_hstate() local
1831 struct hstate *h = folio_hstate(folio); in free_huge_folio() local
1896 static void __prep_account_new_huge_page(struct hstate *h, int nid) in __prep_account_new_huge_page()
1903 static void init_new_hugetlb_folio(struct hstate *h, struct folio *folio) in init_new_hugetlb_folio()
1912 static void __prep_new_hugetlb_folio(struct hstate *h, struct folio *folio) in __prep_new_hugetlb_folio()
1918 static void prep_new_hugetlb_folio(struct hstate *h, struct folio *folio, int nid) in prep_new_hugetlb_folio()
1946 static struct folio *alloc_buddy_hugetlb_folio(struct hstate *h, in alloc_buddy_hugetlb_folio()
2010 static struct folio *only_alloc_fresh_hugetlb_folio(struct hstate *h, in only_alloc_fresh_hugetlb_folio()
2032 static struct folio *alloc_fresh_hugetlb_folio(struct hstate *h, in alloc_fresh_hugetlb_folio()
2048 static void prep_and_add_allocated_folios(struct hstate *h, in prep_and_add_allocated_folios()
2070 static struct folio *alloc_pool_huge_folio(struct hstate *h, in alloc_pool_huge_folio()
2097 static struct folio *remove_pool_hugetlb_folio(struct hstate *h, in remove_pool_hugetlb_folio()
2151 struct hstate *h = folio_hstate(folio); in dissolve_free_hugetlb_folio() local
2227 struct hstate *h; in dissolve_free_hugetlb_folios() local
2249 static struct folio *alloc_surplus_hugetlb_folio(struct hstate *h, in alloc_surplus_hugetlb_folio()
2299 static struct folio *alloc_migrate_hugetlb_folio(struct hstate *h, gfp_t gfp_mask, in alloc_migrate_hugetlb_folio()
2326 struct folio *alloc_buddy_hugetlb_folio_with_mpol(struct hstate *h, in alloc_buddy_hugetlb_folio_with_mpol()
2351 struct folio *alloc_hugetlb_folio_reserve(struct hstate *h, int preferred_nid, in alloc_hugetlb_folio_reserve()
2369 struct folio *alloc_hugetlb_folio_nodemask(struct hstate *h, int preferred_nid, in alloc_hugetlb_folio_nodemask()
2413 static int gather_surplus_pages(struct hstate *h, long delta) in gather_surplus_pages()
2528 static void return_unused_surplus_pages(struct hstate *h, in return_unused_surplus_pages()
2608 static long __vma_reservation_common(struct hstate *h, in __vma_reservation_common()
2688 static long vma_needs_reservation(struct hstate *h, in vma_needs_reservation()
2694 static long vma_commit_reservation(struct hstate *h, in vma_commit_reservation()
2700 static void vma_end_reservation(struct hstate *h, in vma_end_reservation()
2706 static long vma_add_reservation(struct hstate *h, in vma_add_reservation()
2712 static long vma_del_reservation(struct hstate *h, in vma_del_reservation()
2738 void restore_reserve_on_error(struct hstate *h, struct vm_area_struct *vma, in restore_reserve_on_error()
2819 static int alloc_and_dissolve_hugetlb_folio(struct hstate *h, in alloc_and_dissolve_hugetlb_folio()
2901 struct hstate *h; in isolate_or_dissolve_huge_page() local
2944 struct hstate *h; in replace_free_hugepage_folios() local
3019 struct hstate *h = hstate_vma(vma); in alloc_hugetlb_folio() local
3190 static __init void *alloc_bootmem(struct hstate *h, int nid, bool node_exact) in alloc_bootmem()
3242 int __alloc_bootmem_huge_page(struct hstate *h, int nid) in __alloc_bootmem_huge_page()
3300 struct hstate *h, in hugetlb_folio_init_vmemmap()
3336 struct hstate *h) in hugetlb_bootmem_init_migratetype()
3351 static void __init prep_and_add_bootmem_folios(struct hstate *h, in prep_and_add_bootmem_folios()
3419 struct hstate *h) in hugetlb_bootmem_free_invalid_page()
3440 struct hstate *h = NULL, *prev_h = NULL; in gather_bootmem_prealloc_node() local
3527 static void __init hugetlb_hstate_alloc_pages_onenode(struct hstate *h, int nid) in hugetlb_hstate_alloc_pages_onenode()
3563 static bool __init hugetlb_hstate_alloc_pages_specific_nodes(struct hstate *h) in hugetlb_hstate_alloc_pages_specific_nodes()
3578 static void __init hugetlb_hstate_alloc_pages_errcheck(unsigned long allocated, struct hstate *h) in hugetlb_hstate_alloc_pages_errcheck()
3592 struct hstate *h = (struct hstate *)arg; in hugetlb_pages_alloc_boot_node() local
3614 static unsigned long __init hugetlb_gigantic_pages_alloc_boot(struct hstate *h) in hugetlb_gigantic_pages_alloc_boot()
3627 static unsigned long __init hugetlb_pages_alloc_boot(struct hstate *h) in hugetlb_pages_alloc_boot()
3688 static void __init hugetlb_hstate_alloc_pages(struct hstate *h) in hugetlb_hstate_alloc_pages()
3717 struct hstate *h, *h2; in hugetlb_init_hstates() local
3748 struct hstate *h; in report_hugepages() local
3769 static void try_to_free_low(struct hstate *h, unsigned long count, in try_to_free_low()
3801 static inline void try_to_free_low(struct hstate *h, unsigned long count, in try_to_free_low()
3812 static int adjust_pool_surplus(struct hstate *h, nodemask_t *nodes_allowed, in adjust_pool_surplus()
3840 #define persistent_huge_pages(h) (h->nr_huge_pages - h->surplus_huge_pages) argument
3841 static int set_max_huge_pages(struct hstate *h, unsigned long count, int nid, in set_max_huge_pages()
4189 struct hstate *h; in nr_hugepages_show_common() local
4203 struct hstate *h, int nid, in __nr_hugepages_store_common()
4239 struct hstate *h; in nr_hugepages_store_common() local
4290 struct hstate *h = kobj_to_hstate(kobj, NULL); in nr_overcommit_hugepages_show() local
4299 struct hstate *h = kobj_to_hstate(kobj, NULL); in nr_overcommit_hugepages_store() local
4319 struct hstate *h; in free_hugepages_show() local
4336 struct hstate *h = kobj_to_hstate(kobj, NULL); in resv_hugepages_show() local
4344 struct hstate *h; in surplus_hugepages_show() local
4364 struct hstate *h; in demote_store() local
4420 struct hstate *h = kobj_to_hstate(kobj, NULL); in demote_size_show() local
4430 struct hstate *h, *demote_hstate; in demote_size_store() local
4483 static int hugetlb_sysfs_add_hstate(struct hstate *h, struct kobject *parent, in hugetlb_sysfs_add_hstate()
4575 struct hstate *h; in hugetlb_unregister_node() local
4605 struct hstate *h; in hugetlb_register_node() local
4661 struct hstate *h; in hugetlb_sysfs_init() local
4768 struct hstate *h; in hugetlb_add_hstate() local
4939 struct hstate *h; in hugepagesz_setup() local
5041 struct hstate *h; in hugetlb_bootmem_alloc() local
5085 static unsigned int allowed_mems_nr(struct hstate *h) in allowed_mems_nr()
5123 struct hstate *h = &default_hstate; in hugetlb_sysctl_handler_common() local
5162 struct hstate *h = &default_hstate; in hugetlb_overcommit_handler() local
5229 struct hstate *h; in hugetlb_report_meminfo() local
5259 struct hstate *h = &default_hstate; in hugetlb_report_node_meminfo() local
5275 struct hstate *h; in hugetlb_show_meminfo_node() local
5298 struct hstate *h; in hugetlb_total_pages() local
5306 static int hugetlb_acct_memory(struct hstate *h, long delta) in hugetlb_acct_memory()
5396 struct hstate *h = hstate_vma(vma); in hugetlb_vm_op_close() local
5568 struct hstate *h = hstate_vma(src_vma); in copy_hugetlb_page_range() local
5753 struct hstate *h = hstate_vma(vma); in move_huge_pte() local
5792 struct hstate *h = hstate_vma(vma); in move_hugetlb_page_tables() local
5861 struct hstate *h = hstate_vma(vma); in __unmap_hugepage_range() local
6086 struct hstate *h = hstate_vma(vma); in unmap_ref_private() local
6146 struct hstate *h = hstate_vma(vma); in hugetlb_wp() local
6335 bool hugetlbfs_pagecache_present(struct hstate *h, in hugetlbfs_pagecache_present()
6353 struct hstate *h = hstate_inode(inode); in hugetlb_add_to_page_cache() local
6399 static bool hugetlb_pte_stable(struct hstate *h, struct mm_struct *mm, unsigned long addr, in hugetlb_pte_stable()
6417 struct hstate *h = hstate_vma(vma); in hugetlb_no_page() local
6660 struct hstate *h = hstate_vma(vma); in hugetlb_fault() local
6865 static struct folio *alloc_hugetlb_folio_vma(struct hstate *h, in alloc_hugetlb_folio_vma()
6902 struct hstate *h = hstate_vma(dst_vma); in hugetlb_mfill_atomic_pte() local
7113 struct hstate *h = hstate_vma(vma); in hugetlb_change_protection() local
7259 struct hstate *h = hstate_inode(inode); in hugetlb_reserve_pages() local
7424 struct hstate *h = hstate_inode(inode); in hugetlb_unreserve_pages() local
7726 unsigned long hugetlb_mask_last_page(struct hstate *h) in hugetlb_mask_last_page()
7741 __weak unsigned long hugetlb_mask_last_page(struct hstate *h) in hugetlb_mask_last_page()
7839 struct hstate *h = folio_hstate(old_folio); in move_hugetlb_state() local
7891 struct hstate *h = hstate_vma(vma); in hugetlb_unshare_pmds() local