| /linux-6.15/arch/riscv/mm/ |
| H A D | hugetlbpage.c | 51 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() 226 else if (sz >= PUD_SIZE) in num_contig_ptes_from_size() 420 else if (IS_ENABLED(CONFIG_64BIT) && size == PUD_SIZE) in __hugetlb_valid_size()
|
| H A D | kasan_init.c | 97 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 D | tlbflush.c | 159 else if (stride_size >= PUD_SIZE) in flush_tlb_range() 160 stride_size = PUD_SIZE; in flush_tlb_range()
|
| H A D | init.c | 639 if (sz == PUD_SIZE) { in create_pud_mapping() 751 !(pa & (PUD_SIZE - 1)) && !(va & (PUD_SIZE - 1)) && size >= PUD_SIZE) in best_map_size() 752 return PUD_SIZE; in best_map_size() 874 PUD_SIZE, PAGE_TABLE); in set_satp_mode() 1099 nr_pos = (PUD_SIZE - kernel_size) / PMD_SIZE; in setup_vm() 1169 BUG_ON(PUD_SIZE - (kernel_map.virt_addr & (PUD_SIZE - 1)) < kernel_map.size); in setup_vm() 1188 (uintptr_t)fixmap_pmd, PUD_SIZE, PAGE_TABLE); in setup_vm() 1199 (uintptr_t)trampoline_pmd, PUD_SIZE, PAGE_TABLE); in setup_vm() 1713 free_vmemmap_storage(pud_page(pud), PUD_SIZE, altmap); in remove_pud_mapping()
|
| /linux-6.15/arch/arm64/mm/ |
| H A D | hugetlbpage.c | 56 case PUD_SIZE: in __hugetlb_valid_size() 265 if (sz == PUD_SIZE) { in huge_pte_alloc() 306 if (sz != PUD_SIZE && pud_none(pud)) in huge_pte_offset() 336 case PUD_SIZE: in hugetlb_mask_last_page() 338 return PGDIR_SIZE - PUD_SIZE; in hugetlb_mask_last_page() 342 return PUD_SIZE - CONT_PMD_SIZE; in hugetlb_mask_last_page() 344 return PUD_SIZE - PMD_SIZE; in hugetlb_mask_last_page() 360 case PUD_SIZE: in arch_make_huge_pte()
|
| /linux-6.15/include/asm-generic/ |
| H A D | pgtable-nopud.h | 20 #define PUD_SIZE (1UL << PUD_SHIFT) macro 21 #define PUD_MASK (~(PUD_SIZE-1))
|
| /linux-6.15/arch/s390/mm/ |
| H A D | hugetlbpage.c | 150 size = PUD_SIZE; in clear_huge_pte_skeys() 219 if (sz == PUD_SIZE) in huge_pte_alloc() 241 if (sz == PUD_SIZE) in huge_pte_offset() 254 else if (cpu_has_edat2() && size == PUD_SIZE) in arch_hugetlb_valid_size()
|
| H A D | vmem.c | 329 if (IS_ALIGNED(addr, PUD_SIZE) && in modify_pud_table() 330 IS_ALIGNED(next, PUD_SIZE)) { in modify_pud_table() 337 if (IS_ALIGNED(addr, PUD_SIZE) && in modify_pud_table() 338 IS_ALIGNED(next, PUD_SIZE) && in modify_pud_table()
|
| /linux-6.15/arch/powerpc/include/asm/nohash/64/ |
| H A D | pgtable-4k.h | 36 #define PUD_SIZE (1UL << PUD_SHIFT) macro 37 #define PUD_MASK (~(PUD_SIZE-1))
|
| /linux-6.15/arch/arm64/include/asm/ |
| H A D | hugetlb.h | 81 case PUD_SIZE: in flush_hugetlb_tlb_range() 82 __flush_tlb_range(vma, start, end, PUD_SIZE, false, 1); in flush_hugetlb_tlb_range()
|
| /linux-6.15/arch/x86/include/asm/ |
| H A D | pgtable_64_types.h | 101 #define PUD_SIZE (_AC(1, UL) << PUD_SHIFT) macro 102 #define PUD_MASK (~(PUD_SIZE - 1))
|
| /linux-6.15/arch/um/include/asm/ |
| H A D | pgtable-4level.h | 23 #define PUD_SIZE (1UL << PUD_SHIFT) macro 24 #define PUD_MASK (~(PUD_SIZE-1))
|
| /linux-6.15/arch/s390/boot/ |
| H A D | vmem.c | 164 IS_ALIGNED(addr, PUD_SIZE) && end - addr >= PUD_SIZE) { in kasan_pud_populate_zero_shadow() 320 !IS_ALIGNED(addr, PUD_SIZE) || (size < PUD_SIZE)) in try_get_large_pud_pa() 324 if (!IS_ALIGNED(pa, PUD_SIZE)) in try_get_large_pud_pa()
|
| /linux-6.15/mm/kasan/ |
| H A D | init.c | 152 if (IS_ALIGNED(addr, PUD_SIZE) && end - addr >= PUD_SIZE) { in zero_pud_populate() 408 if (IS_ALIGNED(addr, PUD_SIZE) && in kasan_remove_pud_table() 409 IS_ALIGNED(next, PUD_SIZE)) { in kasan_remove_pud_table()
|
| /linux-6.15/arch/x86/mm/ |
| H A D | kasan_init_64.c | 82 ((end - addr) == PUD_SIZE) && in kasan_populate_pud() 83 IS_ALIGNED(addr, PUD_SIZE)) { in kasan_populate_pud() 84 p = early_alloc(PUD_SIZE, nid, false); in kasan_populate_pud() 87 memblock_free(p, PUD_SIZE); in kasan_populate_pud()
|
| H A D | hugetlbpage.c | 28 else if (size == PUD_SIZE && boot_cpu_has(X86_FEATURE_GBPAGES)) in arch_hugetlb_valid_size()
|
| H A D | init.c | 370 unsigned long start = round_down(mr[i].start, PUD_SIZE); in adjust_range_page_size_mask() 371 unsigned long end = round_up(mr[i].end, PUD_SIZE); in adjust_range_page_size_mask() 442 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 455 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 456 end_pfn = round_down(limit_pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
|
| /linux-6.15/arch/arc/include/asm/ |
| H A D | pgtable-levels.h | 75 #define PUD_SIZE BIT(PUD_SHIFT) macro 76 #define PUD_MASK (~(PUD_SIZE - 1))
|
| /linux-6.15/drivers/dax/ |
| H A D | device.c | 189 unsigned int fault_size = PUD_SIZE; in __dev_dax_pud_fault() 195 if (dev_dax->align > PUD_SIZE) { in __dev_dax_pud_fault() 208 (pud_addr + PUD_SIZE) > vmf->vma->vm_end) in __dev_dax_pud_fault() 212 phys = dax_pgoff_to_phys(dev_dax, pgoff, PUD_SIZE); in __dev_dax_pud_fault()
|
| H A D | dax-private.h | 118 if (align == PUD_SIZE && IS_ENABLED(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD)) in dax_align_valid()
|
| /linux-6.15/arch/sparc/mm/ |
| H A D | hugetlbpage.c | 183 if (sz >= PUD_SIZE) in huge_pte_alloc() 230 if (size >= PUD_SIZE) in __set_huge_pte_at() 273 if (size >= PUD_SIZE) in huge_ptep_get_and_clear()
|
| /linux-6.15/mm/ |
| H A D | page_table_check.c | 176 page_table_check_clear(pud_pfn(pud), PUD_SIZE >> PAGE_SHIFT); in __page_table_check_pud_clear() 243 page_table_check_set(pud_pfn(pud), PUD_SIZE >> PAGE_SHIFT, in __page_table_check_pud_set()
|
| /linux-6.15/arch/mips/include/asm/ |
| H A D | pgtable-64.h | 60 #define PUD_SIZE (1UL << PUD_SHIFT) macro 61 #define PUD_MASK (~(PUD_SIZE-1))
|
| /linux-6.15/arch/powerpc/mm/book3s64/ |
| H A D | radix_pgtable.c | 92 if (map_page_size == PUD_SIZE) { in early_map_kernel_page() 158 if (map_page_size == PUD_SIZE) { in __map_kernel_page() 325 if (IS_ALIGNED(addr, PUD_SIZE) && gap >= PUD_SIZE && in create_physical_mapping() 327 mapping_size = PUD_SIZE; in create_physical_mapping() 875 if (!IS_ALIGNED(addr, PUD_SIZE) || in remove_pud_table() 876 !IS_ALIGNED(next, PUD_SIZE)) { in remove_pud_table() 1637 flush_tlb_kernel_range(addr, addr + PUD_SIZE); in pud_free_pmd_page()
|
| /linux-6.15/arch/x86/mm/pat/ |
| H A D | set_memory.c | 1507 if (start & (PUD_SIZE - 1)) { in unmap_pud_range() 1508 unsigned long next_page = (start + PUD_SIZE) & PUD_MASK; in unmap_pud_range() 1520 while (end - start >= PUD_SIZE) { in unmap_pud_range() 1525 unmap_pmd_range(pud, start, start + PUD_SIZE); in unmap_pud_range() 1527 start += PUD_SIZE; in unmap_pud_range() 1670 if (start & (PUD_SIZE - 1)) { in populate_pud() 1672 unsigned long next_page = (start + PUD_SIZE) & PUD_MASK; in populate_pud() 1705 while (boot_cpu_has(X86_FEATURE_GBPAGES) && end - start >= PUD_SIZE) { in populate_pud() 1709 start += PUD_SIZE; in populate_pud() 1710 cpa->pfn += PUD_SIZE >> PAGE_SHIFT; in populate_pud() [all …]
|