/linux-6.1.9/arch/arm64/include/asm/ |
D | pgalloc.h | 23 static inline void __pud_populate(pud_t *pudp, phys_addr_t pmdp, pudval_t prot) in __pud_populate() argument 25 set_pud(pudp, __pud(__phys_to_pud_val(pmdp) | prot)); in __pud_populate() 28 static inline void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmdp) in pud_populate() argument 33 __pud_populate(pudp, __pa(pmdp), pudval); in pud_populate() 36 static inline void __pud_populate(pud_t *pudp, phys_addr_t pmdp, pudval_t prot) in __pud_populate() argument 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/powerpc/mm/nohash/ |
D | book3e_pgtable.c | 78 pud_t *pudp; in map_kernel_page() local 86 pudp = pud_alloc(&init_mm, p4dp, ea); in map_kernel_page() 87 if (!pudp) in map_kernel_page() 89 pmdp = pmd_alloc(&init_mm, pudp, ea); in map_kernel_page() 99 pudp = early_alloc_pgtable(PUD_TABLE_SIZE); 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() 103 if (pud_none(*pudp)) { in map_kernel_page() 105 pud_populate(&init_mm, pudp, pmdp); in map_kernel_page() 107 pmdp = pmd_offset(pudp, ea); in map_kernel_page()
|
/linux-6.1.9/arch/arm64/mm/ |
D | mmu.c | 233 static void init_pmd(pud_t *pudp, unsigned long addr, unsigned long end, in init_pmd() argument 240 pmdp = pmd_set_fixmap_offset(pudp, addr); in init_pmd() 270 static void alloc_init_cont_pmd(pud_t *pudp, unsigned long addr, in alloc_init_cont_pmd() argument 276 pud_t pud = READ_ONCE(*pudp); in alloc_init_cont_pmd() 290 __pud_populate(pudp, pmd_phys, pudval); in alloc_init_cont_pmd() 291 pud = READ_ONCE(*pudp); in alloc_init_cont_pmd() 305 init_pmd(pudp, addr, next, phys, __prot, pgtable_alloc, flags); in alloc_init_cont_pmd() 317 pud_t *pudp; in alloc_init_pud() local 334 pudp = pud_set_fixmap_offset(p4dp, addr); in alloc_init_pud() 336 pud_t old_pud = READ_ONCE(*pudp); in alloc_init_pud() [all …]
|
D | hugetlbpage.c | 108 pud_t *pudp; in find_num_contig() local 113 pudp = pud_offset(p4dp, addr); in find_num_contig() 114 pmdp = pmd_offset(pudp, addr); in find_num_contig() 292 pud_t *pudp; in huge_pte_alloc() local 298 pudp = pud_alloc(mm, p4dp, addr); in huge_pte_alloc() 299 if (!pudp) in huge_pte_alloc() 303 ptep = (pte_t *)pudp; in huge_pte_alloc() 305 pmdp = pmd_alloc(mm, pudp, addr); in huge_pte_alloc() 319 if (want_pmd_share(vma, addr) && pud_none(READ_ONCE(*pudp))) in huge_pte_alloc() 320 ptep = huge_pmd_share(mm, vma, addr, pudp); in huge_pte_alloc() [all …]
|
D | kasan_init.c | 76 static pmd_t *__init kasan_pmd_offset(pud_t *pudp, unsigned long addr, int node, in kasan_pmd_offset() argument 79 if (pud_none(READ_ONCE(*pudp))) { in kasan_pmd_offset() 83 __pud_populate(pudp, pmd_phys, PUD_TYPE_TABLE); in kasan_pmd_offset() 86 return early ? pmd_offset_kimg(pudp, addr) : pmd_offset(pudp, addr); in kasan_pmd_offset() 119 static void __init kasan_pmd_populate(pud_t *pudp, unsigned long addr, in kasan_pmd_populate() argument 123 pmd_t *pmdp = kasan_pmd_offset(pudp, addr, node, early); in kasan_pmd_populate() 135 pud_t *pudp = kasan_pud_offset(p4dp, addr, node, early); in kasan_pud_populate() local 139 kasan_pmd_populate(pudp, addr, next, node, early); in kasan_pud_populate() 140 } while (pudp++, addr = next, addr != end && pud_none(READ_ONCE(*pudp))); in kasan_pud_populate()
|
D | pageattr.c | 216 pud_t *pudp, pud; in kernel_page_present() local 232 pudp = pud_offset(p4dp, addr); in kernel_page_present() 233 pud = READ_ONCE(*pudp); in kernel_page_present() 239 pmdp = pmd_offset(pudp, addr); in kernel_page_present()
|
/linux-6.1.9/arch/s390/mm/ |
D | pageattr.c | 157 static int walk_pmd_level(pud_t *pudp, unsigned long addr, unsigned long end, in walk_pmd_level() argument 165 pmdp = pmd_offset(pudp, addr); in walk_pmd_level() 193 static int split_pud_page(pud_t *pudp, unsigned long addr) in split_pud_page() argument 203 pmd_addr = pud_pfn(*pudp) << PAGE_SHIFT; in split_pud_page() 204 ro = !!(pud_val(*pudp) & _REGION_ENTRY_PROTECT); in split_pud_page() 205 nx = !!(pud_val(*pudp) & _REGION_ENTRY_NOEXEC); in split_pud_page() 216 pgt_set((unsigned long *)pudp, pud_val(new), addr, CRDTE_DTT_REGION3); in split_pud_page() 222 static void modify_pud_page(pud_t *pudp, unsigned long addr, in modify_pud_page() argument 225 pud_t new = *pudp; in modify_pud_page() 235 pgt_set((unsigned long *)pudp, pud_val(new), addr, CRDTE_DTT_REGION3); in modify_pud_page() [all …]
|
D | hugetlbpage.c | 176 pud_t *pudp = (pud_t *) ptep; in huge_ptep_get_and_clear() local 179 pudp_xchg_direct(mm, addr, pudp, __pud(_REGION3_ENTRY_EMPTY)); in huge_ptep_get_and_clear() 190 pud_t *pudp; in huge_pte_alloc() local 196 pudp = pud_alloc(mm, p4dp, addr); in huge_pte_alloc() 197 if (pudp) { in huge_pte_alloc() 199 return (pte_t *) pudp; in huge_pte_alloc() 201 pmdp = pmd_alloc(mm, pudp, addr); in huge_pte_alloc() 212 pud_t *pudp; in huge_pte_offset() local 219 pudp = pud_offset(p4dp, addr); in huge_pte_offset() 220 if (pud_present(*pudp)) { in huge_pte_offset() [all …]
|
D | pgtable.c | 492 unsigned long addr, pud_t *pudp) in pudp_idte_local() argument 495 __pudp_idte(addr, pudp, IDTE_NODAT | IDTE_GUEST_ASCE, in pudp_idte_local() 498 __pudp_idte(addr, pudp, 0, 0, IDTE_LOCAL); in pudp_idte_local() 502 unsigned long addr, pud_t *pudp) in pudp_idte_global() argument 505 __pudp_idte(addr, pudp, IDTE_NODAT | IDTE_GUEST_ASCE, in pudp_idte_global() 508 __pudp_idte(addr, pudp, 0, 0, IDTE_GLOBAL); in pudp_idte_global() 514 __pmdp_csp((pmd_t *) pudp); in pudp_idte_global() 518 unsigned long addr, pud_t *pudp) in pudp_flush_direct() argument 522 old = *pudp; in pudp_flush_direct() 528 pudp_idte_local(mm, addr, pudp); in pudp_flush_direct() [all …]
|
/linux-6.1.9/arch/powerpc/mm/kasan/ |
D | init_book3e_64.c | 36 pud_t *pudp; in kasan_map_kernel_page() local 43 pudp = memblock_alloc(PUD_TABLE_SIZE, PUD_TABLE_SIZE); in kasan_map_kernel_page() 44 memcpy(pudp, kasan_early_shadow_pud, PUD_TABLE_SIZE); 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() 48 if (kasan_pmd_table(*pudp)) { in kasan_map_kernel_page() 51 pud_populate(&init_mm, pudp, pmdp); in kasan_map_kernel_page() 53 pmdp = pmd_offset(pudp, ea); in kasan_map_kernel_page()
|
/linux-6.1.9/arch/x86/include/asm/ |
D | pgtable-3level.h | 103 static inline void native_set_pud(pud_t *pudp, pud_t pud) in native_set_pud() argument 106 pud.p4d.pgd = pti_set_user_pgtbl(&pudp->p4d.pgd, pud.p4d.pgd); in native_set_pud() 108 set_64bit((unsigned long long *)(pudp), native_pud_val(pud)); in native_set_pud() 132 static inline void native_pud_clear(pud_t *pudp) in native_pud_clear() argument 136 static inline void pud_clear(pud_t *pudp) in pud_clear() argument 138 set_pud(pudp, __pud(0)); in pud_clear() 232 static inline pud_t native_pudp_get_and_clear(pud_t *pudp) in native_pudp_get_and_clear() argument 234 union split_pud res, *orig = (union split_pud *)pudp; in native_pudp_get_and_clear() 237 pti_set_user_pgtbl(&pudp->p4d.pgd, __pgd(0)); in native_pudp_get_and_clear()
|
/linux-6.1.9/arch/riscv/mm/ |
D | kasan_init.c | 102 pud_t *pudp, *base_pud; in kasan_populate_pud() local 127 pudp = base_pud + pud_index(vaddr); in kasan_populate_pud() 132 if (pud_none(*pudp) && IS_ALIGNED(vaddr, PUD_SIZE) && (next - vaddr) >= PUD_SIZE) { in kasan_populate_pud() 135 set_pud(pudp, pfn_pud(PFN_DOWN(phys_addr), PAGE_TABLE)); in kasan_populate_pud() 140 set_pud(pudp, pfn_pud(PFN_DOWN(phys_addr), PAGE_KERNEL)); in kasan_populate_pud() 146 kasan_populate_pmd(pudp, vaddr, next); in kasan_populate_pud() 147 } while (pudp++, vaddr = next, vaddr != end); in kasan_populate_pud() 346 pud_t *pudp, *base_pud; in kasan_shallow_populate_pud() local 351 pudp = base_pud + pud_index(vaddr); in kasan_shallow_populate_pud() 355 is_kasan_pmd = (pud_pgtable(*pudp) == lm_alias(kasan_early_shadow_pmd)); in kasan_shallow_populate_pud() [all …]
|
/linux-6.1.9/mm/ |
D | debug_vm_pgtable.c | 69 pud_t *pudp; member 392 set_pud_at(args->mm, vaddr, args->pudp, pud); in pud_advanced_tests() 394 pudp_set_wrprotect(args->mm, vaddr, args->pudp); in pud_advanced_tests() 395 pud = READ_ONCE(*args->pudp); in pud_advanced_tests() 399 pudp_huge_get_and_clear(args->mm, vaddr, args->pudp); in pud_advanced_tests() 400 pud = READ_ONCE(*args->pudp); in pud_advanced_tests() 406 set_pud_at(args->mm, vaddr, args->pudp, pud); in pud_advanced_tests() 410 pudp_set_access_flags(args->vma, vaddr, args->pudp, pud, 1); in pud_advanced_tests() 411 pud = READ_ONCE(*args->pudp); in pud_advanced_tests() 415 pudp_huge_get_and_clear_full(args->mm, vaddr, args->pudp, 1); in pud_advanced_tests() [all …]
|
D | pgtable-generic.c | 148 pud_t *pudp) in pudp_huge_clear_flush() argument 153 VM_BUG_ON(!pud_trans_huge(*pudp) && !pud_devmap(*pudp)); in pudp_huge_clear_flush() 154 pud = pudp_huge_get_and_clear(vma->vm_mm, address, pudp); in pudp_huge_clear_flush()
|
/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() 86 static inline void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmdp) in pud_populate() argument 88 set_pud(pudp, __pud((unsigned long)pmdp)); in pud_populate()
|
/linux-6.1.9/arch/powerpc/mm/book3s64/ |
D | radix_pgtable.c | 79 pud_t *pudp; in early_map_kernel_page() local 86 pudp = early_alloc_pgtable(PAGE_SIZE, nid, 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() 92 ptep = (pte_t *)pudp; in early_map_kernel_page() 95 if (pud_none(*pudp)) { in early_map_kernel_page() 98 pud_populate(&init_mm, pudp, pmdp); in early_map_kernel_page() 100 pmdp = pmd_offset(pudp, ea); in early_map_kernel_page() 131 pud_t *pudp; in __map_kernel_page() local 154 pudp = pud_alloc(&init_mm, p4dp, ea); in __map_kernel_page() [all …]
|
/linux-6.1.9/include/trace/events/ |
D | xen.h | 207 TP_PROTO(pud_t *pudp, pud_t pudval), 208 TP_ARGS(pudp, pudval), 210 __field(pud_t *, pudp) 213 TP_fast_assign(__entry->pudp = pudp; 216 __entry->pudp, 242 TP_PROTO(pud_t *pudp, pud_t pudval), 243 TP_ARGS(pudp, pudval), 245 __field(pud_t *, pudp) 248 TP_fast_assign(__entry->pudp = pudp; 251 __entry->pudp,
|
/linux-6.1.9/include/asm-generic/ |
D | tlb.h | 606 #define __tlb_remove_pud_tlb_entry(tlb, pudp, address) do {} while (0) argument 609 #define tlb_remove_pud_tlb_entry(tlb, pudp, address) \ argument 612 __tlb_remove_pud_tlb_entry(tlb, pudp, address); \ 652 #define pud_free_tlb(tlb, pudp, address) \ argument 656 __pud_free_tlb(tlb, pudp, address); \ 661 #define p4d_free_tlb(tlb, pudp, address) \ argument 665 __p4d_free_tlb(tlb, pudp, address); \
|
/linux-6.1.9/include/linux/ |
D | pgtable.h | 187 unsigned long address, pud_t *pudp, 198 unsigned long address, pud_t *pudp, in pudp_set_access_flags() argument 391 pud_t *pudp) in pudp_huge_get_and_clear() argument 393 pud_t pud = *pudp; in pudp_huge_get_and_clear() 395 pud_clear(pudp); in pudp_huge_get_and_clear() 415 unsigned long address, pud_t *pudp, in pudp_huge_get_and_clear_full() argument 418 return pudp_huge_get_and_clear(mm, address, pudp); in pudp_huge_get_and_clear_full() 478 pud_t *pudp); 549 unsigned long address, pud_t *pudp) in pudp_set_wrprotect() argument 551 pud_t old_pud = *pudp; in pudp_set_wrprotect() [all …]
|
D | page_table_check.h | 28 pud_t *pudp, pud_t pud); 97 unsigned long addr, pud_t *pudp, in page_table_check_pud_set() argument 103 __page_table_check_pud_set(mm, addr, pudp, pud); in page_table_check_pud_set() 154 unsigned long addr, pud_t *pudp, in page_table_check_pud_set() argument
|
/linux-6.1.9/arch/arm/include/asm/ |
D | pgtable-3level.h | 121 #define pud_clear(pudp) \ argument 123 *pudp = __pud(0); \ 124 clean_pmd_entry(pudp); \ 127 #define set_pud(pudp, pud) \ argument 129 *pudp = pud; \ 130 flush_pmd_entry(pudp); \
|
/linux-6.1.9/arch/arm/mm/ |
D | kasan_init.c | 88 static void __init kasan_pmd_populate(pud_t *pudp, unsigned long addr, in kasan_pmd_populate() argument 92 pmd_t *pmdp = pmd_offset(pudp, addr); in kasan_pmd_populate() 124 pud_t *pudp; in kasan_pgd_populate() local 151 pudp = pud_offset(p4dp, addr); in kasan_pgd_populate() 153 kasan_pmd_populate(pudp, addr, next, early); in kasan_pgd_populate()
|
/linux-6.1.9/arch/sparc/mm/ |
D | srmmu.c | 498 pud_t *pudp; in srmmu_mapioaddr() local 506 pudp = pud_offset(p4dp, virt_addr); in srmmu_mapioaddr() 507 pmdp = pmd_offset(pudp, virt_addr); in srmmu_mapioaddr() 537 pud_t *pudp; in srmmu_unmapioaddr() local 544 pudp = pud_offset(p4dp, virt_addr); in srmmu_unmapioaddr() 545 pmdp = pmd_offset(pudp, virt_addr); in srmmu_unmapioaddr() 684 pud_t *pudp; in srmmu_early_allocate_ptable_skeleton() local 691 pudp = pud_offset(p4dp, start); in srmmu_early_allocate_ptable_skeleton() 692 if (pud_none(*__nocache_fix(pudp))) { in srmmu_early_allocate_ptable_skeleton() 698 pud_set(__nocache_fix(pudp), pmdp); in srmmu_early_allocate_ptable_skeleton() [all …]
|
/linux-6.1.9/arch/m68k/include/asm/ |
D | motorola_pgtable.h | 98 static inline void pud_set(pud_t *pudp, pmd_t *pmdp) in pud_set() argument 100 pud_val(*pudp) = _PAGE_TABLE | _PAGE_ACCESSED | __pa(pmdp); in pud_set() 133 #define pud_clear(pudp) ({ pud_val(*pudp) = 0; }) argument
|
/linux-6.1.9/arch/x86/mm/ |
D | pgtable.c | 188 void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd) in pud_populate() argument 194 set_pud(pudp, __pud(__pa(pmd) | _PAGE_PRESENT)); in pud_populate() 521 pud_t *pudp, pud_t entry, int dirty) in pudp_set_access_flags() argument 523 int changed = !pud_same(*pudp, entry); in pudp_set_access_flags() 528 set_pud(pudp, entry); in pudp_set_access_flags() 569 unsigned long addr, pud_t *pudp) in pudp_test_and_clear_young() argument 573 if (pud_young(*pudp)) in pudp_test_and_clear_young() 575 (unsigned long *)pudp); in pudp_test_and_clear_young()
|