Home
last modified time | relevance | path

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

12

/Linux-v5.15/include/asm-generic/
Dpgtable-nopud.h20 #define PUD_SIZE (1UL << PUD_SHIFT) macro
21 #define PUD_MASK (~(PUD_SIZE-1))
/Linux-v5.15/arch/arm64/mm/
Dhugetlbpage.c66 case PUD_SIZE: in arch_hugetlb_migration_supported()
130 case PUD_SIZE: in num_contig_ptes()
270 if (sz == PUD_SIZE) { in huge_pte_alloc()
318 if (sz != PUD_SIZE && pud_none(pud)) in huge_pte_offset()
350 } else if (pagesize != PUD_SIZE && pagesize != PMD_SIZE) { in arch_make_huge_pte()
507 case PUD_SIZE: in arch_hugetlb_valid_size()
/Linux-v5.15/arch/powerpc/include/asm/nohash/64/
Dpgtable-4k.h36 #define PUD_SIZE (1UL << PUD_SHIFT) macro
37 #define PUD_MASK (~(PUD_SIZE-1))
/Linux-v5.15/arch/x86/include/asm/
Dpgtable_64_types.h100 #define PUD_SIZE (_AC(1, UL) << PUD_SHIFT) macro
101 #define PUD_MASK (~(PUD_SIZE - 1))
/Linux-v5.15/drivers/dax/
Ddevice.c154 unsigned int fault_size = PUD_SIZE; in __dev_dax_pud_fault()
160 if (dev_dax->align > PUD_SIZE) { in __dev_dax_pud_fault()
173 (pud_addr + PUD_SIZE) > vmf->vma->vm_end) in __dev_dax_pud_fault()
177 phys = dax_pgoff_to_phys(dev_dax, pgoff, PUD_SIZE); in __dev_dax_pud_fault()
220 fault_size = PUD_SIZE; in dev_dax_huge_fault()
Ddax-private.h94 if (align == PUD_SIZE && IS_ENABLED(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD)) in dax_align_valid()
/Linux-v5.15/arch/powerpc/mm/book3s64/
Dradix_pgtable.c89 if (map_page_size == PUD_SIZE) { in early_map_kernel_page()
155 if (map_page_size == PUD_SIZE) { in __map_kernel_page()
291 if (IS_ALIGNED(addr, PUD_SIZE) && gap >= PUD_SIZE && in create_physical_mapping()
293 mapping_size = PUD_SIZE; in create_physical_mapping()
815 if (!IS_ALIGNED(addr, PUD_SIZE) || in remove_pud_table()
816 !IS_ALIGNED(next, PUD_SIZE)) { in remove_pud_table()
1112 flush_tlb_kernel_range(addr, addr + PUD_SIZE); in pud_free_pmd_page()
Dradix_hugetlbpage.c38 if (end - start >= PUD_SIZE) in radix__flush_hugetlb_tlb_range()
/Linux-v5.15/arch/s390/mm/
Dvmem.c292 const unsigned long end = start + PUD_SIZE; in try_free_pmd_table()
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()
Dhugetlbpage.c140 size = PUD_SIZE; in clear_huge_pte_skeys()
205 if (sz == PUD_SIZE) in huge_pte_alloc()
261 else if (MACHINE_HAS_EDAT2 && size == PUD_SIZE) in arch_hugetlb_valid_size()
Dkasan_init.c150 IS_ALIGNED(address, PUD_SIZE) && in kasan_early_pgtable_populate()
151 end - address >= PUD_SIZE) { in kasan_early_pgtable_populate()
154 address = (address + PUD_SIZE) & PUD_MASK; in kasan_early_pgtable_populate()
/Linux-v5.15/arch/x86/mm/
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_ptr(p, PUD_SIZE); in kasan_populate_pud()
Dinit.c343 unsigned long start = round_down(mr[i].start, PUD_SIZE); in adjust_range_page_size_mask()
344 unsigned long end = round_up(mr[i].end, PUD_SIZE); in adjust_range_page_size_mask()
415 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
428 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
429 end_pfn = round_down(limit_pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
Dkaslr.c136 vaddr = round_up(vaddr + 1, PUD_SIZE); in kernel_randomize_memory()
Dhugetlbpage.c187 else if (size == PUD_SIZE && boot_cpu_has(X86_FEATURE_GBPAGES)) in arch_hugetlb_valid_size()
/Linux-v5.15/mm/kasan/
Dinit.c150 if (IS_ALIGNED(addr, PUD_SIZE) && end - addr >= PUD_SIZE) { in zero_pud_populate()
401 if (IS_ALIGNED(addr, PUD_SIZE) && in kasan_remove_pud_table()
402 IS_ALIGNED(next, PUD_SIZE)) { in kasan_remove_pud_table()
/Linux-v5.15/arch/arc/include/asm/
Dpgtable-levels.h75 #define PUD_SIZE BIT(PUD_SHIFT) macro
76 #define PUD_MASK (~(PUD_SIZE - 1))
/Linux-v5.15/arch/riscv/mm/
Dhugetlbpage.c19 else if (IS_ENABLED(CONFIG_64BIT) && size == PUD_SIZE) in arch_hugetlb_valid_size()
/Linux-v5.15/arch/x86/mm/pat/
Dset_memory.c1192 if (start & (PUD_SIZE - 1)) { in unmap_pud_range()
1193 unsigned long next_page = (start + PUD_SIZE) & PUD_MASK; in unmap_pud_range()
1205 while (end - start >= PUD_SIZE) { in unmap_pud_range()
1210 unmap_pmd_range(pud, start, start + PUD_SIZE); in unmap_pud_range()
1212 start += PUD_SIZE; in unmap_pud_range()
1355 if (start & (PUD_SIZE - 1)) { in populate_pud()
1357 unsigned long next_page = (start + PUD_SIZE) & PUD_MASK; in populate_pud()
1390 while (boot_cpu_has(X86_FEATURE_GBPAGES) && end - start >= PUD_SIZE) { in populate_pud()
1394 start += PUD_SIZE; in populate_pud()
1395 cpa->pfn += PUD_SIZE >> PAGE_SHIFT; in populate_pud()
[all …]
/Linux-v5.15/arch/mips/include/asm/
Dpgtable-64.h60 #define PUD_SIZE (1UL << PUD_SHIFT) macro
61 #define PUD_MASK (~(PUD_SIZE-1))
/Linux-v5.15/arch/arm64/kvm/
Dmmu.c889 if ((hva & (PUD_SIZE - 1)) == (pa & (PUD_SIZE - 1)) && in get_vma_page_shift()
890 ALIGN_DOWN(hva, PUD_SIZE) >= vma->vm_start && in get_vma_page_shift()
891 ALIGN(hva, PUD_SIZE) <= vma->vm_end) in get_vma_page_shift()
1002 if (fault_supports_stage2_huge_mapping(memslot, hva, PUD_SIZE)) in user_mem_abort()
1024 if (vma_pagesize == PMD_SIZE || vma_pagesize == PUD_SIZE) in user_mem_abort()
1351 WARN_ON(size != PAGE_SIZE && size != PMD_SIZE && size != PUD_SIZE); in kvm_age_gfn()
/Linux-v5.15/arch/arm64/include/asm/
Dpgtable-hwdef.h60 #define PUD_SIZE (_AC(1, UL) << PUD_SHIFT) macro
61 #define PUD_MASK (~(PUD_SIZE-1))
/Linux-v5.15/arch/sparc/mm/
Dhugetlbpage.c293 if (sz >= PUD_SIZE) in huge_pte_alloc()
340 if (size >= PUD_SIZE) in set_huge_pte_at()
377 if (size >= PUD_SIZE) in huge_ptep_get_and_clear()
/Linux-v5.15/arch/x86/boot/compressed/
Dkaslr.c240 if (memparse(p, &p) != PUD_SIZE) { in parse_gb_huge_pages()
527 pud_start = ALIGN(region->start, PUD_SIZE); in process_gb_huge_pages()
528 pud_end = ALIGN_DOWN(region->start + region->size, PUD_SIZE); in process_gb_huge_pages()
/Linux-v5.15/arch/x86/xen/
Dxen-head.S92 ELFNOTE(Xen, XEN_ELFNOTE_INIT_P2M, .quad (PUD_SIZE * PTRS_PER_PUD))

12