/openbmc/linux/arch/powerpc/include/asm/nohash/64/ |
H A D | pgtable-4k.h | 56 #define p4d_none(p4d) (!p4d_val(p4d)) 57 #define p4d_bad(p4d) (p4d_val(p4d) == 0) 58 #define p4d_present(p4d) (p4d_val(p4d) != 0) 64 return (pud_t *) (p4d_val(p4d) & ~P4D_MASKED_BITS); in p4d_pgtable() 74 return __pte(p4d_val(p4d)); in p4d_pte()
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | pgtable-64.h | 51 #define p4d_val(x) ((x).p4d) macro 272 pr_err("%s:%d: bad p4d %016lx.\n", __FILE__, __LINE__, p4d_val(e)) 279 set_pud((pud_t *)p4dp, (pud_t){ p4d_val(p4d) }); in set_p4d() 285 return (p4d_val(p4d) == 0); in p4d_none() 293 return (p4d_val(p4d) & _PAGE_PRESENT); in p4d_present() 319 return __page_val_to_pfn(p4d_val(p4d)); in _p4d_pfn() 325 return (pud_t *)pfn_to_virt(__page_val_to_pfn(p4d_val(p4d))); in p4d_pgtable() 327 return (pud_t *)pud_pgtable((pud_t) { p4d_val(p4d) }); in p4d_pgtable() 333 return pfn_to_page(__page_val_to_pfn(p4d_val(p4d))); in p4d_page()
|
/openbmc/linux/arch/arc/include/asm/ |
H A D | pgtable-levels.h | 107 #define p4d_none(x) (!p4d_val(x)) 108 #define p4d_bad(x) ((p4d_val(x) & ~PAGE_MASK)) 109 #define p4d_present(x) (p4d_val(x)) 110 #define p4d_clear(xp) do { p4d_val(*(xp)) = 0; } while (0) 111 #define p4d_pgtable(p4d) ((pud_t *)(p4d_val(p4d) & PAGE_MASK))
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | pgtable-64.h | 186 return p4d_val(p4d) == (unsigned long)invalid_pud_table; in p4d_none() 191 if (unlikely(p4d_val(p4d) & ~PAGE_MASK)) in p4d_bad() 199 return p4d_val(p4d) != (unsigned long)invalid_pud_table; in p4d_present() 204 p4d_val(*p4dp) = (unsigned long)invalid_pud_table; in p4d_clear() 209 return (pud_t *)p4d_val(p4d); in p4d_pgtable() 212 #define p4d_phys(p4d) virt_to_phys((void *)p4d_val(p4d))
|
/openbmc/linux/arch/ia64/include/asm/ |
H A D | pgtable.h | 251 #define p4d_none(p4d) (!p4d_val(p4d)) 252 #define p4d_bad(p4d) (!ia64_phys_addr_valid(p4d_val(p4d))) 253 #define p4d_present(p4d) (p4d_val(p4d) != 0UL) 254 #define p4d_clear(p4dp) (p4d_val(*(p4dp)) = 0UL) 255 #define p4d_pgtable(p4d) ((pud_t *) __va(p4d_val(p4d) & _PFN_MASK)) 256 #define p4d_page(p4d) virt_to_page((p4d_val(p4d) + PAGE_OFFSET))
|
H A D | pgalloc.h | 36 p4d_val(*p4d_entry) = __pa(pud); in p4d_populate()
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A D | pgtable.h | 137 return p4d_val(p4d) == (unsigned long)invalid_pud_table; in p4d_none() 142 return p4d_val(p4d) & ~PAGE_MASK; in p4d_bad() 147 return p4d_val(p4d) != (unsigned long)invalid_pud_table; in p4d_present() 152 p4d_val(*p4dp) = (unsigned long)invalid_pud_table; in p4d_clear() 157 return (pud_t *)p4d_val(p4d); in p4d_pgtable() 165 #define p4d_phys(p4d) PHYSADDR(p4d_val(p4d))
|
/openbmc/linux/mm/ |
H A D | ptdump.c | 64 st->effective_prot(st, 1, p4d_val(val)); in ptdump_p4d_entry() 67 st->note_page(st, addr, 1, p4d_val(val)); in ptdump_p4d_entry()
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | pgtable.h | 75 pr_err("%s:%d: bad p4d %016lx.\n", __FILE__, __LINE__, p4d_val(e)) 673 return (p4d_val(p4d) & _REGION_ENTRY_TYPE_MASK) < _REGION_ENTRY_TYPE_R2; in p4d_folded() 680 return (p4d_val(p4d) & _REGION_ENTRY_ORIGIN) != 0UL; in p4d_present() 687 return p4d_val(p4d) == _REGION2_ENTRY_EMPTY; in p4d_none() 695 return (p4d_val(p4d) & origin_mask) >> PAGE_SHIFT; in p4d_pfn() 751 unsigned long type = p4d_val(p4d) & _REGION_ENTRY_TYPE_MASK; in p4d_bad() 757 return (p4d_val(p4d) & ~_REGION_ENTRY_BITS) != 0; in p4d_bad() 965 if ((p4d_val(*p4d) & _REGION_ENTRY_TYPE_MASK) == _REGION_ENTRY_TYPE_R2) in p4d_clear() 1386 #define p4d_deref(pud) ((unsigned long)__va(p4d_val(pud) & _REGION_ENTRY_ORIGIN)) 1459 if ((p4d_val(p4d) & _REGION_ENTRY_TYPE_MASK) >= _REGION_ENTRY_TYPE_R2) in pud_offset_lockless()
|
H A D | page.h | 110 static inline unsigned long p4d_val(p4d_t p4d) in p4d_val() function
|
/openbmc/linux/include/asm-generic/ |
H A D | pgtable-nop4d.h | 40 #define p4d_val(x) (pgd_val((x).pgd)) macro
|
H A D | pgtable-nopud.h | 48 #define pud_val(x) (p4d_val((x).p4d))
|
/openbmc/linux/arch/sparc/include/asm/ |
H A D | pgtable_64.h | 812 #define p4d_none(p4d) (!p4d_val(p4d)) 814 #define p4d_bad(p4d) (p4d_val(p4d) & ~PAGE_MASK) 862 ((pud_t *) __va(p4d_val(p4d))) 863 #define p4d_present(p4d) (p4d_val(p4d) != 0U) 864 #define p4d_clear(p4dp) (p4d_val(*(p4dp)) = 0UL) 888 (p4d_val(*(p4dp)) = (__pa((unsigned long) (pudp))))
|
/openbmc/linux/arch/x86/mm/ |
H A D | kasan_init_64.c | 295 p4dval_t p4d_val = __pa_nodebug(kasan_early_shadow_pud) | _KERNPG_TABLE; in kasan_early_init() local 301 p4d_val &= __default_kernel_pte_mask; in kasan_early_init() 313 kasan_early_shadow_p4d[i] = __p4d(p4d_val); in kasan_early_init()
|
/openbmc/linux/arch/um/include/asm/ |
H A D | pgtable.h | 95 #define p4d_newpage(x) (p4d_val(x) & _PAGE_NEWPAGE) 96 #define p4d_mkuptodate(x) (p4d_val(x) &= ~_PAGE_NEWPAGE)
|
/openbmc/linux/arch/loongarch/mm/ |
H A D | kasan_init.c | 19 #define __p4d_none(early, p4d) (early ? (p4d_val(p4d) == 0) : \ 20 (__pa(p4d_val(p4d)) == (unsigned long)__pa(kasan_early_shadow_pud)))
|
/openbmc/linux/arch/x86/power/ |
H A D | hibernate.c | 169 set_p4d(p4d, __p4d(p4d_val(*p4d) & ~_PAGE_NX)); in relocate_restore_code()
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | pgtable.h | 386 return __pte(p4d_val(p4d)); in p4d_pte() 752 #define p4d_none(p4d) (!p4d_val(p4d)) 753 #define p4d_bad(p4d) (!(p4d_val(p4d) & 2)) 754 #define p4d_present(p4d) (p4d_val(p4d)) 759 set_swapper_pgd((pgd_t *)p4dp, __pgd(p4d_val(p4d))); in set_p4d()
|
/openbmc/linux/arch/riscv/mm/ |
H A D | pageattr.c | 35 val = __p4d(set_pageattr_masks(p4d_val(val), walk)); in pageattr_p4d_entry() 203 pgprot_t prot = __pgprot(p4d_val(p4dp_get(p4dp)) & ~_PAGE_PFN_MASK); in __split_linear_mapping_p4d()
|
/openbmc/linux/arch/powerpc/include/asm/book3s/64/ |
H A D | hash.h | 153 return (p4d_val(p4d) == 0); in hash__p4d_bad()
|
H A D | radix.h | 260 return !!(p4d_val(p4d) & RADIX_P4D_BAD_BITS); in radix__p4d_bad()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | pgtable_64.h | 47 __FILE__, __LINE__, &(e), p4d_val(e))
|
/openbmc/linux/arch/s390/mm/ |
H A D | page-states.c | 144 page = phys_to_page(p4d_val(*p4d)); in mark_kernel_p4d()
|
/openbmc/linux/arch/x86/entry/vsyscall/ |
H A D | vsyscall_64.c | 345 set_p4d(p4d, __p4d(p4d_val(*p4d) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | paravirt.c | 276 .mmu.p4d_val = PTE_IDENT,
|