/kernel/linux/linux-5.10/arch/riscv/include/asm/ |
D | pgtable-64.h | 33 return (pud_val(pud) & _PAGE_PRESENT); in pud_present() 38 return (pud_val(pud) == 0); in pud_none() 50 (pud_val(pud) & (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)); in pud_leaf() 65 return (unsigned long)pfn_to_virt(pud_val(pud) >> _PAGE_PFN_SHIFT); in pud_page_vaddr() 70 return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT); in pud_page()
|
/kernel/linux/linux-5.10/arch/um/include/asm/ |
D | pgtable-3level.h | 56 #define pud_none(x) (!(pud_val(x) & ~_PAGE_NEWPAGE)) 57 #define pud_bad(x) ((pud_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) 58 #define pud_present(x) (pud_val(x) & _PAGE_PRESENT) 63 #define set_pud(pudptr, pudval) set_64bit((u64 *) (pudptr), pud_val(pudval)) 86 #define pud_page(pud) phys_to_page(pud_val(pud) & PAGE_MASK) 87 #define pud_page_vaddr(pud) ((unsigned long) __va(pud_val(pud) & PAGE_MASK))
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
D | pgtable-3level.h | 37 return pud_val(pud); in pud_page_vaddr() 42 #define pud_none(x) (!pud_val(x)) 43 #define pud_present(x) (pud_val(x)) 45 #define pud_bad(x) (pud_val(x) & ~PAGE_MASK)
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
D | pgtable-64.h | 168 printk("%s:%d: bad pud %016lx.\n", __FILE__, __LINE__, pud_val(e)) 182 #define pud_val(x) ((x).pud) macro 286 return pud_val(pud) == (unsigned long) invalid_pmd_table; in pud_none() 291 return pud_val(pud) & ~PAGE_MASK; in pud_bad() 296 return pud_val(pud) != (unsigned long) invalid_pmd_table; in pud_present() 301 pud_val(*pudp) = ((unsigned long) invalid_pmd_table); in pud_clear() 319 return pud_val(pud); in pud_page_vaddr() 321 #define pud_phys(pud) virt_to_phys((void *)pud_val(pud))
|
/kernel/linux/linux-5.10/arch/m68k/include/asm/ |
D | motorola_pgtable.h | 127 pud_val(*pudp) = _PAGE_TABLE | _PAGE_ACCESSED | __pa(pmdp); in pud_set() 132 #define pud_page_vaddr(pud) ((unsigned long)__va(pud_val(pud) & _TABLE_MASK)) 156 #define pud_none(pud) (!pud_val(pud)) 157 #define pud_bad(pud) ((pud_val(pud) & _DESCTYPE_MASK) != _PAGE_TABLE) 158 #define pud_present(pud) (pud_val(pud) & _PAGE_TABLE) 159 #define pud_clear(pudp) ({ pud_val(*pudp) = 0; }) 160 #define pud_page(pud) (mem_map + ((unsigned long)(__va(pud_val(pud)) - PAGE_OFFSET) >> PAGE_SHIFT))
|
/kernel/linux/linux-5.10/arch/arm/include/asm/ |
D | pgtable-3level.h | 111 #define pud_none(pud) (!pud_val(pud)) 112 #define pud_bad(pud) (!(pud_val(pud) & 2)) 113 #define pud_present(pud) (pud_val(pud)) 135 return __va(pud_val(pud) & PHYS_MASK & (s32)PAGE_MASK); in pud_page_vaddr() 189 #define pud_page(pud) pmd_page(__pmd(pud_val(pud))) 190 #define pud_write(pud) pmd_write(__pmd(pud_val(pud)))
|
/kernel/linux/linux-5.10/arch/alpha/include/asm/ |
D | pgtable.h | 230 { pud_val(*pudp) = _PAGE_TABLE | ((((unsigned long) pmdp) - PAGE_OFFSET) << (32-PAGE_SHIFT)); } in pud_set() 241 #define pud_page(pud) (mem_map + ((pud_val(pud) & _PFN_MASK) >> 32)) 245 { return PAGE_OFFSET + ((pud_val(pgd) & _PFN_MASK) >> (32-PAGE_SHIFT)); } in pud_page_vaddr() 259 extern inline int pud_none(pud_t pud) { return !pud_val(pud); } in pud_none() 260 extern inline int pud_bad(pud_t pud) { return (pud_val(pud) & ~_PFN_MASK) != _PAGE_TABLE; } in pud_bad() 261 extern inline int pud_present(pud_t pud) { return pud_val(pud) & _PAGE_VALID; } in pud_present() 262 extern inline void pud_clear(pud_t * pudp) { pud_val(*pudp) = 0; } in pud_clear()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/64/ |
D | pgtable.h | 163 #define pud_none(pud) (!pud_val(pud)) 164 #define pud_bad(pud) (!is_kernel_addr(pud_val(pud)) \ 165 || (pud_val(pud) & PUD_BAD_BITS)) 166 #define pud_present(pud) (pud_val(pud) != 0) 167 #define pud_page_vaddr(pud) (pud_val(pud) & ~PUD_MASKED_BITS) 173 return __pte(pud_val(pud)); in pud_pte()
|
D | pgtable-4k.h | 82 pr_err("%s:%d: bad pud %08lx.\n", __FILE__, __LINE__, pud_val(e))
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
D | pgtable.h | 74 printk("%s:%d: bad pud %p.\n", __FILE__, __LINE__, (void *) pud_val(e)) 670 return (pud_val(pud) & _REGION_ENTRY_TYPE_MASK) < _REGION_ENTRY_TYPE_R3; in pud_folded() 677 return (pud_val(pud) & _REGION_ENTRY_ORIGIN) != 0UL; in pud_present() 684 return pud_val(pud) == _REGION3_ENTRY_EMPTY; in pud_none() 690 if ((pud_val(pud) & _REGION_ENTRY_TYPE_MASK) != _REGION_ENTRY_TYPE_R3) in pud_large() 692 return !!(pud_val(pud) & _REGION3_ENTRY_LARGE); in pud_large() 710 unsigned long type = pud_val(pud) & _REGION_ENTRY_TYPE_MASK; in pud_bad() 716 return (pud_val(pud) & ~_REGION_ENTRY_BITS) != 0; in pud_bad() 749 return (pud_val(pud) & _REGION3_ENTRY_WRITE) != 0; in pud_write() 904 if ((pud_val(*pud) & _REGION_ENTRY_TYPE_MASK) == _REGION_ENTRY_TYPE_R3) in pud_clear() [all …]
|
/kernel/linux/linux-5.10/arch/s390/mm/ |
D | pageattr.c | 197 ro = !!(pud_val(*pudp) & _REGION_ENTRY_PROTECT); in split_pud_page() 198 nx = !!(pud_val(*pudp) & _REGION_ENTRY_NOEXEC); in split_pud_page() 208 pud_val(new) = __pa(pm_dir) | _REGION3_ENTRY; in split_pud_page() 209 pgt_set((unsigned long *)pudp, pud_val(new), addr, CRDTE_DTT_REGION3); in split_pud_page() 225 pud_val(new) |= _REGION_ENTRY_NOEXEC; in modify_pud_page() 227 pud_val(new) &= ~_REGION_ENTRY_NOEXEC; in modify_pud_page() 228 pgt_set((unsigned long *)pudp, pud_val(new), addr, CRDTE_DTT_REGION3); in modify_pud_page()
|
/kernel/linux/linux-5.10/arch/ia64/include/asm/ |
D | pgtable.h | 185 #define pud_ERROR(e) printk("%s:%d: bad pud %016lx.\n", __FILE__, __LINE__, pud_val(e)) 278 #define pud_none(pud) (!pud_val(pud)) 279 #define pud_bad(pud) (!ia64_phys_addr_valid(pud_val(pud))) 280 #define pud_present(pud) (pud_val(pud) != 0UL) 281 #define pud_clear(pudp) (pud_val(*(pudp)) = 0UL) 282 #define pud_page_vaddr(pud) ((unsigned long) __va(pud_val(pud) & _PFN_MASK)) 283 #define pud_page(pud) virt_to_page((pud_val(pud) + PAGE_OFFSET))
|
D | pgalloc.h | 45 pud_val(*pud_entry) = __pa(pmd); in pud_populate()
|
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
D | pgtable_64.h | 106 __FILE__, __LINE__, &(e), pud_val(e), __builtin_return_address(0)) 420 return !!(pud_val(pud) & _PAGE_PUD_HUGE); in is_hugetlb_pud() 709 #define pud_write(pud) pte_write(__pte(pud_val(pud))) 810 #define pud_none(pud) (!pud_val(pud)) 812 #define pud_bad(pud) (pud_val(pud) & ~PAGE_MASK) 837 (pud_val(*(pudp)) = (__pa((unsigned long) (pmdp)))) 850 pte_t pte = __pte(pud_val(pud)); in pud_page_vaddr() 861 #define pud_present(pud) (pud_val(pud) != 0U) 862 #define pud_clear(pudp) (pud_val(*(pudp)) = 0UL) 874 pte_t pte = __pte(pud_val(pud)); in pud_large() [all …]
|
D | pgtable_32.h | 157 if (srmmu_device_memory(pud_val(pud))) { in pud_page_vaddr() 160 unsigned long v = pud_val(pud) & SRMMU_PTD_PMASK; in pud_page_vaddr() 207 return !(pud_val(pud) & 0xFFFFFFF); in pud_none() 212 return (pud_val(pud) & SRMMU_ET_MASK) != SRMMU_ET_PTD; in pud_bad() 217 return ((pud_val(pud) & SRMMU_ET_MASK) == SRMMU_ET_PTD); in pud_present()
|
D | page_64.h | 79 #define pud_val(x) ((x).pud) macro 102 #define pud_val(x) (x) macro
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
D | pgtable.h | 355 return __pte(pud_val(pud)); in pud_pte() 365 return __pmd(pud_val(pud)); in pud_pmd() 463 #define pud_mkhuge(pud) (__pud(pud_val(pud) & ~PUD_TABLE_BIT)) 527 #define pud_sect(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \ 529 #define pud_table(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \ 604 #define pud_none(pud) (!pud_val(pud)) 605 #define pud_bad(pud) (!(pud_val(pud) & PUD_TABLE_BIT)) 614 set_swapper_pgd((pgd_t *)pudp, __pgd(pud_val(pud))); in set_pud() 670 pr_err("%s:%d: bad pud %016llx.\n", __FILE__, __LINE__, pud_val(e))
|
D | pgtable-types.h | 35 #define pud_val(x) ((x).pud) macro
|
/kernel/linux/linux-5.10/mm/ |
D | ptdump.c | 80 st->effective_prot(st, 2, pud_val(val)); in ptdump_pud_entry() 83 st->note_page(st, addr, 2, pud_val(val)); in ptdump_pud_entry()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | pgtable.h | 105 #define pud_val(x) native_pud_val(x) macro 228 phys_addr_t pfn = pud_val(pud); in pud_pfn() 268 return (pud_val(pud) & (_PAGE_PSE|_PAGE_DEVMAP)) == _PAGE_PSE; in pud_trans_huge() 287 return !!(pud_val(pud) & _PAGE_DEVMAP); in pud_devmap() 870 return (unsigned long)__va(pud_val(pud) & pud_pfn_mask(pud)); in pud_page_vaddr() 882 return (pud_val(pud) & (_PAGE_PSE | _PAGE_PRESENT)) == in pud_large() 1444 return __pte_access_permitted(pud_val(pud), write); in pud_access_permitted()
|
/kernel/linux/linux-5.10/include/asm-generic/ |
D | pgtable-nopud.h | 48 #define pud_val(x) (p4d_val((x).p4d)) macro
|
D | pgtable-nopmd.h | 50 #define pmd_val(x) (pud_val((x).pud))
|
/kernel/linux/linux-5.10/arch/mips/mm/ |
D | hugetlbpage.c | 80 return (pud_val(pud) & _PAGE_HUGE) != 0; in pud_huge()
|
/kernel/linux/linux-5.10/arch/x86/mm/ |
D | kasan_init_64.c | 296 pudval_t pud_val = __pa_nodebug(kasan_early_shadow_pmd) | _KERNPG_TABLE; in kasan_early_init() local 302 pud_val &= __default_kernel_pte_mask; in kasan_early_init() 312 kasan_early_shadow_pud[i] = __pud(pud_val); in kasan_early_init()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | pgtable-types.h | 29 static inline unsigned long pud_val(pud_t x) in pud_val() function
|