Home
last modified time | relevance | path

Searched refs:HPAGE_SIZE (Results 1 – 25 of 38) sorted by relevance

12

/linux-6.1.9/tools/testing/selftests/vm/
Dtranshuge-stress.c67 len -= len % HPAGE_SIZE; in main()
68 ptr = mmap(NULL, len + HPAGE_SIZE, PROT_RW, mmap_flags, backing_fd, 0); in main()
71 ptr += HPAGE_SIZE - (uintptr_t)ptr % HPAGE_SIZE; in main()
87 for (p = ptr; p < ptr + len; p += HPAGE_SIZE) { in main()
111 if (madvise(p, HPAGE_SIZE - PAGE_SIZE, MADV_DONTNEED)) in main()
Dutil.h35 #define HPAGE_SIZE (1 << HPAGE_SHIFT) macro
46 if (mmap(ptr, HPAGE_SIZE, PROT_READ | PROT_WRITE, in allocate_transhuge()
51 if (madvise(ptr, HPAGE_SIZE, MADV_HUGEPAGE)) in allocate_transhuge()
Dksm_tests.c465 len -= len % HPAGE_SIZE; in ksm_merge_hugepages_time()
466 map_ptr_orig = mmap(NULL, len + HPAGE_SIZE, PROT_READ | PROT_WRITE, in ksm_merge_hugepages_time()
468 map_ptr = map_ptr_orig + HPAGE_SIZE - (uintptr_t)map_ptr_orig % HPAGE_SIZE; in ksm_merge_hugepages_time()
473 if (madvise(map_ptr, len + HPAGE_SIZE, MADV_HUGEPAGE)) in ksm_merge_hugepages_time()
482 for (void *p = map_ptr; p < map_ptr + len; p += HPAGE_SIZE) { in ksm_merge_hugepages_time()
513 munmap(map_ptr_orig, len + HPAGE_SIZE); in ksm_merge_hugepages_time()
518 munmap(map_ptr_orig, len + HPAGE_SIZE); in ksm_merge_hugepages_time()
Dprotection_keys.c736 size = ALIGN_UP(size, HPAGE_SIZE * 2); in malloc_pkey_anon_huge()
743 ptr = ALIGN_PTR_UP(ptr, HPAGE_SIZE); in malloc_pkey_anon_huge()
745 ret = madvise(ptr, HPAGE_SIZE, MADV_HUGEPAGE); in malloc_pkey_anon_huge()
747 ret = madvise(ptr, HPAGE_SIZE, MADV_WILLNEED); in malloc_pkey_anon_huge()
749 memset(ptr, 0, HPAGE_SIZE); in malloc_pkey_anon_huge()
778 hpagesz_kb = HPAGE_SIZE / 1024; in setup_hugetlbfs()
815 size = ALIGN_UP(size, HPAGE_SIZE * 2); in malloc_pkey_hugetlb()
988 if (size >= HPAGE_SIZE) in test_pkey_alloc_free_attach_pkey0()
989 size = HPAGE_SIZE; in test_pkey_alloc_free_attach_pkey0()
1371 if (size >= HPAGE_SIZE) in test_mprotect_with_pkey_0()
[all …]
Dpkey-powerpc.h34 #define HPAGE_SIZE (1UL << 24) macro
/linux-6.1.9/arch/x86/include/asm/
Dpage_types.h30 #define HPAGE_SIZE (_AC(1,UL) << HPAGE_SHIFT) macro
31 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
/linux-6.1.9/arch/mips/include/asm/
Dpage.h63 #define HPAGE_SIZE (_AC(1,UL) << HPAGE_SHIFT) macro
64 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
68 #define HPAGE_SIZE ({BUILD_BUG(); 0; }) macro
Dhugetlb.h82 flush_tlb_range(vma, addr, addr + HPAGE_SIZE); in huge_ptep_set_access_flags()
/linux-6.1.9/arch/ia64/mm/
Dhugetlbpage.c102 ptep = huge_pte_offset(mm, addr, HPAGE_SIZE); in follow_huge_addr()
162 if ((REGION_NUMBER(addr) != RGN_HPAGE) || (addr & (HPAGE_SIZE - 1))) in hugetlb_get_unmapped_area()
169 info.align_mask = PAGE_MASK & (HPAGE_SIZE - 1); in hugetlb_get_unmapped_area()
/linux-6.1.9/arch/x86/kernel/
Dvmlinux.lds.S62 #define X86_ALIGN_RODATA_BEGIN . = ALIGN(HPAGE_SIZE);
65 . = ALIGN(HPAGE_SIZE); \
421 . = ALIGN(HPAGE_SIZE);
425 . = ALIGN(HPAGE_SIZE);
/linux-6.1.9/arch/hexagon/include/asm/
Dpage.h47 #define HPAGE_SIZE (1UL << HPAGE_SHIFT) macro
48 #define HPAGE_MASK (~(HPAGE_SIZE-1))
/linux-6.1.9/arch/loongarch/include/asm/
Dpage.h27 #define HPAGE_SIZE (_AC(1, UL) << HPAGE_SHIFT) macro
28 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
Dhugetlb.h76 flush_tlb_range(vma, addr, addr + HPAGE_SIZE); in huge_ptep_set_access_flags()
/linux-6.1.9/arch/powerpc/include/asm/
Dpage.h37 #define HPAGE_SIZE ((1UL) << HPAGE_SHIFT) macro
38 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
/linux-6.1.9/arch/sparc/include/asm/
Dpage_64.h28 #define HPAGE_SIZE (_AC(1,UL) << HPAGE_SHIFT) macro
29 #define HPAGE_MASK (~(HPAGE_SIZE - 1UL))
/linux-6.1.9/arch/parisc/include/asm/
Dpage.h164 #define HPAGE_SIZE ((1UL) << HPAGE_SHIFT) macro
165 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
/linux-6.1.9/arch/sh/include/asm/
Dpage.h41 #define HPAGE_SIZE (1UL << HPAGE_SHIFT) macro
42 #define HPAGE_MASK (~(HPAGE_SIZE-1))
/linux-6.1.9/arch/s390/include/asm/
Dpage.h28 #define HPAGE_SIZE (1UL << HPAGE_SHIFT) macro
29 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
Dkexec.h43 #define KEXEC_CRASH_MEM_ALIGN HPAGE_SIZE
/linux-6.1.9/arch/riscv/include/asm/
Dpage.h25 #define HPAGE_SIZE (_AC(1, UL) << HPAGE_SHIFT) macro
26 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
/linux-6.1.9/arch/ia64/include/asm/
Dpage.h53 # define HPAGE_SIZE (__IA64_UL_CONST(1) << HPAGE_SHIFT) macro
54 # define HPAGE_MASK (~(HPAGE_SIZE - 1))
/linux-6.1.9/arch/riscv/mm/
Dhugetlbpage.c17 if (size == HPAGE_SIZE) in arch_hugetlb_valid_size()
/linux-6.1.9/arch/s390/kvm/
Dpv.c150 vlen = ALIGN(virt * ((npages * PAGE_SIZE) / HPAGE_SIZE), PAGE_SIZE); in kvm_s390_pv_alloc_vm()
367 #define DUMP_BUFF_LEN HPAGE_SIZE
415 if (!IS_ALIGNED(*gaddr, HPAGE_SIZE)) in kvm_s390_pv_dump_stor_state()
455 uvcb.gaddr += HPAGE_SIZE; in kvm_s390_pv_dump_stor_state()
/linux-6.1.9/arch/arm/include/asm/
Dpgtable-3level.h58 #define HPAGE_SIZE (_AC(1, UL) << HPAGE_SHIFT) macro
59 #define HPAGE_MASK (~(HPAGE_SIZE - 1))
/linux-6.1.9/arch/sparc/mm/
Dhugetlbpage.c273 size = HPAGE_SIZE; in huge_tte_to_size()
362 if (size == HPAGE_SIZE) in set_huge_pte_at()
397 if (size == HPAGE_SIZE) in huge_ptep_get_and_clear()

12