/Linux-v6.6/tools/testing/selftests/mm/ |
D | transhuge-stress.c | 70 len -= len % HPAGE_SIZE; in main() 71 ptr = mmap(NULL, len + HPAGE_SIZE, PROT_RW, mmap_flags, backing_fd, 0); in main() 74 ptr += HPAGE_SIZE - (uintptr_t)ptr % HPAGE_SIZE; in main() 92 for (p = ptr; p < ptr + len; p += HPAGE_SIZE) { in main() 116 if (madvise(p, HPAGE_SIZE - psize(), MADV_DONTNEED)) in main()
|
D | ksm_tests.c | 561 len -= len % HPAGE_SIZE; in ksm_merge_hugepages_time() 562 map_ptr_orig = mmap(NULL, len + HPAGE_SIZE, PROT_READ | PROT_WRITE, in ksm_merge_hugepages_time() 564 map_ptr = map_ptr_orig + HPAGE_SIZE - (uintptr_t)map_ptr_orig % HPAGE_SIZE; in ksm_merge_hugepages_time() 569 if (madvise(map_ptr, len + HPAGE_SIZE, MADV_HUGEPAGE)) in ksm_merge_hugepages_time() 578 for (void *p = map_ptr; p < map_ptr + len; p += HPAGE_SIZE) { in ksm_merge_hugepages_time() 609 munmap(map_ptr_orig, len + HPAGE_SIZE); in ksm_merge_hugepages_time() 614 munmap(map_ptr_orig, len + HPAGE_SIZE); in ksm_merge_hugepages_time()
|
D | protection_keys.c | 727 size = ALIGN_UP(size, HPAGE_SIZE * 2); in malloc_pkey_anon_huge() 734 ptr = ALIGN_PTR_UP(ptr, HPAGE_SIZE); in malloc_pkey_anon_huge() 736 ret = madvise(ptr, HPAGE_SIZE, MADV_HUGEPAGE); in malloc_pkey_anon_huge() 738 ret = madvise(ptr, HPAGE_SIZE, MADV_WILLNEED); in malloc_pkey_anon_huge() 740 memset(ptr, 0, HPAGE_SIZE); in malloc_pkey_anon_huge() 769 hpagesz_kb = HPAGE_SIZE / 1024; in setup_hugetlbfs() 806 size = ALIGN_UP(size, HPAGE_SIZE * 2); in malloc_pkey_hugetlb() 979 if (size >= HPAGE_SIZE) in test_pkey_alloc_free_attach_pkey0() 980 size = HPAGE_SIZE; in test_pkey_alloc_free_attach_pkey0() 1362 if (size >= HPAGE_SIZE) in test_mprotect_with_pkey_0() [all …]
|
D | vm_util.c | 158 if (mmap(ptr, HPAGE_SIZE, PROT_READ | PROT_WRITE, in allocate_transhuge() 163 if (madvise(ptr, HPAGE_SIZE, MADV_HUGEPAGE)) in allocate_transhuge()
|
D | vm_util.h | 59 #define HPAGE_SIZE (1 << HPAGE_SHIFT) macro
|
D | pkey-powerpc.h | 31 #define HPAGE_SIZE (1UL << 24) macro
|
D | pkey-x86.h | 29 #define HPAGE_SIZE (1UL<<21) macro
|
/Linux-v6.6/arch/x86/include/asm/ |
D | page_types.h | 24 #define HPAGE_SIZE (_AC(1,UL) << HPAGE_SHIFT) macro 25 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
/Linux-v6.6/arch/mips/include/asm/ |
D | page.h | 63 #define HPAGE_SIZE (_AC(1,UL) << HPAGE_SHIFT) macro 64 #define HPAGE_MASK (~(HPAGE_SIZE - 1)) 68 #define HPAGE_SIZE ({BUILD_BUG(); 0; }) macro
|
D | hugetlb.h | 82 flush_tlb_range(vma, addr, addr + HPAGE_SIZE); in huge_ptep_set_access_flags()
|
/Linux-v6.6/arch/x86/kernel/ |
D | vmlinux.lds.S | 62 #define X86_ALIGN_RODATA_BEGIN . = ALIGN(HPAGE_SIZE); 65 . = ALIGN(HPAGE_SIZE); \ 449 . = ALIGN(HPAGE_SIZE); 453 . = ALIGN(HPAGE_SIZE);
|
/Linux-v6.6/arch/hexagon/include/asm/ |
D | page.h | 47 #define HPAGE_SIZE (1UL << HPAGE_SHIFT) macro 48 #define HPAGE_MASK (~(HPAGE_SIZE-1))
|
/Linux-v6.6/arch/loongarch/include/asm/ |
D | page.h | 27 #define HPAGE_SIZE (_AC(1, UL) << HPAGE_SHIFT) macro 28 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
D | hugetlb.h | 76 flush_tlb_range(vma, addr, addr + HPAGE_SIZE); in huge_ptep_set_access_flags()
|
/Linux-v6.6/arch/powerpc/include/asm/ |
D | page.h | 38 #define HPAGE_SIZE ((1UL) << HPAGE_SHIFT) macro 39 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
/Linux-v6.6/arch/parisc/include/asm/ |
D | page.h | 160 #define HPAGE_SIZE ((1UL) << HPAGE_SHIFT) macro 161 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
/Linux-v6.6/arch/sh/include/asm/ |
D | page.h | 41 #define HPAGE_SIZE (1UL << HPAGE_SHIFT) macro 42 #define HPAGE_MASK (~(HPAGE_SIZE-1))
|
/Linux-v6.6/arch/ia64/mm/ |
D | hugetlbpage.c | 147 if ((REGION_NUMBER(addr) != RGN_HPAGE) || (addr & (HPAGE_SIZE - 1))) in hugetlb_get_unmapped_area() 154 info.align_mask = PAGE_MASK & (HPAGE_SIZE - 1); in hugetlb_get_unmapped_area()
|
/Linux-v6.6/arch/sparc/include/asm/ |
D | page_64.h | 28 #define HPAGE_SIZE (_AC(1,UL) << HPAGE_SHIFT) macro 29 #define HPAGE_MASK (~(HPAGE_SIZE - 1UL))
|
/Linux-v6.6/arch/s390/include/asm/ |
D | page.h | 28 #define HPAGE_SIZE (1UL << HPAGE_SHIFT) macro 29 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
D | kexec.h | 43 #define KEXEC_CRASH_MEM_ALIGN HPAGE_SIZE
|
/Linux-v6.6/arch/ia64/include/asm/ |
D | page.h | 53 # define HPAGE_SIZE (__IA64_UL_CONST(1) << HPAGE_SHIFT) macro 54 # define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
/Linux-v6.6/arch/riscv/include/asm/ |
D | page.h | 20 #define HPAGE_SIZE (_AC(1, UL) << HPAGE_SHIFT) macro 21 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
/Linux-v6.6/arch/arm/include/asm/ |
D | pgtable-3level.h | 58 #define HPAGE_SIZE (_AC(1, UL) << HPAGE_SHIFT) macro 59 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
/Linux-v6.6/arch/sparc/mm/ |
D | hugetlbpage.c | 273 size = HPAGE_SIZE; in huge_tte_to_size() 362 if (size == HPAGE_SIZE) in __set_huge_pte_at() 403 if (size == HPAGE_SIZE) in huge_ptep_get_and_clear()
|