Home
last modified time | relevance | path

Searched refs:PUD_SIZE (Results 1 – 25 of 62) sorted by relevance

123

/openbmc/linux/arch/arm64/mm/
H A Dhugetlbpage.c63 case PUD_SIZE: in __hugetlb_valid_size()
283 if (sz == PUD_SIZE) { in huge_pte_alloc()
324 if (sz != PUD_SIZE && pud_none(pud)) in huge_pte_offset()
354 case PUD_SIZE: in huge_pte_offset()
355 return PGDIR_SIZE - PUD_SIZE;
358 return PUD_SIZE - CONT_PMD_SIZE; in hugetlb_mask_last_page()
360 return PUD_SIZE - PMD_SIZE; in hugetlb_mask_last_page()
379 } else if (pagesize != PUD_SIZE && pagesize != PMD_SIZE) { in arch_make_huge_pte()
/openbmc/linux/arch/riscv/mm/
H A Dkasan_init.c97 if (pud_none(pudp_get(pudp)) && IS_ALIGNED(vaddr, PUD_SIZE) && in kasan_populate_pud()
98 (next - vaddr) >= PUD_SIZE) { in kasan_populate_pud()
99 phys_addr = memblock_phys_alloc(PUD_SIZE, PUD_SIZE); in kasan_populate_pud()
102 memset(__va(phys_addr), KASAN_SHADOW_INIT, PUD_SIZE); in kasan_populate_pud()
181 if (IS_ALIGNED(vaddr, PUD_SIZE) && (next - vaddr) >= PUD_SIZE) { in kasan_early_clear_pud()
252 if (pud_none(pudp_get(pudp)) && IS_ALIGNED(vaddr, PUD_SIZE) && in kasan_early_populate_pud()
253 (next - vaddr) >= PUD_SIZE) { in kasan_early_populate_pud()
H A Dhugetlbpage.c51 if (sz == PUD_SIZE) { in huge_pte_alloc()
104 if (sz == PUD_SIZE) in huge_pte_offset()
134 case PUD_SIZE: in hugetlb_mask_last_page()
135 return P4D_SIZE - PUD_SIZE; in hugetlb_mask_last_page()
138 return PUD_SIZE - PMD_SIZE; in hugetlb_mask_last_page()
236 else if (sz >= PUD_SIZE) in set_huge_pte_at()
416 else if (IS_ENABLED(CONFIG_64BIT) && size == PUD_SIZE) in __hugetlb_valid_size()
H A Dinit.c585 if (sz == PUD_SIZE) { in create_pud_mapping()
700 !(pa & (PUD_SIZE - 1)) && !(va & (PUD_SIZE - 1)) && size >= PUD_SIZE) in best_map_size()
701 return PUD_SIZE; in best_map_size()
818 PUD_SIZE, PAGE_TABLE); in set_satp_mode()
1077 nr_pos = (PUD_SIZE - kernel_size) / PMD_SIZE; in setup_vm()
1155 BUG_ON(PUD_SIZE - (kernel_map.virt_addr & (PUD_SIZE - 1)) < kernel_map.size); in setup_vm()
1174 (uintptr_t)fixmap_pmd, PUD_SIZE, PAGE_TABLE); in setup_vm()
1185 (uintptr_t)trampoline_pmd, PUD_SIZE, PAGE_TABLE); in setup_vm()
/openbmc/linux/include/asm-generic/
H A Dpgtable-nopud.h20 #define PUD_SIZE (1UL << PUD_SHIFT) macro
21 #define PUD_MASK (~(PUD_SIZE-1))
/openbmc/linux/arch/powerpc/include/asm/nohash/64/
H A Dpgtable-4k.h36 #define PUD_SIZE (1UL << PUD_SHIFT) macro
37 #define PUD_MASK (~(PUD_SIZE-1))
/openbmc/linux/arch/x86/include/asm/
H A Dpgtable_64_types.h101 #define PUD_SIZE (_AC(1, UL) << PUD_SHIFT) macro
102 #define PUD_MASK (~(PUD_SIZE - 1))
/openbmc/linux/mm/kasan/
H A Dinit.c154 if (IS_ALIGNED(addr, PUD_SIZE) && end - addr >= PUD_SIZE) { in zero_pud_populate()
414 if (IS_ALIGNED(addr, PUD_SIZE) && in kasan_remove_pud_table()
415 IS_ALIGNED(next, PUD_SIZE)) { in kasan_remove_pud_table()
/openbmc/linux/arch/s390/boot/
H A Dvmem.c149 IS_ALIGNED(addr, PUD_SIZE) && end - addr >= PUD_SIZE) { in kasan_pud_populate_zero_shadow()
274 IS_ALIGNED(addr, PUD_SIZE) && (end - addr) >= PUD_SIZE; in can_large_pud()
/openbmc/linux/arch/x86/mm/
H A Dkasan_init_64.c83 ((end - addr) == PUD_SIZE) && in kasan_populate_pud()
84 IS_ALIGNED(addr, PUD_SIZE)) { in kasan_populate_pud()
85 p = early_alloc(PUD_SIZE, nid, false); in kasan_populate_pud()
88 memblock_free(p, PUD_SIZE); in kasan_populate_pud()
H A Dinit.c369 unsigned long start = round_down(mr[i].start, PUD_SIZE); in adjust_range_page_size_mask()
370 unsigned long end = round_up(mr[i].end, PUD_SIZE); in adjust_range_page_size_mask()
441 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
454 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
455 end_pfn = round_down(limit_pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
604 * We can not set step_size to be PUD_SIZE (1G) yet. in get_new_step_size()
/openbmc/linux/arch/arc/include/asm/
H A Dpgtable-levels.h75 #define PUD_SIZE BIT(PUD_SHIFT) macro
76 #define PUD_MASK (~(PUD_SIZE - 1))
/openbmc/linux/arch/s390/mm/
H A Dhugetlbpage.c133 size = PUD_SIZE; in clear_huge_pte_skeys()
204 if (sz == PUD_SIZE) in huge_pte_alloc()
250 else if (MACHINE_HAS_EDAT2 && size == PUD_SIZE) in arch_hugetlb_valid_size()
H A Dvmem.c326 if (IS_ALIGNED(addr, PUD_SIZE) && in modify_pud_table()
327 IS_ALIGNED(next, PUD_SIZE)) { in modify_pud_table()
334 if (IS_ALIGNED(addr, PUD_SIZE) && in modify_pud_table()
335 IS_ALIGNED(next, PUD_SIZE) && in modify_pud_table()
/openbmc/linux/drivers/dax/
H A Ddevice.c188 unsigned int fault_size = PUD_SIZE; in __dev_dax_pud_fault()
194 if (dev_dax->align > PUD_SIZE) { in __dev_dax_pud_fault()
207 (pud_addr + PUD_SIZE) > vmf->vma->vm_end) in __dev_dax_pud_fault()
211 phys = dax_pgoff_to_phys(dev_dax, pgoff, PUD_SIZE); in __dev_dax_pud_fault()
H A Ddax-private.h103 if (align == PUD_SIZE && IS_ENABLED(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD)) in dax_align_valid()
/openbmc/linux/arch/x86/mm/pat/
H A Dset_memory.c1300 if (start & (PUD_SIZE - 1)) { in unmap_pud_range()
1301 unsigned long next_page = (start + PUD_SIZE) & PUD_MASK; in unmap_pud_range()
1313 while (end - start >= PUD_SIZE) { in unmap_pud_range()
1318 unmap_pmd_range(pud, start, start + PUD_SIZE); in unmap_pud_range()
1320 start += PUD_SIZE; in unmap_pud_range()
1463 if (start & (PUD_SIZE - 1)) { in populate_pud()
1465 unsigned long next_page = (start + PUD_SIZE) & PUD_MASK; in populate_pud()
1498 while (boot_cpu_has(X86_FEATURE_GBPAGES) && end - start >= PUD_SIZE) { in populate_pud()
1502 start += PUD_SIZE; in populate_pud()
1503 cpa->pfn += PUD_SIZE >> PAGE_SHIFT; in populate_pud()
[all …]
/openbmc/linux/arch/mips/include/asm/
H A Dpgtable-64.h60 #define PUD_SIZE (1UL << PUD_SHIFT) macro
61 #define PUD_MASK (~(PUD_SIZE-1))
/openbmc/linux/mm/
H A Dpage_table_check.c191 page_table_check_clear(pud_pfn(pud), PUD_SIZE >> PAGE_SHIFT); in __page_table_check_pud_clear()
259 page_table_check_set(pud_pfn(pud), PUD_SIZE >> PAGE_SHIFT, in __page_table_check_pud_set()
/openbmc/linux/arch/powerpc/mm/book3s64/
H A Dradix_pgtable.c90 if (map_page_size == PUD_SIZE) { in early_map_kernel_page()
156 if (map_page_size == PUD_SIZE) { in __map_kernel_page()
319 if (IS_ALIGNED(addr, PUD_SIZE) && gap >= PUD_SIZE && in create_physical_mapping()
321 mapping_size = PUD_SIZE; in create_physical_mapping()
811 if (!IS_ALIGNED(addr, PUD_SIZE) || in remove_pud_table()
812 !IS_ALIGNED(next, PUD_SIZE)) { in remove_pud_table()
1573 flush_tlb_kernel_range(addr, addr + PUD_SIZE); in pud_free_pmd_page()
H A Dradix_hugetlbpage.c38 if (end - start >= PUD_SIZE) in radix__flush_hugetlb_tlb_range()
/openbmc/linux/arch/arm64/include/asm/
H A Dpgtable-hwdef.h60 #define PUD_SIZE (_AC(1, UL) << PUD_SHIFT) macro
61 #define PUD_MASK (~(PUD_SIZE-1))
H A Dhugetlb.h73 else if (stride == PUD_SIZE) in flush_hugetlb_tlb_range()
/openbmc/linux/arch/riscv/kvm/
H A Dmmu.c582 WARN_ON(size != PAGE_SIZE && size != PMD_SIZE && size != PUD_SIZE); in kvm_age_gfn()
600 WARN_ON(size != PAGE_SIZE && size != PMD_SIZE && size != PUD_SIZE); in kvm_test_age_gfn()
649 if (vma_pagesize == PMD_SIZE || vma_pagesize == PUD_SIZE) in kvm_riscv_gstage_map()
663 if (vma_pagesize != PUD_SIZE && in kvm_riscv_gstage_map()
/openbmc/linux/arch/sparc/mm/
H A Dhugetlbpage.c294 if (sz >= PUD_SIZE) in huge_pte_alloc()
341 if (size >= PUD_SIZE) in __set_huge_pte_at()
384 if (size >= PUD_SIZE) in huge_ptep_get_and_clear()

123