Home
last modified time | relevance | path

Searched refs:p4dp (Results 1 – 25 of 40) sorted by relevance

12

/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/
Dbook3e_pgtable.c76 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/
Dpgalloc.h41 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
Dpgtable.h675 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/
Dkasan_init.c86 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()
Dmmu.c306 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 …]
Dhugetlbpage.c107 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()
Dpageattr.c201 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()
Dfault.c147 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/
Dhugetlbpage.c196 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()
Dpageattr.c265 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/
Ddebug_vm_pgtable.c523 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/
Dpgtable_64.h142 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/
Dpgtable-4k.h63 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/
Dradix_pgtable.c75 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 …]
Dhash_pgtable.c149 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/
Dsrmmu.c497 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 …]
Dfault_64.c82 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/
Dident_map_64.c249 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/
Dkasan_init.c123 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/
Dpgtable.c350 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/
Dxen.h224 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/
Dhibernate.c186 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/
Dtlb-r4k.c297 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/
Dpgtable-64.h208 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/
Dcode-patching.c112 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()

12