| /Linux-v6.6/arch/arm64/mm/ |
| D | hugetlbpage.c | 63 case PUD_SIZE: in __hugetlb_valid_size() 130 case PUD_SIZE: in num_contig_ptes() 291 if (sz == PUD_SIZE) { in huge_pte_alloc() 332 if (sz != PUD_SIZE && pud_none(pud)) in huge_pte_offset() 362 case PUD_SIZE: in hugetlb_mask_last_page() 363 return PGDIR_SIZE - PUD_SIZE; in hugetlb_mask_last_page() 366 return PUD_SIZE - CONT_PMD_SIZE; in hugetlb_mask_last_page() 368 return PUD_SIZE - PMD_SIZE; in hugetlb_mask_last_page() 387 } else if (pagesize != PUD_SIZE && pagesize != PMD_SIZE) { in arch_make_huge_pte()
|
| /Linux-v6.6/arch/riscv/mm/ |
| D | kasan_init.c | 96 if (pud_none(*pudp) && IS_ALIGNED(vaddr, PUD_SIZE) && (next - vaddr) >= PUD_SIZE) { in kasan_populate_pud() 97 phys_addr = memblock_phys_alloc(PUD_SIZE, PUD_SIZE); in kasan_populate_pud() 100 memset(__va(phys_addr), KASAN_SHADOW_INIT, PUD_SIZE); in kasan_populate_pud() 178 if (IS_ALIGNED(vaddr, PUD_SIZE) && (next - vaddr) >= PUD_SIZE) { in kasan_early_clear_pud() 249 if (pud_none(*pudp) && IS_ALIGNED(vaddr, PUD_SIZE) && in kasan_early_populate_pud() 250 (next - vaddr) >= PUD_SIZE) { in kasan_early_populate_pud()
|
| D | hugetlbpage.c | 51 if (sz == PUD_SIZE) { in huge_pte_alloc() 104 if (sz == PUD_SIZE) in huge_pte_offset() 193 else if (sz >= PUD_SIZE) in set_huge_pte_at() 358 else if (IS_ENABLED(CONFIG_64BIT) && size == PUD_SIZE) in arch_hugetlb_valid_size()
|
| D | init.c | 560 if (sz == PUD_SIZE) { in create_pud_mapping() 673 if (!(pa & (PUD_SIZE - 1)) && !(va & (PUD_SIZE - 1)) && size >= PUD_SIZE) in best_map_size() 674 return PUD_SIZE; in best_map_size() 790 PUD_SIZE, PAGE_TABLE); in set_satp_mode() 1049 nr_pos = (PUD_SIZE - kernel_size) / PMD_SIZE; in setup_vm() 1119 BUG_ON(PUD_SIZE - (kernel_map.virt_addr & (PUD_SIZE - 1)) < kernel_map.size); in setup_vm() 1138 (uintptr_t)fixmap_pmd, PUD_SIZE, PAGE_TABLE); in setup_vm() 1149 (uintptr_t)trampoline_pmd, PUD_SIZE, PAGE_TABLE); in setup_vm()
|
| /Linux-v6.6/include/asm-generic/ |
| D | pgtable-nopud.h | 20 #define PUD_SIZE (1UL << PUD_SHIFT) macro 21 #define PUD_MASK (~(PUD_SIZE-1))
|
| /Linux-v6.6/arch/powerpc/include/asm/nohash/64/ |
| D | pgtable-4k.h | 36 #define PUD_SIZE (1UL << PUD_SHIFT) macro 37 #define PUD_MASK (~(PUD_SIZE-1))
|
| /Linux-v6.6/arch/x86/include/asm/ |
| D | pgtable_64_types.h | 101 #define PUD_SIZE (_AC(1, UL) << PUD_SHIFT) macro 102 #define PUD_MASK (~(PUD_SIZE - 1))
|
| /Linux-v6.6/arch/x86/mm/ |
| D | kasan_init_64.c | 83 ((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()
|
| D | init.c | 368 unsigned long start = round_down(mr[i].start, PUD_SIZE); in adjust_range_page_size_mask() 369 unsigned long end = round_up(mr[i].end, PUD_SIZE); in adjust_range_page_size_mask() 440 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 453 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 454 end_pfn = round_down(limit_pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
|
| /Linux-v6.6/arch/s390/boot/ |
| D | vmem.c | 149 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()
|
| /Linux-v6.6/mm/kasan/ |
| D | init.c | 154 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()
|
| /Linux-v6.6/arch/arc/include/asm/ |
| D | pgtable-levels.h | 75 #define PUD_SIZE BIT(PUD_SHIFT) macro 76 #define PUD_MASK (~(PUD_SIZE - 1))
|
| /Linux-v6.6/arch/s390/mm/ |
| D | hugetlbpage.c | 133 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()
|
| D | vmem.c | 322 if (IS_ALIGNED(addr, PUD_SIZE) && in modify_pud_table() 323 IS_ALIGNED(next, PUD_SIZE)) { in modify_pud_table() 330 if (IS_ALIGNED(addr, PUD_SIZE) && in modify_pud_table() 331 IS_ALIGNED(next, PUD_SIZE) && in modify_pud_table()
|
| /Linux-v6.6/drivers/dax/ |
| D | device.c | 188 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()
|
| D | dax-private.h | 103 if (align == PUD_SIZE && IS_ENABLED(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD)) in dax_align_valid()
|
| /Linux-v6.6/arch/x86/mm/pat/ |
| D | set_memory.c | 1262 if (start & (PUD_SIZE - 1)) { in unmap_pud_range() 1263 unsigned long next_page = (start + PUD_SIZE) & PUD_MASK; in unmap_pud_range() 1275 while (end - start >= PUD_SIZE) { in unmap_pud_range() 1280 unmap_pmd_range(pud, start, start + PUD_SIZE); in unmap_pud_range() 1282 start += PUD_SIZE; in unmap_pud_range() 1425 if (start & (PUD_SIZE - 1)) { in populate_pud() 1427 unsigned long next_page = (start + PUD_SIZE) & PUD_MASK; in populate_pud() 1460 while (boot_cpu_has(X86_FEATURE_GBPAGES) && end - start >= PUD_SIZE) { in populate_pud() 1464 start += PUD_SIZE; in populate_pud() 1465 cpa->pfn += PUD_SIZE >> PAGE_SHIFT; in populate_pud() [all …]
|
| /Linux-v6.6/mm/ |
| D | page_table_check.c | 180 page_table_check_clear(pud_pfn(pud), PUD_SIZE >> PAGE_SHIFT); in __page_table_check_pud_clear() 220 page_table_check_set(pud_pfn(pud), PUD_SIZE >> PAGE_SHIFT, in __page_table_check_pud_set()
|
| /Linux-v6.6/arch/mips/include/asm/ |
| D | pgtable-64.h | 60 #define PUD_SIZE (1UL << PUD_SHIFT) macro 61 #define PUD_MASK (~(PUD_SIZE-1))
|
| /Linux-v6.6/arch/powerpc/mm/book3s64/ |
| D | radix_pgtable.c | 90 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()
|
| D | radix_hugetlbpage.c | 38 if (end - start >= PUD_SIZE) in radix__flush_hugetlb_tlb_range()
|
| /Linux-v6.6/arch/arm64/include/asm/ |
| D | pgtable-hwdef.h | 60 #define PUD_SIZE (_AC(1, UL) << PUD_SHIFT) macro 61 #define PUD_MASK (~(PUD_SIZE-1))
|
| D | hugetlb.h | 73 else if (stride == PUD_SIZE) in flush_hugetlb_tlb_range()
|
| /Linux-v6.6/arch/riscv/kvm/ |
| D | mmu.c | 582 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()
|
| /Linux-v6.6/arch/sparc/mm/ |
| D | hugetlbpage.c | 294 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()
|