Home
last modified time | relevance | path

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

12

/openbmc/linux/arch/riscv/mm/
H A Dkasan_init.c115 p4d_t *p4dp, *p; in kasan_populate_p4d() local
123 p4dp = p4d_offset(pgd, vaddr); in kasan_populate_p4d()
172 pudp = (pud_t *)p4dp; in kasan_early_clear_pud()
193 p4d_t *p4dp, *base_p4d; in kasan_early_clear_p4d() local
197 p4dp = (p4d_t *)pgdp; in kasan_early_clear_p4d()
200 p4dp = base_p4d + p4d_index(vaddr); in kasan_early_clear_p4d()
208 p4d_clear(p4dp); in kasan_early_clear_p4d()
243 pudp = (pud_t *)p4dp; in kasan_early_populate_pud()
267 p4d_t *p4dp, *base_p4d; in kasan_early_populate_p4d() local
281 p4dp = (p4d_t *)pgdp; in kasan_early_populate_p4d()
[all …]
H A Dpageattr.c135 static int __split_linear_mapping_pud(p4d_t *p4dp, in __split_linear_mapping_pud() argument
142 pudp = pud_offset(p4dp, vaddr); in __split_linear_mapping_pud()
183 p4d_t *p4dp; in __split_linear_mapping_p4d() local
187 p4dp = p4d_offset(pgdp, vaddr); in __split_linear_mapping_p4d()
200 if (p4d_leaf(p4dp_get(p4dp))) { in __split_linear_mapping_p4d()
202 unsigned long pfn = _p4d_pfn(p4dp_get(p4dp)); in __split_linear_mapping_p4d()
203 pgprot_t prot = __pgprot(p4d_val(p4dp_get(p4dp)) & ~_PAGE_PFN_MASK); in __split_linear_mapping_p4d()
227 set_p4d(p4dp, pfn_p4d(page_to_pfn(pud_page), PAGE_TABLE)); in __split_linear_mapping_p4d()
230 ret = __split_linear_mapping_pud(p4dp, vaddr, next); in __split_linear_mapping_p4d()
233 } while (p4dp++, vaddr = next, vaddr != end); in __split_linear_mapping_p4d()
/openbmc/linux/arch/powerpc/mm/nohash/
H A Dbook3e_pgtable.c77 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()
/openbmc/linux/arch/arm64/include/asm/
H A Dpgalloc.h44 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
/openbmc/linux/arch/arm64/mm/
H A Dkasan_init.c89 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()
H A Dfixmap.c69 static void __init early_fixmap_init_pud(p4d_t *p4dp, unsigned long addr, in early_fixmap_init_pud() argument
72 p4d_t p4d = READ_ONCE(*p4dp); in early_fixmap_init_pud()
86 __p4d_populate(p4dp, __pa_symbol(bm_pud), P4D_TYPE_TABLE); in early_fixmap_init_pud()
88 pudp = pud_offset_kimg(p4dp, addr); in early_fixmap_init_pud()
104 p4d_t *p4dp = p4d_offset(pgdp, addr); in early_fixmap_init() local
106 early_fixmap_init_pud(p4dp, addr, end); in early_fixmap_init()
H A 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()
280 p4d_t *p4dp; in huge_pte_alloc() local
286 p4dp = p4d_offset(pgdp, addr); in huge_pte_alloc()
287 pudp = pud_alloc(mm, p4dp, addr); in huge_pte_alloc()
318 p4d_t *p4dp; in huge_pte_offset() local
326 p4dp = p4d_offset(pgdp, addr); in huge_pte_offset()
327 if (!p4d_present(READ_ONCE(*p4dp))) in huge_pte_offset()
330 pudp = pud_offset(p4dp, addr); in huge_pte_offset()
H A Dpageattr.c216 p4d_t *p4dp; in kernel_page_present() local
226 p4dp = p4d_offset(pgdp, addr); in kernel_page_present()
227 if (p4d_none(READ_ONCE(*p4dp))) in kernel_page_present()
230 pudp = pud_offset(p4dp, addr); in kernel_page_present()
H A Dmmu.c321 p4d_t p4d = READ_ONCE(*p4dp); in alloc_init_pud()
332 p4d = READ_ONCE(*p4dp); in alloc_init_pud()
912 pudp = pud_offset(p4dp, addr); in unmap_hotplug_pud_range()
941 p4d_t *p4dp, p4d; in unmap_hotplug_p4d_range() local
945 p4dp = p4d_offset(pgdp, addr); in unmap_hotplug_p4d_range()
946 p4d = READ_ONCE(*p4dp); in unmap_hotplug_p4d_range()
1067 pudp = pud_offset(p4dp, addr); in free_empty_pud_table()
1087 pudp = pud_offset(p4dp, 0UL); in free_empty_pud_table()
1093 p4d_clear(p4dp); in free_empty_pud_table()
1103 p4d_t *p4dp, p4d; in free_empty_p4d_table() local
[all …]
/openbmc/linux/arch/loongarch/mm/
H A Dkasan_init.c132 static pud_t *__init kasan_pud_offset(p4d_t *p4dp, unsigned long addr, int node, bool early) in kasan_pud_offset() argument
134 if (__p4d_none(early, READ_ONCE(*p4dp))) { in kasan_pud_offset()
139 p4d_populate(&init_mm, p4dp, (pud_t *)__va(pud_phys)); in kasan_pud_offset()
142 return pud_offset(p4dp, addr); in kasan_pud_offset()
172 static void __init kasan_pud_populate(p4d_t *p4dp, unsigned long addr, in kasan_pud_populate() argument
176 pud_t *pudp = kasan_pud_offset(p4dp, addr, node, early); in kasan_pud_populate()
188 p4d_t *p4dp = p4d_offset(pgdp, addr); in kasan_p4d_populate() local
192 kasan_pud_populate(p4dp, addr, next, node, early); in kasan_p4d_populate()
193 } while (p4dp++, addr = next, addr != end); in kasan_p4d_populate()
/openbmc/linux/arch/powerpc/mm/kasan/
H A Dinit_book3e_64.c35 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()
/openbmc/linux/arch/s390/mm/
H A Dhugetlbpage.c195 p4d_t *p4dp; in huge_pte_alloc() local
200 p4dp = p4d_alloc(mm, pgdp, addr); in huge_pte_alloc()
201 if (p4dp) { in huge_pte_alloc()
202 pudp = pud_alloc(mm, p4dp, addr); in huge_pte_alloc()
217 p4d_t *p4dp; in huge_pte_offset() local
223 p4dp = p4d_offset(pgdp, addr); in huge_pte_offset()
224 if (p4d_present(*p4dp)) { in huge_pte_offset()
225 pudp = pud_offset(p4dp, addr); in huge_pte_offset()
H A Dpageattr.c302 p4d_t *p4dp; in walk_p4d_level() local
305 p4dp = p4d_offset(pgd, addr); in walk_p4d_level()
307 if (p4d_none(*p4dp)) in walk_p4d_level()
310 rc = walk_pud_level(p4dp, addr, next, flags); in walk_p4d_level()
311 p4dp++; in walk_p4d_level()
/openbmc/linux/arch/x86/include/asm/
H A 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()
/openbmc/linux/arch/arc/include/asm/
H A Dpgalloc.h75 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()
/openbmc/linux/arch/powerpc/include/asm/nohash/64/
H A Dpgtable-4k.h67 static inline void p4d_clear(p4d_t *p4dp) in p4d_clear() argument
69 *p4dp = __p4d(0); in p4d_clear()
/openbmc/linux/arch/powerpc/mm/book3s64/
H A Dradix_pgtable.c77 p4d_t *p4dp; in early_map_kernel_page() local
83 p4dp = p4d_offset(pgdp, ea); in early_map_kernel_page()
84 if (p4d_none(*p4dp)) { in early_map_kernel_page()
87 p4d_populate(&init_mm, p4dp, pudp); in early_map_kernel_page()
89 pudp = pud_offset(p4dp, ea); in early_map_kernel_page()
129 p4d_t *p4dp; in __map_kernel_page() local
152 p4dp = p4d_offset(pgdp, ea); in __map_kernel_page()
190 p4d_t *p4dp; in radix__change_memory_range() local
203 p4dp = p4d_offset(pgdp, idx); in radix__change_memory_range()
1003 if (unlikely(p4d_none(*p4dp))) { in vmemmap_pud_alloc()
[all …]
/openbmc/linux/arch/sparc/mm/
H A Dsrmmu.c498 p4d_t *p4dp; in srmmu_mapioaddr() local
537 p4d_t *p4dp; in srmmu_unmapioaddr() local
684 p4d_t *p4dp; in srmmu_early_allocate_ptable_skeleton() local
691 p4dp = p4d_offset(pgdp, start); in srmmu_early_allocate_ptable_skeleton()
692 pudp = pud_offset(p4dp, start); in srmmu_early_allocate_ptable_skeleton()
719 p4d_t *p4dp; in srmmu_allocate_ptable_skeleton() local
726 p4dp = p4d_offset(pgdp, start); in srmmu_allocate_ptable_skeleton()
727 pudp = pud_offset(p4dp, start); in srmmu_allocate_ptable_skeleton()
778 p4d_t *p4dp; in srmmu_inherit_prom_mappings() local
811 p4dp = p4d_offset(pgdp, start); in srmmu_inherit_prom_mappings()
[all …]
H A 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()
/openbmc/linux/arch/arm/mm/
H A Dkasan_init.c122 p4d_t *p4dp; in kasan_pgd_populate() local
149 p4dp = p4d_offset(pgdp, addr); in kasan_pgd_populate()
150 pudp = pud_offset(p4dp, addr); in kasan_pgd_populate()
/openbmc/linux/include/trace/events/
H A 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,
/openbmc/linux/arch/powerpc/lib/
H A Dcode-patching.c251 p4d_t *p4dp; in unmap_patch_area() local
258 p4dp = p4d_offset(pgdp, addr); in unmap_patch_area()
259 if (WARN_ON(p4d_none(*p4dp))) in unmap_patch_area()
262 pudp = pud_offset(p4dp, addr); in unmap_patch_area()
/openbmc/linux/arch/powerpc/mm/
H A Dpgtable.c388 p4d_t p4d, *p4dp; in __find_linux_pte() local
409 p4dp = p4d_offset(pgdp, ea); in __find_linux_pte()
410 p4d = READ_ONCE(*p4dp); in __find_linux_pte()
417 ret_pte = (pte_t *)p4dp; in __find_linux_pte()
/openbmc/linux/arch/x86/boot/compressed/
H A Dident_map_64.c259 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()
/openbmc/linux/mm/
H A Ddebug_vm_pgtable.c50 p4d_t *p4dp; member
528 p4d_t p4d = READ_ONCE(*args->p4dp); in p4d_clear_tests()
535 p4d_clear(args->p4dp); in p4d_clear_tests()
536 p4d = READ_ONCE(*args->p4dp); in p4d_clear_tests()
553 p4d_clear(args->p4dp); in p4d_populate_tests()
554 p4d_populate(args->mm, args->p4dp, args->start_pudp); in p4d_populate_tests()
555 p4d = READ_ONCE(*args->p4dp); in p4d_populate_tests()
585 p4d_clear(args->p4dp); in pgd_populate_tests()
1220 args->p4dp = p4d_alloc(args->mm, args->pgdp, args->vaddr); in init_args()
1221 if (!args->p4dp) { in init_args()
[all …]

12