/Linux-v5.15/arch/riscv/mm/ |
D | init.c | 184 vmlinux_end = (vmlinux_end + PMD_SIZE - 1) & PMD_MASK; in setup_bootmem() 382 if (sz == PMD_SIZE) { in create_pmd_mapping() 447 if ((base & (PMD_SIZE - 1)) || (size & (PMD_SIZE - 1))) in best_map_size() 450 return PMD_SIZE; in best_map_size() 529 for (va = kernel_map.virt_addr; va < end_va; va += PMD_SIZE) in create_kernel_page_table() 532 PMD_SIZE, PAGE_KERNEL_EXEC); in create_kernel_page_table() 536 for (va = kernel_map.virt_addr + XIP_OFFSET; va < end_va; va += PMD_SIZE) in create_kernel_page_table() 539 PMD_SIZE, PAGE_KERNEL); in create_kernel_page_table() 547 for (va = kernel_map.virt_addr; va < end_va; va += PMD_SIZE) in create_kernel_page_table() 550 PMD_SIZE, in create_kernel_page_table() [all …]
|
D | kasan_init.c | 91 if (pmd_none(*pmdp) && IS_ALIGNED(vaddr, PMD_SIZE) && (next - vaddr) >= PMD_SIZE) { in kasan_populate_pmd() 92 phys_addr = memblock_phys_alloc(PMD_SIZE, PMD_SIZE); in kasan_populate_pmd()
|
/Linux-v5.15/arch/s390/mm/ |
D | vmem.c | 89 ALIGN(unused_sub_pmd_start, PMD_SIZE) - unused_sub_pmd_start); in vmemmap_flush_unused_sub_pmd() 112 if (likely(IS_ALIGNED(unused_sub_pmd_start, PMD_SIZE))) in vmemmap_use_sub_pmd() 122 unsigned long page = ALIGN_DOWN(start, PMD_SIZE); in vmemmap_use_new_sub_pmd() 130 if (!IS_ALIGNED(start, PMD_SIZE)) in vmemmap_use_new_sub_pmd() 137 if (!IS_ALIGNED(end, PMD_SIZE)) in vmemmap_use_new_sub_pmd() 144 unsigned long page = ALIGN_DOWN(start, PMD_SIZE); in vmemmap_unuse_sub_pmd() 148 return !memchr_inv((void *)page, PAGE_UNUSED, PMD_SIZE); in vmemmap_unuse_sub_pmd() 228 if (IS_ALIGNED(addr, PMD_SIZE) && in modify_pmd_table() 229 IS_ALIGNED(next, PMD_SIZE)) { in modify_pmd_table() 231 vmem_free_pages(pmd_deref(*pmd), get_order(PMD_SIZE)); in modify_pmd_table() [all …]
|
D | kasan_init.c | 163 if (IS_ALIGNED(address, PMD_SIZE) && in kasan_early_pgtable_populate() 164 end - address >= PMD_SIZE) { in kasan_early_pgtable_populate() 167 address = (address + PMD_SIZE) & PMD_MASK; in kasan_early_pgtable_populate() 179 address = (address + PMD_SIZE) & PMD_MASK; in kasan_early_pgtable_populate() 186 address = (address + PMD_SIZE) & PMD_MASK; in kasan_early_pgtable_populate()
|
/Linux-v5.15/arch/m68k/mm/ |
D | kmap.c | 50 #define IO_SIZE PMD_SIZE 85 virtaddr += PMD_SIZE; in __free_io_area() 86 size -= PMD_SIZE; in __free_io_area() 248 if (!(virtaddr & (PMD_SIZE-1))) in __ioremap() 263 physaddr += PMD_SIZE; in __ioremap() 264 virtaddr += PMD_SIZE; in __ioremap() 265 size -= PMD_SIZE; in __ioremap() 370 virtaddr += PMD_SIZE; in kernel_set_cachemode() 371 size -= PMD_SIZE; in kernel_set_cachemode()
|
/Linux-v5.15/arch/x86/mm/ |
D | init.c | 330 unsigned long start = round_down(mr[i].start, PMD_SIZE); in adjust_range_page_size_mask() 331 unsigned long end = round_up(mr[i].end, PMD_SIZE); in adjust_range_page_size_mask() 397 end_pfn = PFN_DOWN(PMD_SIZE); in split_mem_range() 399 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 401 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 411 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 413 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 416 if (end_pfn > round_down(limit_pfn, PFN_DOWN(PMD_SIZE))) in split_mem_range() 417 end_pfn = round_down(limit_pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 438 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() [all …]
|
D | init_64.c | 373 for (; size; phys += PMD_SIZE, size -= PMD_SIZE) { in __init_extra_mapping() 425 unsigned long end = roundup((unsigned long)_brk_end, PMD_SIZE) - 1; in cleanup_highmap() 436 for (; vaddr + PMD_SIZE - 1 < vaddr_end; pmd++, vaddr += PMD_SIZE) { in cleanup_highmap() 516 paddr_next = (paddr & PMD_MASK) + PMD_SIZE; in phys_pmd_init() 847 ALIGN(unused_pmd_start, PMD_SIZE) - unused_pmd_start); in vmemmap_flush_unused_pmd() 855 unsigned long start = ALIGN_DOWN(addr, PMD_SIZE); in vmemmap_pmd_is_unused() 864 return !memchr_inv((void *)start, PAGE_UNUSED, PMD_SIZE); in vmemmap_pmd_is_unused() 887 if (likely(IS_ALIGNED(end, PMD_SIZE))) in vmemmap_use_sub_pmd() 916 if (!IS_ALIGNED(start, PMD_SIZE)) in vmemmap_use_new_sub_pmd() 918 start - ALIGN_DOWN(start, PMD_SIZE)); in vmemmap_use_new_sub_pmd() [all …]
|
D | mem_encrypt.c | 133 vaddr += PMD_SIZE; in __sme_early_map_unmap_mem() 134 paddr += PMD_SIZE; in __sme_early_map_unmap_mem() 135 size = (size <= PMD_SIZE) ? 0 : size - PMD_SIZE; in __sme_early_map_unmap_mem()
|
/Linux-v5.15/arch/sh/include/asm/ |
D | pgtable-3level.h | 23 #define PMD_SIZE (1UL << PMD_SHIFT) macro 24 #define PMD_MASK (~(PMD_SIZE-1)) 26 #define PTRS_PER_PMD ((1 << PGDIR_SHIFT) / PMD_SIZE)
|
/Linux-v5.15/arch/parisc/kernel/ |
D | pci-dma.c | 85 if (end > PMD_SIZE) in map_pte_uncached() 86 end = PMD_SIZE; in map_pte_uncached() 120 vaddr = (vaddr + PMD_SIZE) & PMD_MASK; in map_pmd_uncached() 121 orig_vaddr += PMD_SIZE; in map_pmd_uncached() 170 if (end > PMD_SIZE) in unmap_uncached_pte() 171 end = PMD_SIZE; in unmap_uncached_pte() 210 vaddr = (vaddr + PMD_SIZE) & PMD_MASK; in unmap_uncached_pmd() 211 orig_vaddr += PMD_SIZE; in unmap_uncached_pmd()
|
/Linux-v5.15/arch/arm64/kvm/hyp/ |
D | reserved_mem.c | 95 hyp_mem_base = memblock_phys_alloc(ALIGN(hyp_mem_size, PMD_SIZE), in kvm_hyp_reserve() 96 PMD_SIZE); in kvm_hyp_reserve() 100 hyp_mem_size = ALIGN(hyp_mem_size, PMD_SIZE); in kvm_hyp_reserve()
|
/Linux-v5.15/arch/x86/include/asm/ |
D | pgtable_32_types.h | 12 # define PMD_SIZE (1UL << PMD_SHIFT) macro 13 # define PMD_MASK (~(PMD_SIZE - 1))
|
D | pgtable_64_types.h | 98 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT) macro 99 #define PMD_MASK (~(PMD_SIZE - 1))
|
/Linux-v5.15/arch/arm64/mm/ |
D | hugetlbpage.c | 68 case PMD_SIZE: in arch_hugetlb_migration_supported() 116 *pgsize = PMD_SIZE; in find_num_contig() 132 case PMD_SIZE: in num_contig_ptes() 136 *pgsize = PMD_SIZE; in num_contig_ptes() 286 } else if (sz == PMD_SIZE) { in huge_pte_alloc() 330 if (!(sz == PMD_SIZE || sz == CONT_PMD_SIZE) && in huge_pte_offset() 350 } else if (pagesize != PUD_SIZE && pagesize != PMD_SIZE) { in arch_make_huge_pte() 510 case PMD_SIZE: in arch_hugetlb_valid_size()
|
/Linux-v5.15/include/asm-generic/ |
D | pgtable-nopmd.h | 22 #define PMD_SIZE (1UL << PMD_SHIFT) macro 23 #define PMD_MASK (~(PMD_SIZE-1))
|
/Linux-v5.15/arch/nios2/mm/ |
D | ioremap.c | 33 if (end > PMD_SIZE) in remap_area_pte() 34 end = PMD_SIZE; in remap_area_pte() 70 address = (address + PMD_SIZE) & PMD_MASK; in remap_area_pmd()
|
/Linux-v5.15/arch/x86/kernel/ |
D | vmlinux.lds.S | 69 #define ALIGN_ENTRY_TEXT_BEGIN . = ALIGN(PMD_SIZE); 70 #define ALIGN_ENTRY_TEXT_END . = ALIGN(PMD_SIZE); 81 . = ALIGN(PMD_SIZE); \ 86 . = ALIGN(PMD_SIZE); \
|
/Linux-v5.15/arch/riscv/include/asm/ |
D | pgtable-64.h | 18 #define PMD_SIZE (_AC(1, UL) << PMD_SHIFT) macro 19 #define PMD_MASK (~(PMD_SIZE - 1))
|
/Linux-v5.15/arch/powerpc/include/asm/nohash/64/ |
D | pgtable-4k.h | 31 #define PMD_SIZE (1UL << PMD_SHIFT) macro 32 #define PMD_MASK (~(PMD_SIZE-1))
|
/Linux-v5.15/arch/m68k/include/asm/ |
D | pgtable_mm.h | 41 #define PMD_SIZE (1UL << PMD_SHIFT) macro 42 #define PMD_MASK (~(PMD_SIZE-1))
|
/Linux-v5.15/arch/um/include/asm/ |
D | pgtable-3level.h | 27 #define PMD_SIZE (1UL << PMD_SHIFT) macro 28 #define PMD_MASK (~(PMD_SIZE-1))
|
/Linux-v5.15/arch/x86/boot/compressed/ |
D | ident_map_64.c | 98 start = round_down(start, PMD_SIZE); in add_identity_map() 99 end = round_up(end, PMD_SIZE); in add_identity_map() 333 end = address + PMD_SIZE; in do_boot_page_fault()
|
/Linux-v5.15/arch/arm/include/asm/ |
D | pgtable-2level.h | 87 #define PMD_SIZE (1UL << PMD_SHIFT) macro 88 #define PMD_MASK (~(PMD_SIZE-1))
|
/Linux-v5.15/arch/arm/mm/ |
D | mmu.c | 1085 next = (addr + PMD_SIZE - 1) & PMD_MASK; in fill_pmd_gaps() 1177 if (!IS_ALIGNED(block_start, PMD_SIZE)) { in adjust_lowmem_bounds() 1180 len = round_up(block_start, PMD_SIZE) - block_start; in adjust_lowmem_bounds() 1213 if (!IS_ALIGNED(block_start, PMD_SIZE)) in adjust_lowmem_bounds() 1215 else if (!IS_ALIGNED(block_end, PMD_SIZE)) in adjust_lowmem_bounds() 1234 memblock_limit = round_down(memblock_limit, PMD_SIZE); in adjust_lowmem_bounds() 1264 for (addr = 0; addr < KASAN_SHADOW_START; addr += PMD_SIZE) in prepare_page_table() 1272 for (addr = KASAN_SHADOW_END; addr < MODULES_VADDR; addr += PMD_SIZE) in prepare_page_table() 1275 for (addr = 0; addr < MODULES_VADDR; addr += PMD_SIZE) in prepare_page_table() 1281 addr = ((unsigned long)_exiprom + PMD_SIZE - 1) & PMD_MASK; in prepare_page_table() [all …]
|
/Linux-v5.15/arch/sparc/mm/ |
D | hugetlbpage.c | 298 if (sz >= PMD_SIZE) in huge_pte_alloc() 342 else if (size >= PMD_SIZE) in set_huge_pte_at() 379 else if (size >= PMD_SIZE) in huge_ptep_get_and_clear() 510 addr += PMD_SIZE; in hugetlb_free_pgd_range() 520 end -= PMD_SIZE; in hugetlb_free_pgd_range()
|