/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/ |
D | book3e_pgtable.c | 76 p4d_t *p4dp; in map_kernel_page() local 84 p4dp = p4d_offset(pgdp, ea); in map_kernel_page() 85 pudp = pud_alloc(&init_mm, p4dp, ea); in map_kernel_page() 96 p4dp = p4d_offset(pgdp, ea); in map_kernel_page() 97 if (p4d_none(*p4dp)) { in map_kernel_page() 99 p4d_populate(&init_mm, p4dp, pudp); in map_kernel_page() 101 pudp = pud_offset(p4dp, ea); in map_kernel_page()
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
D | pgalloc.h | 41 static inline void __p4d_populate(p4d_t *p4dp, phys_addr_t pudp, p4dval_t prot) in __p4d_populate() argument 43 set_p4d(p4dp, __p4d(__phys_to_p4d_val(pudp) | prot)); in __p4d_populate() 46 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4dp, pud_t *pudp) in p4d_populate() argument 48 __p4d_populate(p4dp, __pa(pudp), PUD_TYPE_TABLE); in p4d_populate() 51 static inline void __p4d_populate(p4d_t *p4dp, phys_addr_t pudp, p4dval_t prot) in __p4d_populate() argument
|
D | pgtable.h | 675 static inline void set_p4d(p4d_t *p4dp, p4d_t p4d) in set_p4d() argument 677 if (in_swapper_pgdir(p4dp)) { in set_p4d() 678 set_swapper_pgd((pgd_t *)p4dp, __pgd(p4d_val(p4d))); in set_p4d() 682 WRITE_ONCE(*p4dp, p4d); in set_p4d() 687 static inline void p4d_clear(p4d_t *p4dp) in p4d_clear() argument 689 set_p4d(p4dp, __p4d(0)); in p4d_clear()
|
/kernel/linux/linux-5.10/arch/arm64/mm/ |
D | kasan_init.c | 86 static pud_t *__init kasan_pud_offset(p4d_t *p4dp, unsigned long addr, int node, in kasan_pud_offset() argument 89 if (p4d_none(READ_ONCE(*p4dp))) { in kasan_pud_offset() 93 __p4d_populate(p4dp, pud_phys, PMD_TYPE_TABLE); in kasan_pud_offset() 96 return early ? pud_offset_kimg(p4dp, addr) : pud_offset(p4dp, addr); in kasan_pud_offset() 128 static void __init kasan_pud_populate(p4d_t *p4dp, unsigned long addr, in kasan_pud_populate() argument 132 pud_t *pudp = kasan_pud_offset(p4dp, addr, node, early); in kasan_pud_populate() 144 p4d_t *p4dp = p4d_offset(pgdp, addr); in kasan_p4d_populate() local 148 kasan_pud_populate(p4dp, addr, next, node, early); in kasan_p4d_populate() 149 } while (p4dp++, addr = next, addr != end); in kasan_p4d_populate()
|
D | mmu.c | 306 p4d_t *p4dp = p4d_offset(pgdp, addr); in alloc_init_pud() local 307 p4d_t p4d = READ_ONCE(*p4dp); in alloc_init_pud() 313 __p4d_populate(p4dp, pud_phys, PUD_TYPE_TABLE); in alloc_init_pud() 314 p4d = READ_ONCE(*p4dp); in alloc_init_pud() 324 pudp = pud_set_fixmap_offset(p4dp, addr); in alloc_init_pud() 774 p4d_t *p4dp; in kern_addr_valid() local 787 p4dp = p4d_offset(pgdp, addr); in kern_addr_valid() 788 if (p4d_none(READ_ONCE(*p4dp))) in kern_addr_valid() 791 pudp = pud_offset(p4dp, addr); in kern_addr_valid() 905 static void unmap_hotplug_pud_range(p4d_t *p4dp, unsigned long addr, in unmap_hotplug_pud_range() argument [all …]
|
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() 259 p4d_t *p4dp; in huge_pte_alloc() local 265 p4dp = p4d_offset(pgdp, addr); in huge_pte_alloc() 266 pudp = pud_alloc(mm, p4dp, addr); in huge_pte_alloc() 305 p4d_t *p4dp; in huge_pte_offset() local 313 p4dp = p4d_offset(pgdp, addr); in huge_pte_offset() 314 if (!p4d_present(READ_ONCE(*p4dp))) in huge_pte_offset() 317 pudp = pud_offset(p4dp, addr); in huge_pte_offset()
|
D | pageattr.c | 201 p4d_t *p4dp; in kernel_page_present() local 214 p4dp = p4d_offset(pgdp, addr); in kernel_page_present() 215 if (p4d_none(READ_ONCE(*p4dp))) in kernel_page_present() 218 pudp = pud_offset(p4dp, addr); in kernel_page_present()
|
D | fault.c | 147 p4d_t *p4dp, p4d; in show_pte() local 155 p4dp = p4d_offset(pgdp, addr); in show_pte() 156 p4d = READ_ONCE(*p4dp); in show_pte() 161 pudp = pud_offset(p4dp, addr); in show_pte()
|
/kernel/linux/linux-5.10/arch/s390/mm/ |
D | hugetlbpage.c | 196 p4d_t *p4dp; in huge_pte_alloc() local 201 p4dp = p4d_alloc(mm, pgdp, addr); in huge_pte_alloc() 202 if (p4dp) { in huge_pte_alloc() 203 pudp = pud_alloc(mm, p4dp, addr); in huge_pte_alloc() 218 p4d_t *p4dp; in huge_pte_offset() local 224 p4dp = p4d_offset(pgdp, addr); in huge_pte_offset() 225 if (p4d_present(*p4dp)) { in huge_pte_offset() 226 pudp = pud_offset(p4dp, addr); in huge_pte_offset()
|
D | pageattr.c | 265 p4d_t *p4dp; in walk_p4d_level() local 268 p4dp = p4d_offset(pgd, addr); in walk_p4d_level() 270 if (p4d_none(*p4dp)) in walk_p4d_level() 273 rc = walk_pud_level(p4dp, addr, next, flags); in walk_p4d_level() 274 p4dp++; in walk_p4d_level()
|
/kernel/linux/linux-5.10/mm/ |
D | debug_vm_pgtable.c | 523 static void __init p4d_clear_tests(struct mm_struct *mm, p4d_t *p4dp) in p4d_clear_tests() argument 525 p4d_t p4d = READ_ONCE(*p4dp); in p4d_clear_tests() 532 WRITE_ONCE(*p4dp, p4d); in p4d_clear_tests() 533 p4d_clear(p4dp); in p4d_clear_tests() 534 p4d = READ_ONCE(*p4dp); in p4d_clear_tests() 538 static void __init p4d_populate_tests(struct mm_struct *mm, p4d_t *p4dp, in p4d_populate_tests() argument 552 p4d_clear(p4dp); in p4d_populate_tests() 553 p4d_populate(mm, p4dp, pudp); in p4d_populate_tests() 554 p4d = READ_ONCE(*p4dp); in p4d_populate_tests() 574 p4d_t *p4dp) in pgd_populate_tests() argument [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/64/ |
D | pgtable-4k.h | 63 static inline void p4d_clear(p4d_t *p4dp) in p4d_clear() argument 65 *p4dp = __p4d(0); in p4d_clear()
|
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/ |
D | radix_pgtable.c | 75 p4d_t *p4dp; in early_map_kernel_page() local 81 p4dp = p4d_offset(pgdp, ea); in early_map_kernel_page() 82 if (p4d_none(*p4dp)) { in early_map_kernel_page() 85 p4d_populate(&init_mm, p4dp, pudp); in early_map_kernel_page() 87 pudp = pud_offset(p4dp, ea); in early_map_kernel_page() 127 p4d_t *p4dp; in __map_kernel_page() local 150 p4dp = p4d_offset(pgdp, ea); in __map_kernel_page() 151 pudp = pud_alloc(&init_mm, p4dp, ea); in __map_kernel_page() 188 p4d_t *p4dp; in radix__change_memory_range() local 201 p4dp = p4d_offset(pgdp, idx); in radix__change_memory_range() [all …]
|
D | hash_pgtable.c | 149 p4d_t *p4dp; in hash__map_kernel_page() local 157 p4dp = p4d_offset(pgdp, ea); in hash__map_kernel_page() 158 pudp = pud_alloc(&init_mm, p4dp, ea); in hash__map_kernel_page()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/x86/boot/compressed/ |
D | ident_map_64.c | 249 p4d_t *p4dp; in set_clr_page_flags() local 272 p4dp = p4d_offset(pgdp, address); in set_clr_page_flags() 273 pudp = pud_offset(p4dp, address); in set_clr_page_flags()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/arch/powerpc/mm/ |
D | pgtable.c | 350 p4d_t p4d, *p4dp; in __find_linux_pte() local 371 p4dp = p4d_offset(pgdp, ea); in __find_linux_pte() 372 p4d = READ_ONCE(*p4dp); in __find_linux_pte() 379 ret_pte = (pte_t *)p4dp; in __find_linux_pte()
|
/kernel/linux/linux-5.10/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,
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | hibernate.c | 186 p4d_t *p4dp; in trans_pgd_map_page() local 199 p4dp = p4d_offset(pgdp, dst_addr); in trans_pgd_map_page() 200 if (p4d_none(READ_ONCE(*p4dp))) { in trans_pgd_map_page() 204 p4d_populate(&init_mm, p4dp, pudp); in trans_pgd_map_page() 207 pudp = pud_offset(p4dp, dst_addr); in trans_pgd_map_page()
|
/kernel/linux/linux-5.10/arch/mips/mm/ |
D | tlb-r4k.c | 297 p4d_t *p4dp; in __update_tlb() local 323 p4dp = p4d_offset(pgdp, address); in __update_tlb() 324 pudp = pud_offset(p4dp, address); in __update_tlb()
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
D | pgtable-64.h | 208 static inline void p4d_clear(p4d_t *p4dp) in p4d_clear() argument 210 p4d_val(*p4dp) = (unsigned long)invalid_pud_table; in p4d_clear()
|
/kernel/linux/linux-5.10/arch/powerpc/lib/ |
D | code-patching.c | 112 p4d_t *p4dp; in unmap_patch_area() local 119 p4dp = p4d_offset(pgdp, addr); in unmap_patch_area() 120 if (unlikely(!p4dp)) in unmap_patch_area() 123 pudp = pud_offset(p4dp, addr); in unmap_patch_area()
|