Lines Matching refs:pmdsize
36 static size_t pmdsize; variable
57 if (!pmdsize) in detect_thp_sizes()
60 orders = 1UL << sz2ord(pmdsize); in detect_thp_sizes()
838 assert(thpsize == pmdsize); in do_run_with_thp()
1170 settings.hugepages[sz2ord(pmdsize)].enabled = THP_NEVER; in run_anon_test_case()
1174 if (size == pmdsize) { in run_anon_test_case()
1208 if (pmdsize) in tests_per_anon_test_case()
1425 if (!pmdsize) in run_anon_thp_test_cases()
1434 do_run_with_thp(test_case->fn, THP_RUN_PMD, pmdsize); in run_anon_thp_test_cases()
1440 return pmdsize ? 1 : 0; in tests_per_anon_thp_test_case()
1515 mmap_size = 2 * pmdsize; in run_with_huge_zeropage()
1530 mem = (char *)(((uintptr_t)mmap_mem + pmdsize) & ~(pmdsize - 1)); in run_with_huge_zeropage()
1531 smem = (char *)(((uintptr_t)mmap_smem + pmdsize) & ~(pmdsize - 1)); in run_with_huge_zeropage()
1533 ret = madvise(mem, pmdsize, MADV_HUGEPAGE); in run_with_huge_zeropage()
1534 ret |= madvise(smem, pmdsize, MADV_HUGEPAGE); in run_with_huge_zeropage()
1553 fn(mem, smem, pmdsize); in run_with_huge_zeropage()
1746 if (pmdsize) in run_non_anon_test_case()
1767 if (pmdsize) in tests_per_non_anon_test_case()
1780 pmdsize = read_pmd_pagesize(); in main()
1781 if (pmdsize) { in main()
1784 default_settings.hugepages[sz2ord(pmdsize)].enabled = THP_INHERIT; in main()
1789 pmdsize / 1024); in main()
1809 if (pmdsize) { in main()