Home
last modified time | relevance | path

Searched refs:pud_val (Results 1 – 25 of 66) sorted by relevance

123

/arch/um/include/asm/
Dpgtable-3level.h55 #define pud_none(x) (!(pud_val(x) & ~_PAGE_NEWPAGE))
56 #define pud_bad(x) ((pud_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
57 #define pud_present(x) (pud_val(x) & _PAGE_PRESENT)
62 #define set_pud(pudptr, pudval) set_64bit((u64 *) (pudptr), pud_val(pudval))
85 #define pud_page(pud) phys_to_page(pud_val(pud) & PAGE_MASK)
86 #define pud_pgtable(pud) ((pmd_t *) __va(pud_val(pud) & PAGE_MASK))
/arch/riscv/include/asm/
Dpgtable-64.h33 return (pud_val(pud) & _PAGE_PRESENT); in pud_present()
38 return (pud_val(pud) == 0); in pud_none()
49 return pud_present(pud) && (pud_val(pud) & _PAGE_LEAF); in pud_leaf()
64 return (pmd_t *)pfn_to_virt(pud_val(pud) >> _PAGE_PFN_SHIFT); in pud_pgtable()
69 return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT); in pud_page()
/arch/sh/include/asm/
Dpgtable-3level.h37 return (pmd_t *)(unsigned long)pud_val(pud); in pud_pgtable()
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)
/arch/mips/include/asm/
Dpgtable-64.h167 printk("%s:%d: bad pud %016lx.\n", __FILE__, __LINE__, pud_val(e))
181 #define pud_val(x) ((x).pud) macro
285 return pud_val(pud) == (unsigned long) invalid_pmd_table; in pud_none()
290 return pud_val(pud) & ~PAGE_MASK; in pud_bad()
295 return pud_val(pud) != (unsigned long) invalid_pmd_table; in pud_present()
300 pud_val(*pudp) = ((unsigned long) invalid_pmd_table); in pud_clear()
318 return (pmd_t *)pud_val(pud); in pud_pgtable()
320 #define pud_phys(pud) virt_to_phys((void *)pud_val(pud))
/arch/arc/include/asm/
Dpgtable-levels.h122 pr_crit("%s:%d: bad pud %08lx.\n", __FILE__, __LINE__, pud_val(e))
132 #define pud_none(x) (!pud_val(x))
133 #define pud_bad(x) ((pud_val(x) & ~PAGE_MASK))
134 #define pud_present(x) (pud_val(x))
135 #define pud_clear(xp) do { pud_val(*(xp)) = 0; } while (0)
136 #define pud_pgtable(pud) ((pmd_t *)(pud_val(pud) & PAGE_MASK))
Dpage.h50 #define pud_val(x) ((x).pud) macro
/arch/m68k/include/asm/
Dmotorola_pgtable.h129 pud_val(*pudp) = _PAGE_TABLE | _PAGE_ACCESSED | __pa(pmdp); in pud_set()
134 #define pud_pgtable(pud) ((pmd_t *)__va(pud_val(pud) & _TABLE_MASK))
158 #define pud_none(pud) (!pud_val(pud))
159 #define pud_bad(pud) ((pud_val(pud) & _DESCTYPE_MASK) != _PAGE_TABLE)
160 #define pud_present(pud) (pud_val(pud) & _PAGE_TABLE)
161 #define pud_clear(pudp) ({ pud_val(*pudp) = 0; })
162 #define pud_page(pud) (mem_map + ((unsigned long)(__va(pud_val(pud)) - PAGE_OFFSET) >> PAGE_SHIFT))
/arch/powerpc/include/asm/nohash/64/
Dpgtable.h156 #define pud_none(pud) (!pud_val(pud))
157 #define pud_bad(pud) (!is_kernel_addr(pud_val(pud)) \
158 || (pud_val(pud) & PUD_BAD_BITS))
159 #define pud_present(pud) (pud_val(pud) != 0)
163 return (pmd_t *)(pud_val(pud) & ~PUD_MASKED_BITS); in pud_pgtable()
170 return __pte(pud_val(pud)); in pud_pte()
Dpgtable-4k.h86 pr_err("%s:%d: bad pud %08lx.\n", __FILE__, __LINE__, pud_val(e))
/arch/alpha/include/asm/
Dpgtable.h227 { pud_val(*pudp) = _PAGE_TABLE | ((((unsigned long) pmdp) - PAGE_OFFSET) << (32-PAGE_SHIFT)); } in pud_set()
237 #define pud_page(pud) (pfn_to_page(pud_val(pud) >> 32))
241 return (pmd_t *)(PAGE_OFFSET + ((pud_val(pgd) & _PFN_MASK) >> (32-PAGE_SHIFT))); in pud_pgtable()
256 extern inline int pud_none(pud_t pud) { return !pud_val(pud); } in pud_none()
257 extern inline int pud_bad(pud_t pud) { return (pud_val(pud) & ~_PFN_MASK) != _PAGE_TABLE; } in pud_bad()
258 extern inline int pud_present(pud_t pud) { return pud_val(pud) & _PAGE_VALID; } in pud_present()
259 extern inline void pud_clear(pud_t * pudp) { pud_val(*pudp) = 0; } in pud_clear()
/arch/s390/mm/
Dpageattr.c204 ro = !!(pud_val(*pudp) & _REGION_ENTRY_PROTECT); in split_pud_page()
205 nx = !!(pud_val(*pudp) & _REGION_ENTRY_NOEXEC); in split_pud_page()
215 pud_val(new) = __pa(pm_dir) | _REGION3_ENTRY; in split_pud_page()
216 pgt_set((unsigned long *)pudp, pud_val(new), addr, CRDTE_DTT_REGION3); in split_pud_page()
232 pud_val(new) |= _REGION_ENTRY_NOEXEC; in modify_pud_page()
234 pud_val(new) &= ~_REGION_ENTRY_NOEXEC; in modify_pud_page()
235 pgt_set((unsigned long *)pudp, pud_val(new), addr, CRDTE_DTT_REGION3); in modify_pud_page()
/arch/s390/include/asm/
Dpgtable.h74 pr_err("%s:%d: bad pud %016lx.\n", __FILE__, __LINE__, pud_val(e))
664 return (pud_val(pud) & _REGION_ENTRY_TYPE_MASK) < _REGION_ENTRY_TYPE_R3; in pud_folded()
671 return (pud_val(pud) & _REGION_ENTRY_ORIGIN) != 0UL; in pud_present()
678 return pud_val(pud) == _REGION3_ENTRY_EMPTY; in pud_none()
684 if ((pud_val(pud) & _REGION_ENTRY_TYPE_MASK) != _REGION_ENTRY_TYPE_R3) in pud_large()
686 return !!(pud_val(pud) & _REGION3_ENTRY_LARGE); in pud_large()
704 unsigned long type = pud_val(pud) & _REGION_ENTRY_TYPE_MASK; in pud_bad()
710 return (pud_val(pud) & ~_REGION_ENTRY_BITS) != 0; in pud_bad()
743 return (pud_val(pud) & _REGION3_ENTRY_WRITE) != 0; in pud_write()
899 if ((pud_val(*pud) & _REGION_ENTRY_TYPE_MASK) == _REGION_ENTRY_TYPE_R3) in pud_clear()
[all …]
/arch/ia64/include/asm/
Dpgtable.h184 #define pud_ERROR(e) printk("%s:%d: bad pud %016lx.\n", __FILE__, __LINE__, pud_val(e))
272 #define pud_none(pud) (!pud_val(pud))
273 #define pud_bad(pud) (!ia64_phys_addr_valid(pud_val(pud)))
274 #define pud_present(pud) (pud_val(pud) != 0UL)
275 #define pud_clear(pudp) (pud_val(*(pudp)) = 0UL)
276 #define pud_pgtable(pud) ((pmd_t *) __va(pud_val(pud) & _PFN_MASK))
277 #define pud_page(pud) virt_to_page((pud_val(pud) + PAGE_OFFSET))
Dpgalloc.h45 pud_val(*pud_entry) = __pa(pmd); in pud_populate()
/arch/sparc/include/asm/
Dpgtable_32.h156 if (srmmu_device_memory(pud_val(pud))) { in pud_pgtable()
159 unsigned long v = pud_val(pud) & SRMMU_PTD_PMASK; in pud_pgtable()
206 return !(pud_val(pud) & 0xFFFFFFF); in pud_none()
211 return (pud_val(pud) & SRMMU_ET_MASK) != SRMMU_ET_PTD; in pud_bad()
216 return ((pud_val(pud) & SRMMU_ET_MASK) == SRMMU_ET_PTD); in pud_present()
Dpgtable_64.h103 __FILE__, __LINE__, &(e), pud_val(e), __builtin_return_address(0))
416 return !!(pud_val(pud) & _PAGE_PUD_HUGE); in is_hugetlb_pud()
705 #define pud_write(pud) pte_write(__pte(pud_val(pud)))
807 #define pud_none(pud) (!pud_val(pud))
809 #define pud_bad(pud) (pud_val(pud) & ~PAGE_MASK)
834 (pud_val(*(pudp)) = (__pa((unsigned long) (pmdp))))
847 pte_t pte = __pte(pud_val(pud)); in pud_pgtable()
858 #define pud_present(pud) (pud_val(pud) != 0U)
859 #define pud_clear(pudp) (pud_val(*(pudp)) = 0UL)
871 pte_t pte = __pte(pud_val(pud)); in pud_large()
[all …]
Dpage_64.h79 #define pud_val(x) ((x).pud) macro
102 #define pud_val(x) (x) macro
/arch/arm/include/asm/
Dpgtable-3level.h111 #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_pgtable()
/arch/arm64/include/asm/
Dpgtable-types.h35 #define pud_val(x) ((x).pud) macro
Dandroid_erratum_pgtable.h56 WARN_ON(prot_needs_stage2_update(__pgprot(pud_val(pud)))); \
Dpgtable.h375 return __pte(pud_val(pud)); in pud_pte()
385 return __pmd(pud_val(pud)); in pud_pmd()
484 #define pud_mkhuge(pud) (__pud(pud_val(pud) & ~PUD_TABLE_BIT))
565 #define pud_sect(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \
567 #define pud_table(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \
642 #define pud_none(pud) (!pud_val(pud))
652 set_swapper_pgd((pgd_t *)pudp, __pgd(pud_val(pud))); in set_pud()
708 pr_err("%s:%d: bad pud %016llx.\n", __FILE__, __LINE__, pud_val(e))
/arch/mips/mm/
Dhugetlbpage.c68 return (pud_val(pud) & _PAGE_HUGE) != 0; in pud_huge()
/arch/powerpc/include/asm/
Dpgtable-types.h29 static inline unsigned long pud_val(pud_t x) in pud_val() function
/arch/x86/mm/
Dkasan_init_64.c294 pudval_t pud_val = __pa_nodebug(kasan_early_shadow_pmd) | _KERNPG_TABLE; in kasan_early_init() local
300 pud_val &= __default_kernel_pte_mask; in kasan_early_init()
310 kasan_early_shadow_pud[i] = __pud(pud_val); in kasan_early_init()
/arch/x86/include/asm/
Dpgtable.h105 #define pud_val(x) native_pud_val(x) macro
200 phys_addr_t pfn = pud_val(pud); in pud_pfn()
240 return (pud_val(pud) & (_PAGE_PSE|_PAGE_DEVMAP)) == _PAGE_PSE; in pud_trans_huge()
259 return !!(pud_val(pud) & _PAGE_DEVMAP); in pud_devmap()
843 return (pmd_t *)__va(pud_val(pud) & pud_pfn_mask(pud)); in pud_pgtable()
855 return (pud_val(pud) & (_PAGE_PSE | _PAGE_PRESENT)) == in pud_large()
1391 return __pte_access_permitted(pud_val(pud), write); in pud_access_permitted()

123