Searched refs:hpage_size (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/tools/testing/selftests/vm/ |
D | vm_util.c | 76 uint64_t hpage_size) in __check_huge() argument 110 return thp == (nr_hpages * (hpage_size >> 10)); in __check_huge() 113 bool check_huge_anon(void *addr, int nr_hpages, uint64_t hpage_size) in check_huge_anon() argument 115 return __check_huge(addr, "AnonHugePages: ", nr_hpages, hpage_size); in check_huge_anon() 118 bool check_huge_file(void *addr, int nr_hpages, uint64_t hpage_size) in check_huge_file() argument 120 return __check_huge(addr, "FilePmdMapped:", nr_hpages, hpage_size); in check_huge_file() 123 bool check_huge_shmem(void *addr, int nr_hpages, uint64_t hpage_size) in check_huge_shmem() argument 125 return __check_huge(addr, "ShmemPmdMapped:", nr_hpages, hpage_size); in check_huge_shmem()
|
D | vm_util.h | 10 bool check_huge_anon(void *addr, int nr_hpages, uint64_t hpage_size); 11 bool check_huge_file(void *addr, int nr_hpages, uint64_t hpage_size); 12 bool check_huge_shmem(void *addr, int nr_hpages, uint64_t hpage_size);
|
D | userfaultfd.c | 68 static unsigned long nr_cpus, nr_pages, nr_pages_per_cpu, page_size, hpage_size; variable 330 p += 2 * (bytes + hpage_size); in shmem_allocate_area() 333 p_alias += hpage_size; /* Prevent src/dst VMA merge */ in shmem_allocate_area() 363 if (!check_huge_shmem(area_dst_alias, expect_nr_hpages, hpage_size)) in shmem_check_pmd_mapping() 1392 hpage_size); in userfaultfd_minor_test() 1750 page_size = hpage_size; in parse_test_type_arg() 1797 hpage_size = default_huge_page_size(); in main() 1801 if (test_collapse && bytes & (hpage_size - 1)) in main() 1803 hpage_size >> 20); in main()
|
/linux-6.1.9/tools/testing/selftests/memfd/ |
D | fuse_test.c | 242 unsigned long hpage_size = default_huge_page_size(); in main() local 244 if (!hpage_size) { in main() 250 mfd_def_size = hpage_size * 2; in main()
|
D | memfd_test.c | 1038 unsigned long hpage_size = default_huge_page_size(); in main() local 1040 if (!hpage_size) { in main() 1047 mfd_def_size = hpage_size * 2; in main()
|
/linux-6.1.9/fs/hugetlbfs/ |
D | inode.c | 721 loff_t hpage_size = huge_page_size(h); in hugetlbfs_punch_hole() local 727 hole_start = round_up(offset, hpage_size); in hugetlbfs_punch_hole() 728 hole_end = round_down(offset + len, hpage_size); in hugetlbfs_punch_hole() 778 loff_t hpage_size = huge_page_size(h); in hugetlbfs_fallocate() local 796 end = (offset + len + hpage_size - 1) >> hpage_shift; in hugetlbfs_fallocate() 842 addr = index * hpage_size; in hugetlbfs_fallocate() 1130 unsigned long hpage_size = huge_page_size(sbinfo->hstate); in hugetlbfs_show_options() local 1145 hpage_size /= 1024; in hugetlbfs_show_options() 1147 if (hpage_size >= 1024) { in hugetlbfs_show_options() 1148 hpage_size /= 1024; in hugetlbfs_show_options() [all …]
|