Searched refs:hugepage_size (Results 1 – 3 of 3) sorted by relevance
83 int check_compaction(unsigned long mem_free, unsigned int hugepage_size) in check_compaction() argument129 compaction_index = mem_free/(atoi(nr_hugepages) * hugepage_size); in check_compaction()167 unsigned long hugepage_size = 0; in main() local188 if (read_memory_info(&mem_free, &hugepage_size) != 0) { in main()226 if (check_compaction(mem_free, hugepage_size) == 0) in main()
142 unsigned long hugepage_size = _PAGE_SZ4MB_4V; in sun4v_hugepage_shift_to_tte() local148 hugepage_size = _PAGE_SZ16GB_4V; in sun4v_hugepage_shift_to_tte()152 hugepage_size = _PAGE_SZ2GB_4V; in sun4v_hugepage_shift_to_tte()156 hugepage_size = _PAGE_SZ256MB_4V; in sun4v_hugepage_shift_to_tte()163 hugepage_size = _PAGE_SZ64K_4V; in sun4v_hugepage_shift_to_tte()169 pte_val(entry) = pte_val(entry) | hugepage_size; in sun4v_hugepage_shift_to_tte()
365 unsigned long long hugepage_size; in setup_hugepagesz() local371 hugepage_size = memparse(string, &string); in setup_hugepagesz()372 hugepage_shift = ilog2(hugepage_size); in setup_hugepagesz()403 hugepage_size); in setup_hugepagesz()407 add_huge_page_size(hugepage_size); in setup_hugepagesz()441 unsigned long hugepage_size = PAGE_SIZE; in update_mmu_cache() local444 hugepage_size = huge_page_size(hstate_vma(vma)); in update_mmu_cache()446 if (hugepage_size >= PUD_SIZE) { in update_mmu_cache()454 } else if (hugepage_size >= PMD_SIZE) { in update_mmu_cache()461 if (hugepage_size >= PMD_SIZE) { in update_mmu_cache()