| /linux/tools/testing/selftests/mm/ |
| H A D | transhuge-stress.c | 80 len -= len % HPAGE_SIZE; in main() 81 ptr = mmap(NULL, len + HPAGE_SIZE, PROT_RW, mmap_flags, backing_fd, 0); in main() 84 ptr += HPAGE_SIZE - (uintptr_t)ptr % HPAGE_SIZE; in main() 102 for (p = ptr; p < ptr + len; p += HPAGE_SIZE) { in main() 126 if (madvise(p, HPAGE_SIZE - psize(), MADV_DONTNEED)) in main()
|
| H A D | ksm_tests.c | 539 len -= len % HPAGE_SIZE; in ksm_merge_hugepages_time() 540 map_ptr_orig = mmap(NULL, len + HPAGE_SIZE, PROT_READ | PROT_WRITE, in ksm_merge_hugepages_time() 542 map_ptr = map_ptr_orig + HPAGE_SIZE - (uintptr_t)map_ptr_orig % HPAGE_SIZE; in ksm_merge_hugepages_time() 556 for (void *p = map_ptr; p < map_ptr + len; p += HPAGE_SIZE) { in ksm_merge_hugepages_time() 587 munmap(map_ptr_orig, len + HPAGE_SIZE); in ksm_merge_hugepages_time() 592 munmap(map_ptr_orig, len + HPAGE_SIZE); in ksm_merge_hugepages_time()
|
| H A D | protection_keys.c | 691 size = ALIGN_UP(size, HPAGE_SIZE * 2); in malloc_pkey_anon_huge() 698 ptr = ALIGN_PTR_UP(ptr, HPAGE_SIZE); in malloc_pkey_anon_huge() 700 ret = madvise(ptr, HPAGE_SIZE, MADV_HUGEPAGE); in malloc_pkey_anon_huge() 702 ret = madvise(ptr, HPAGE_SIZE, MADV_WILLNEED); in malloc_pkey_anon_huge() 704 memset(ptr, 0, HPAGE_SIZE); in malloc_pkey_anon_huge() 733 hpagesz_kb = HPAGE_SIZE / 1024; in setup_hugetlbfs() 770 size = ALIGN_UP(size, HPAGE_SIZE * 2); in malloc_pkey_hugetlb() 908 if (size >= HPAGE_SIZE) in test_pkey_alloc_free_attach_pkey0() 909 size = HPAGE_SIZE; in test_pkey_alloc_free_attach_pkey0() 1292 if (size >= HPAGE_SIZE) in test_mprotect_with_pkey_0() [all …]
|
| H A D | pkey-powerpc.h | 36 #define HPAGE_SIZE (1UL << 24) macro
|
| H A D | vm_util.h | 165 #define HPAGE_SIZE (1 << HPAGE_SHIFT) macro
|
| H A D | vm_util.c | 271 if (mmap(ptr, HPAGE_SIZE, PROT_READ | PROT_WRITE, in allocate_transhuge() 276 if (madvise(ptr, HPAGE_SIZE, MADV_HUGEPAGE)) in allocate_transhuge()
|
| H A D | guard-regions.c | 2194 const unsigned long size = 2 * HPAGE_SIZE; in TEST_F()
|
| /linux/arch/x86/kernel/ |
| H A D | vmlinux.lds.S | 61 #define X86_ALIGN_RODATA_BEGIN . = ALIGN(HPAGE_SIZE); 64 . = ALIGN(HPAGE_SIZE); \ 415 . = ALIGN(HPAGE_SIZE); 419 . = ALIGN(HPAGE_SIZE);
|
| /linux/arch/arc/include/asm/ |
| H A D | hugepage.h | 17 #define HPAGE_SIZE (_AC(1, UL) << HPAGE_SHIFT) macro 18 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
| /linux/arch/loongarch/include/asm/ |
| H A D | page.h | 14 #define HPAGE_SIZE (_AC(1, UL) << HPAGE_SHIFT) macro 15 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
| /linux/arch/sh/include/asm/ |
| H A D | page.h | 28 #define HPAGE_SIZE (1UL << HPAGE_SHIFT) macro 29 #define HPAGE_MASK (~(HPAGE_SIZE-1))
|
| /linux/arch/riscv/include/asm/ |
| H A D | page.h | 18 #define HPAGE_SIZE (_AC(1, UL) << HPAGE_SHIFT) macro 19 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
| /linux/arch/arm/include/asm/ |
| H A D | pgtable-3level.h | 58 #define HPAGE_SIZE (_AC(1, UL) << HPAGE_SHIFT) macro 59 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
| /linux/arch/s390/kvm/ |
| H A D | pv.c | 351 vlen = ALIGN(virt * ((npages * PAGE_SIZE) / HPAGE_SIZE), PAGE_SIZE); in kvm_s390_pv_alloc_vm() 863 #define DUMP_BUFF_LEN HPAGE_SIZE 911 if (!IS_ALIGNED(*gaddr, HPAGE_SIZE)) in kvm_s390_pv_dump_stor_state() 951 uvcb.gaddr += HPAGE_SIZE; in kvm_s390_pv_dump_stor_state()
|
| H A D | dat.c | 331 table->crstes[i].val = init.val | i * HPAGE_SIZE; in dat_split_crste()
|
| /linux/arch/sparc/mm/ |
| H A D | fault_64.c | 468 mm_rss -= (mm->context.thp_pte_count * (HPAGE_SIZE / PAGE_SIZE)); in do_sparc64_fault()
|
| H A D | tsb.c | 562 mm_rss -= saved_thp_pte_count * (HPAGE_SIZE / PAGE_SIZE); in init_new_context()
|
| /linux/arch/mips/mm/ |
| H A D | tlb-r4k.c | 339 write_c0_entrylo1(lo + (HPAGE_SIZE >> 7)); in __update_tlb()
|
| H A D | tlbex.c | 704 small_sequence = (HPAGE_SIZE >> 7) < 0x10000; in build_huge_update_entries() 708 uasm_i_lui(p, tmp, HPAGE_SIZE >> (7 + 16)); in build_huge_update_entries() 714 UASM_i_ADDIU(p, pte, pte, HPAGE_SIZE >> 7); in build_huge_update_entries()
|
| /linux/arch/arm64/include/asm/ |
| H A D | pgtable.h | 475 #define HPAGE_SIZE (_AC(1, UL) << HPAGE_SHIFT) macro 476 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
| /linux/mm/ |
| H A D | hugetlb.c | 4124 default_hstate_idx = hstate_index(size_to_hstate(HPAGE_SIZE)); in hugetlb_init() 4171 return size == HPAGE_SIZE; in __init()
|
| /linux/kernel/sched/ |
| H A D | fair.c | 3672 end = ALIGN(start + (pages << PAGE_SHIFT), HPAGE_SIZE); in task_numa_work()
|