/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
D | transhuge-stress.c | 23 #define HPAGE_SIZE (1 << HPAGE_SHIFT) macro 35 if (mmap(ptr, HPAGE_SIZE, PROT_READ | PROT_WRITE, in allocate_transhuge() 40 if (madvise(ptr, HPAGE_SIZE, MADV_HUGEPAGE)) in allocate_transhuge() 88 len -= len % HPAGE_SIZE; in main() 89 ptr = mmap(NULL, len + HPAGE_SIZE, PROT_READ | PROT_WRITE, in main() 93 ptr += HPAGE_SIZE - (uintptr_t)ptr % HPAGE_SIZE; in main() 109 for (p = ptr; p < ptr + len; p += HPAGE_SIZE) { in main() 133 if (madvise(p, HPAGE_SIZE - PAGE_SIZE, MADV_DONTNEED)) in main()
|
D | protection_keys.c | 735 size = ALIGN_UP(size, HPAGE_SIZE * 2); in malloc_pkey_anon_huge() 742 ptr = ALIGN_PTR_UP(ptr, HPAGE_SIZE); in malloc_pkey_anon_huge() 744 ret = madvise(ptr, HPAGE_SIZE, MADV_HUGEPAGE); in malloc_pkey_anon_huge() 746 ret = madvise(ptr, HPAGE_SIZE, MADV_WILLNEED); in malloc_pkey_anon_huge() 748 memset(ptr, 0, HPAGE_SIZE); in malloc_pkey_anon_huge() 777 hpagesz_kb = HPAGE_SIZE / 1024; in setup_hugetlbfs() 814 size = ALIGN_UP(size, HPAGE_SIZE * 2); in malloc_pkey_hugetlb() 987 if (size >= HPAGE_SIZE) in test_pkey_alloc_free_attach_pkey0() 988 size = HPAGE_SIZE; in test_pkey_alloc_free_attach_pkey0() 1298 if (size >= HPAGE_SIZE) in test_mprotect_with_pkey_0() [all …]
|
D | pkey-powerpc.h | 34 #define HPAGE_SIZE (1UL << 24) macro
|
D | pkey-x86.h | 47 #define HPAGE_SIZE (1UL<<21) macro
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | page_types.h | 30 #define HPAGE_SIZE (_AC(1,UL) << HPAGE_SHIFT) macro 31 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
/kernel/linux/linux-5.10/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 | 79 flush_tlb_range(vma, addr, addr + HPAGE_SIZE); in huge_ptep_set_access_flags()
|
/kernel/linux/linux-5.10/arch/ia64/mm/ |
D | hugetlbpage.c | 101 ptep = huge_pte_offset(mm, addr, HPAGE_SIZE); in follow_huge_addr() 161 if ((REGION_NUMBER(addr) != RGN_HPAGE) || (addr & (HPAGE_SIZE - 1))) in hugetlb_get_unmapped_area() 168 info.align_mask = PAGE_MASK & (HPAGE_SIZE - 1); in hugetlb_get_unmapped_area()
|
/kernel/linux/linux-5.10/arch/x86/kernel/ |
D | vmlinux.lds.S | 62 #define X86_ALIGN_RODATA_BEGIN . = ALIGN(HPAGE_SIZE); 65 . = ALIGN(HPAGE_SIZE); \ 425 . = ALIGN(HPAGE_SIZE); 429 . = ALIGN(HPAGE_SIZE);
|
/kernel/linux/linux-5.10/arch/hexagon/include/asm/ |
D | page.h | 47 #define HPAGE_SIZE (1UL << HPAGE_SHIFT) macro 48 #define HPAGE_MASK (~(HPAGE_SIZE-1))
|
/kernel/linux/linux-5.10/arch/riscv/include/asm/ |
D | page.h | 25 #define HPAGE_SIZE (_AC(1, UL) << HPAGE_SHIFT) macro 26 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | page.h | 37 #define HPAGE_SIZE ((1UL) << HPAGE_SHIFT) macro 38 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
/kernel/linux/linux-5.10/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))
|
/kernel/linux/linux-5.10/arch/parisc/include/asm/ |
D | page.h | 162 #define HPAGE_SIZE ((1UL) << HPAGE_SHIFT) macro 163 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
D | page.h | 41 #define HPAGE_SIZE (1UL << HPAGE_SHIFT) macro 42 #define HPAGE_MASK (~(HPAGE_SIZE-1))
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
D | page.h | 26 #define HPAGE_SIZE (1UL << HPAGE_SHIFT) macro 27 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
|
D | kexec.h | 43 #define KEXEC_CRASH_MEM_ALIGN HPAGE_SIZE
|
/kernel/linux/linux-5.10/arch/riscv/mm/ |
D | hugetlbpage.c | 17 if (size == HPAGE_SIZE) in arch_hugetlb_valid_size()
|
/kernel/linux/linux-5.10/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))
|
/kernel/linux/linux-5.10/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))
|
/kernel/linux/linux-5.10/arch/sparc/mm/ |
D | hugetlbpage.c | 271 size = HPAGE_SIZE; in huge_tte_to_size() 356 if (size == HPAGE_SIZE) in set_huge_pte_at() 391 if (size == HPAGE_SIZE) in huge_ptep_get_and_clear()
|
D | tlb.c | 151 end = vaddr + HPAGE_SIZE; in tlb_batch_pmd_scan()
|
/kernel/linux/linux-5.10/arch/x86/mm/ |
D | hugetlbpage.c | 41 page = &pte_page(*pte)[vpfn % (HPAGE_SIZE/PAGE_SIZE)];
|
/kernel/linux/linux-5.10/arch/mips/mm/ |
D | tlb-r4k.c | 335 write_c0_entrylo1(lo + (HPAGE_SIZE >> 7)); in __update_tlb()
|
/kernel/linux/linux-5.10/arch/s390/kvm/ |
D | pv.c | 140 vlen = ALIGN(virt * ((npages * PAGE_SIZE) / HPAGE_SIZE), PAGE_SIZE); in kvm_s390_pv_alloc_vm()
|