/linux-6.1.9/arch/powerpc/mm/nohash/ |
D | book3e_pgtable.c | 77 p4d_t *p4dp; in map_kernel_page() local 85 p4dp = p4d_offset(pgdp, ea); in map_kernel_page() 86 pudp = pud_alloc(&init_mm, p4dp, ea); in map_kernel_page() 97 p4dp = p4d_offset(pgdp, ea); in map_kernel_page() 98 if (p4d_none(*p4dp)) { in map_kernel_page() 100 p4d_populate(&init_mm, p4dp, pudp); in map_kernel_page() 102 pudp = pud_offset(p4dp, ea); in map_kernel_page()
|
/linux-6.1.9/arch/arm64/mm/ |
D | mmu.c | 318 p4d_t *p4dp = p4d_offset(pgdp, addr); in alloc_init_pud() local 319 p4d_t p4d = READ_ONCE(*p4dp); in alloc_init_pud() 329 __p4d_populate(p4dp, pud_phys, p4dval); in alloc_init_pud() 330 p4d = READ_ONCE(*p4dp); in alloc_init_pud() 334 pudp = pud_set_fixmap_offset(p4dp, addr); in alloc_init_pud() 823 p4d_t *p4dp; in kern_addr_valid() local 836 p4dp = p4d_offset(pgdp, addr); in kern_addr_valid() 837 if (p4d_none(READ_ONCE(*p4dp))) in kern_addr_valid() 840 pudp = pud_offset(p4dp, addr); in kern_addr_valid() 954 static void unmap_hotplug_pud_range(p4d_t *p4dp, unsigned long addr, in unmap_hotplug_pud_range() argument [all …]
|
D | kasan_init.c | 89 static pud_t *__init kasan_pud_offset(p4d_t *p4dp, unsigned long addr, int node, in kasan_pud_offset() argument 92 if (p4d_none(READ_ONCE(*p4dp))) { in kasan_pud_offset() 96 __p4d_populate(p4dp, pud_phys, P4D_TYPE_TABLE); in kasan_pud_offset() 99 return early ? pud_offset_kimg(p4dp, addr) : pud_offset(p4dp, addr); in kasan_pud_offset() 131 static void __init kasan_pud_populate(p4d_t *p4dp, unsigned long addr, in kasan_pud_populate() argument 135 pud_t *pudp = kasan_pud_offset(p4dp, addr, node, early); in kasan_pud_populate() 147 p4d_t *p4dp = p4d_offset(pgdp, addr); in kasan_p4d_populate() local 151 kasan_pud_populate(p4dp, addr, next, node, early); in kasan_p4d_populate() 152 } while (p4dp++, addr = next, addr != end); in kasan_p4d_populate()
|
D | hugetlbpage.c | 107 p4d_t *p4dp; in find_num_contig() local 112 p4dp = p4d_offset(pgdp, addr); in find_num_contig() 113 pudp = pud_offset(p4dp, addr); in find_num_contig() 291 p4d_t *p4dp; in huge_pte_alloc() local 297 p4dp = p4d_offset(pgdp, addr); in huge_pte_alloc() 298 pudp = pud_alloc(mm, p4dp, addr); in huge_pte_alloc() 336 p4d_t *p4dp; in huge_pte_offset() local 344 p4dp = p4d_offset(pgdp, addr); in huge_pte_offset() 345 if (!p4d_present(READ_ONCE(*p4dp))) in huge_pte_offset() 348 pudp = pud_offset(p4dp, addr); in huge_pte_offset()
|
D | pageattr.c | 215 p4d_t *p4dp; in kernel_page_present() local 228 p4dp = p4d_offset(pgdp, addr); in kernel_page_present() 229 if (p4d_none(READ_ONCE(*p4dp))) in kernel_page_present() 232 pudp = pud_offset(p4dp, addr); in kernel_page_present()
|
/linux-6.1.9/arch/arm64/include/asm/ |
D | pgalloc.h | 44 static inline void __p4d_populate(p4d_t *p4dp, phys_addr_t pudp, p4dval_t prot) in __p4d_populate() argument 46 set_p4d(p4dp, __p4d(__phys_to_p4d_val(pudp) | prot)); in __p4d_populate() 49 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4dp, pud_t *pudp) in p4d_populate() argument 54 __p4d_populate(p4dp, __pa(pudp), p4dval); in p4d_populate() 57 static inline void __p4d_populate(p4d_t *p4dp, phys_addr_t pudp, p4dval_t prot) in __p4d_populate() argument
|
/linux-6.1.9/arch/riscv/mm/ |
D | kasan_init.c | 164 p4d_t *p4dp, *base_p4d; in kasan_populate_p4d() local 185 p4dp = base_p4d + p4d_index(vaddr); in kasan_populate_p4d() 190 if (p4d_none(*p4dp) && IS_ALIGNED(vaddr, P4D_SIZE) && (next - vaddr) >= P4D_SIZE) { in kasan_populate_p4d() 193 set_p4d(p4dp, pfn_p4d(PFN_DOWN(phys_addr), PAGE_TABLE)); in kasan_populate_p4d() 198 set_p4d(p4dp, pfn_p4d(PFN_DOWN(phys_addr), PAGE_KERNEL)); in kasan_populate_p4d() 204 kasan_populate_pud((pgd_t *)p4dp, vaddr, next, early); in kasan_populate_p4d() 205 } while (p4dp++, vaddr = next, vaddr != end); in kasan_populate_p4d() 375 p4d_t *p4dp, *base_p4d; in kasan_shallow_populate_p4d() local 380 p4dp = base_p4d + p4d_index(vaddr); in kasan_shallow_populate_p4d() 384 is_kasan_pud = (p4d_pgtable(*p4dp) == lm_alias(kasan_early_shadow_pud)); in kasan_shallow_populate_p4d() [all …]
|
/linux-6.1.9/arch/powerpc/mm/kasan/ |
D | init_book3e_64.c | 35 p4d_t *p4dp; in kasan_map_kernel_page() local 41 p4dp = p4d_offset(pgdp, ea); in kasan_map_kernel_page() 42 if (kasan_pud_table(*p4dp)) { in kasan_map_kernel_page() 45 p4d_populate(&init_mm, p4dp, pudp); in kasan_map_kernel_page() 47 pudp = pud_offset(p4dp, ea); in kasan_map_kernel_page()
|
/linux-6.1.9/arch/s390/mm/ |
D | hugetlbpage.c | 189 p4d_t *p4dp; in huge_pte_alloc() local 194 p4dp = p4d_alloc(mm, pgdp, addr); in huge_pte_alloc() 195 if (p4dp) { in huge_pte_alloc() 196 pudp = pud_alloc(mm, p4dp, addr); in huge_pte_alloc() 211 p4d_t *p4dp; in huge_pte_offset() local 217 p4dp = p4d_offset(pgdp, addr); in huge_pte_offset() 218 if (p4d_present(*p4dp)) { in huge_pte_offset() 219 pudp = pud_offset(p4dp, addr); in huge_pte_offset()
|
D | pageattr.c | 276 p4d_t *p4dp; in walk_p4d_level() local 279 p4dp = p4d_offset(pgd, addr); in walk_p4d_level() 281 if (p4d_none(*p4dp)) in walk_p4d_level() 284 rc = walk_pud_level(p4dp, addr, next, flags); in walk_p4d_level() 285 p4dp++; in walk_p4d_level()
|
/linux-6.1.9/arch/x86/include/asm/ |
D | pgtable_64.h | 142 static inline void native_set_p4d(p4d_t *p4dp, p4d_t p4d) in native_set_p4d() argument 147 WRITE_ONCE(*p4dp, p4d); in native_set_p4d() 152 pgd = pti_set_user_pgtbl((pgd_t *)p4dp, pgd); in native_set_p4d() 153 WRITE_ONCE(*p4dp, native_make_p4d(native_pgd_val(pgd))); in native_set_p4d()
|
/linux-6.1.9/arch/powerpc/mm/book3s64/ |
D | radix_pgtable.c | 78 p4d_t *p4dp; in early_map_kernel_page() local 84 p4dp = p4d_offset(pgdp, ea); in early_map_kernel_page() 85 if (p4d_none(*p4dp)) { in early_map_kernel_page() 88 p4d_populate(&init_mm, p4dp, pudp); in early_map_kernel_page() 90 pudp = pud_offset(p4dp, ea); in early_map_kernel_page() 130 p4d_t *p4dp; in __map_kernel_page() local 153 p4dp = p4d_offset(pgdp, ea); in __map_kernel_page() 154 pudp = pud_alloc(&init_mm, p4dp, ea); in __map_kernel_page() 191 p4d_t *p4dp; in radix__change_memory_range() local 204 p4dp = p4d_offset(pgdp, idx); in radix__change_memory_range() [all …]
|
D | hash_pgtable.c | 150 p4d_t *p4dp; in hash__map_kernel_page() local 158 p4dp = p4d_offset(pgdp, ea); in hash__map_kernel_page() 159 pudp = pud_alloc(&init_mm, p4dp, ea); in hash__map_kernel_page()
|
/linux-6.1.9/arch/powerpc/lib/ |
D | code-patching.c | 120 p4d_t *p4dp; in unmap_patch_area() local 127 p4dp = p4d_offset(pgdp, addr); in unmap_patch_area() 128 if (WARN_ON(p4d_none(*p4dp))) in unmap_patch_area() 131 pudp = pud_offset(p4dp, addr); in unmap_patch_area()
|
/linux-6.1.9/arch/powerpc/include/asm/nohash/64/ |
D | pgtable-4k.h | 67 static inline void p4d_clear(p4d_t *p4dp) in p4d_clear() argument 69 *p4dp = __p4d(0); in p4d_clear()
|
/linux-6.1.9/arch/arc/include/asm/ |
D | pgalloc.h | 75 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4dp, pud_t *pudp) in p4d_populate() argument 77 set_p4d(p4dp, __p4d((unsigned long)pudp)); in p4d_populate()
|
D | pgtable-levels.h | 113 #define set_p4d(p4dp, p4d) (*(p4dp) = p4d) argument
|
/linux-6.1.9/arch/sparc/mm/ |
D | srmmu.c | 497 p4d_t *p4dp; in srmmu_mapioaddr() local 505 p4dp = p4d_offset(pgdp, virt_addr); in srmmu_mapioaddr() 506 pudp = pud_offset(p4dp, virt_addr); in srmmu_mapioaddr() 536 p4d_t *p4dp; in srmmu_unmapioaddr() local 543 p4dp = p4d_offset(pgdp, virt_addr); in srmmu_unmapioaddr() 544 pudp = pud_offset(p4dp, virt_addr); in srmmu_unmapioaddr() 683 p4d_t *p4dp; in srmmu_early_allocate_ptable_skeleton() local 690 p4dp = p4d_offset(pgdp, start); in srmmu_early_allocate_ptable_skeleton() 691 pudp = pud_offset(p4dp, start); in srmmu_early_allocate_ptable_skeleton() 718 p4d_t *p4dp; in srmmu_allocate_ptable_skeleton() local [all …]
|
D | fault_64.c | 82 p4d_t *p4dp; in get_user_insn() local 91 p4dp = p4d_offset(pgdp, tpc); in get_user_insn() 92 if (p4d_none(*p4dp) || unlikely(p4d_bad(*p4dp))) in get_user_insn() 94 pudp = pud_offset(p4dp, tpc); in get_user_insn()
|
/linux-6.1.9/arch/arm/mm/ |
D | kasan_init.c | 123 p4d_t *p4dp; in kasan_pgd_populate() local 150 p4dp = p4d_offset(pgdp, addr); in kasan_pgd_populate() 151 pudp = pud_offset(p4dp, addr); in kasan_pgd_populate()
|
/linux-6.1.9/include/trace/events/ |
D | xen.h | 224 TP_PROTO(p4d_t *p4dp, p4d_t *user_p4dp, p4d_t p4dval), 225 TP_ARGS(p4dp, user_p4dp, p4dval), 227 __field(p4d_t *, p4dp) 231 TP_fast_assign(__entry->p4dp = p4dp; 235 __entry->p4dp, __entry->user_p4dp,
|
/linux-6.1.9/mm/ |
D | debug_vm_pgtable.c | 68 p4d_t *p4dp; member 562 p4d_t p4d = READ_ONCE(*args->p4dp); in p4d_clear_tests() 569 WRITE_ONCE(*args->p4dp, p4d); in p4d_clear_tests() 570 p4d_clear(args->p4dp); in p4d_clear_tests() 571 p4d = READ_ONCE(*args->p4dp); in p4d_clear_tests() 588 p4d_clear(args->p4dp); in p4d_populate_tests() 589 p4d_populate(args->mm, args->p4dp, args->start_pudp); in p4d_populate_tests() 590 p4d = READ_ONCE(*args->p4dp); in p4d_populate_tests() 621 p4d_clear(args->p4dp); in pgd_populate_tests() 1161 args->p4dp = p4d_alloc(args->mm, args->pgdp, args->vaddr); in init_args() [all …]
|
/linux-6.1.9/arch/x86/boot/compressed/ |
D | ident_map_64.c | 259 p4d_t *p4dp; in set_clr_page_flags() local 282 p4dp = p4d_offset(pgdp, address); in set_clr_page_flags() 283 pudp = pud_offset(p4dp, address); in set_clr_page_flags()
|
/linux-6.1.9/arch/powerpc/mm/ |
D | pgtable.c | 362 p4d_t p4d, *p4dp; in __find_linux_pte() local 383 p4dp = p4d_offset(pgdp, ea); in __find_linux_pte() 384 p4d = READ_ONCE(*p4dp); in __find_linux_pte() 391 ret_pte = (pte_t *)p4dp; in __find_linux_pte()
|
/linux-6.1.9/arch/riscv/include/asm/ |
D | pgtable-64.h | 240 static inline void set_p4d(p4d_t *p4dp, p4d_t p4d) in set_p4d() argument 243 *p4dp = p4d; in set_p4d() 245 set_pud((pud_t *)p4dp, (pud_t){ p4d_val(p4d) }); in set_p4d()
|