/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()
|
/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 | 692 static inline void set_p4d(p4d_t *p4dp, p4d_t p4d) in set_p4d() argument 694 if (in_swapper_pgdir(p4dp)) { in set_p4d() 695 set_swapper_pgd((pgd_t *)p4dp, __pgd(p4d_val(p4d))); in set_p4d() 699 WRITE_ONCE(*p4dp, p4d); in set_p4d() 704 static inline void p4d_clear(p4d_t *p4dp) in p4d_clear() argument 706 set_p4d(p4dp, __p4d(0)); in p4d_clear()
|
/arch/arm64/mm/ |
D | kasan_init.c | 88 static pud_t *__init kasan_pud_offset(p4d_t *p4dp, unsigned long addr, int node, in kasan_pud_offset() argument 91 if (p4d_none(READ_ONCE(*p4dp))) { in kasan_pud_offset() 95 __p4d_populate(p4dp, pud_phys, PMD_TYPE_TABLE); in kasan_pud_offset() 98 return early ? pud_offset_kimg(p4dp, addr) : pud_offset(p4dp, addr); in kasan_pud_offset() 130 static void __init kasan_pud_populate(p4d_t *p4dp, unsigned long addr, in kasan_pud_populate() argument 134 pud_t *pudp = kasan_pud_offset(p4dp, addr, node, early); in kasan_pud_populate() 146 p4d_t *p4dp = p4d_offset(pgdp, addr); in kasan_p4d_populate() local 150 kasan_pud_populate(p4dp, addr, next, node, early); in kasan_p4d_populate() 151 } 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() 775 p4d_t *p4dp; in kern_addr_valid() local 788 p4dp = p4d_offset(pgdp, addr); in kern_addr_valid() 789 if (p4d_none(READ_ONCE(*p4dp))) in kern_addr_valid() 792 pudp = pud_offset(p4dp, addr); in kern_addr_valid() 906 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() 304 p4d_t *p4dp; in huge_pte_offset() local 312 p4dp = p4d_offset(pgdp, addr); in huge_pte_offset() 313 if (!p4d_present(READ_ONCE(*p4dp))) in huge_pte_offset() 316 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 | 152 p4d_t *p4dp, p4d; in show_pte() local 160 p4dp = p4d_offset(pgdp, addr); in show_pte() 161 p4d = READ_ONCE(*p4dp); in show_pte() 166 pudp = pud_offset(p4dp, addr); in show_pte()
|
/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()
|
/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()
|
D | pgtable.h | 78 # define set_p4d(p4dp, p4d) native_set_p4d(p4dp, p4d) argument 1233 static inline p4d_t *kernel_to_user_p4dp(p4d_t *p4dp) in kernel_to_user_p4dp() argument 1235 return ptr_set_bit(p4dp, PTI_PGTABLE_SWITCH_BIT); in kernel_to_user_p4dp() 1238 static inline p4d_t *user_to_kernel_p4dp(p4d_t *p4dp) in user_to_kernel_p4dp() argument 1240 return ptr_clear_bit(p4dp, PTI_PGTABLE_SWITCH_BIT); in user_to_kernel_p4dp()
|
D | paravirt.h | 454 static inline void set_p4d(p4d_t *p4dp, p4d_t p4d) in set_p4d() argument 458 PVOP_VCALL2(mmu.set_p4d, p4dp, val); in set_p4d() 494 static inline void p4d_clear(p4d_t *p4dp) in p4d_clear() argument 496 set_p4d(p4dp, native_make_p4d(0)); in p4d_clear()
|
/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()
|
D | pgtable.h | 187 static inline void p4d_set(p4d_t *p4dp, unsigned long val) in p4d_set() argument 189 *p4dp = __p4d(val); in p4d_set()
|
/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()
|
/arch/sparc/mm/ |
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()
|
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 …]
|
/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()
|
/arch/x86/boot/compressed/ |
D | ident_map_64.c | 257 p4d_t *p4dp; in set_clr_page_flags() local 280 p4dp = p4d_offset(pgdp, address); in set_clr_page_flags() 281 pudp = pud_offset(p4dp, address); in set_clr_page_flags()
|
/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()
|
/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()
|
/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()
|
/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()
|