Home
last modified time | relevance | path

Searched refs:p4d_val (Results 1 – 25 of 33) sorted by relevance

12

/arch/powerpc/include/asm/nohash/64/
Dpgtable-4k.h56 #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()
/arch/arc/include/asm/
Dpgtable-levels.h110 #define p4d_none(x) (!p4d_val(x))
111 #define p4d_bad(x) ((p4d_val(x) & ~PAGE_MASK))
112 #define p4d_present(x) (p4d_val(x))
113 #define p4d_clear(xp) do { p4d_val(*(xp)) = 0; } while (0)
114 #define p4d_pgtable(p4d) ((pud_t *)(p4d_val(p4d) & PAGE_MASK))
/arch/mips/include/asm/
Dpgtable-64.h191 return p4d_val(p4d) == (unsigned long)invalid_pud_table; in p4d_none()
196 if (unlikely(p4d_val(p4d) & ~PAGE_MASK)) in p4d_bad()
204 return p4d_val(p4d) != (unsigned long)invalid_pud_table; in p4d_present()
209 p4d_val(*p4dp) = (unsigned long)invalid_pud_table; in p4d_clear()
214 return (pud_t *)p4d_val(p4d); in p4d_pgtable()
217 #define p4d_phys(p4d) virt_to_phys((void *)p4d_val(p4d))
/arch/ia64/include/asm/
Dpgtable.h280 #define p4d_none(p4d) (!p4d_val(p4d))
281 #define p4d_bad(p4d) (!ia64_phys_addr_valid(p4d_val(p4d)))
282 #define p4d_present(p4d) (p4d_val(p4d) != 0UL)
283 #define p4d_clear(p4dp) (p4d_val(*(p4dp)) = 0UL)
284 #define p4d_pgtable(p4d) ((pud_t *) __va(p4d_val(p4d) & _PFN_MASK))
285 #define p4d_page(p4d) virt_to_page((p4d_val(p4d) + PAGE_OFFSET))
Dpgalloc.h36 p4d_val(*p4d_entry) = __pa(pud); in p4d_populate()
/arch/s390/include/asm/
Dpgtable.h76 pr_err("%s:%d: bad p4d %016lx.\n", __FILE__, __LINE__, p4d_val(e))
637 return (p4d_val(p4d) & _REGION_ENTRY_TYPE_MASK) < _REGION_ENTRY_TYPE_R2; in p4d_folded()
644 return (p4d_val(p4d) & _REGION_ENTRY_ORIGIN) != 0UL; in p4d_present()
651 return p4d_val(p4d) == _REGION2_ENTRY_EMPTY; in p4d_none()
659 return (p4d_val(p4d) & origin_mask) >> PAGE_SHIFT; in p4d_pfn()
715 unsigned long type = p4d_val(p4d) & _REGION_ENTRY_TYPE_MASK; in p4d_bad()
721 return (p4d_val(p4d) & ~_REGION_ENTRY_BITS) != 0; in p4d_bad()
893 if ((p4d_val(*p4d) & _REGION_ENTRY_TYPE_MASK) == _REGION_ENTRY_TYPE_R2) in p4d_clear()
894 p4d_val(*p4d) = _REGION2_ENTRY_EMPTY; in p4d_clear()
1235 #define p4d_deref(pud) ((unsigned long)__va(p4d_val(pud) & _REGION_ENTRY_ORIGIN))
[all …]
Dpgalloc.h111 p4d_val(*p4d) = _REGION2_ENTRY | __pa(pud); in p4d_populate()
Dpage.h96 #define p4d_val(x) ((x).p4d) macro
/arch/x86/mm/
Dkasan_init_64.c295 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()
/arch/sparc/include/asm/
Dpgtable_64.h811 #define p4d_none(p4d) (!p4d_val(p4d))
813 #define p4d_bad(p4d) (p4d_val(p4d) & ~PAGE_MASK)
861 ((pud_t *) __va(p4d_val(p4d)))
862 #define p4d_present(p4d) (p4d_val(p4d) != 0U)
863 #define p4d_clear(p4dp) (p4d_val(*(p4dp)) = 0UL)
887 (p4d_val(*(p4dp)) = (__pa((unsigned long) (pudp))))
/arch/um/include/asm/
Dpgtable.h109 #define p4d_newpage(x) (p4d_val(x) & _PAGE_NEWPAGE)
110 #define p4d_mkuptodate(x) (p4d_val(x) &= ~_PAGE_NEWPAGE)
/arch/x86/power/
Dhibernate.c169 set_p4d(p4d, __p4d(p4d_val(*p4d) & ~_PAGE_NX)); in relocate_restore_code()
/arch/arm64/include/asm/
Dpgtable.h370 return __pte(p4d_val(p4d)); in p4d_pte()
710 #define p4d_none(p4d) (!p4d_val(p4d))
711 #define p4d_bad(p4d) (!(p4d_val(p4d) & 2))
712 #define p4d_present(p4d) (p4d_val(p4d))
717 set_swapper_pgd((pgd_t *)p4dp, __pgd(p4d_val(p4d))); in set_p4d()
/arch/powerpc/include/asm/book3s/64/
Dhash.h139 return (p4d_val(p4d) == 0); in hash__p4d_bad()
Dradix.h250 return !!(p4d_val(p4d) & RADIX_P4D_BAD_BITS); in radix__p4d_bad()
/arch/x86/include/asm/
Dpgtable_64.h47 __FILE__, __LINE__, &(e), p4d_val(e))
Dparavirt.h500 static inline p4dval_t p4d_val(p4d_t p4d) in p4d_val() function
502 return PVOP_ALT_CALLEE1(p4dval_t, mmu.p4d_val, p4d.p4d, in p4d_val()
Dpgtable.h100 #define p4d_val(x) native_p4d_val(x) macro
207 return (p4d_val(p4d) & p4d_pfn_mask(p4d)) >> PAGE_SHIFT; in p4d_pfn()
884 return (pud_t *)__va(p4d_val(p4d) & p4d_pfn_mask(p4d)); in p4d_pgtable()
/arch/s390/mm/
Dpage-states.c154 page = phys_to_page(p4d_val(*p4d)); in mark_kernel_p4d()
Dkasan_init.c291 p4d_val(p4d_z)); in kasan_early_init()
/arch/riscv/mm/
Dpageattr.c47 val = __p4d(set_pageattr_masks(p4d_val(val), walk)); in pageattr_p4d_entry()
/arch/x86/entry/vsyscall/
Dvsyscall_64.c369 set_p4d(p4d, __p4d(p4d_val(*p4d) | _PAGE_USER)); in set_vsyscall_pgtable_user_bits()
/arch/x86/kernel/
Dparavirt.c318 .mmu.p4d_val = PTE_IDENT,
/arch/powerpc/mm/
Dpgtable.c392 if (is_hugepd(__hugepd(p4d_val(p4d)))) { in __find_linux_pte()
/arch/sh/mm/
Dfault.c72 (u64)p4d_val(*p4d)); in show_pte()

12