Home
last modified time | relevance | path

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

123

/linux-6.1.9/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))
/linux-6.1.9/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)
/linux-6.1.9/arch/mips/include/asm/
Dpgtable-64.h162 printk("%s:%d: bad pud %016lx.\n", __FILE__, __LINE__, pud_val(e))
176 #define pud_val(x) ((x).pud) macro
280 return pud_val(pud) == (unsigned long) invalid_pmd_table; in pud_none()
285 return pud_val(pud) & ~PAGE_MASK; in pud_bad()
290 return pud_val(pud) != (unsigned long) invalid_pmd_table; in pud_present()
295 pud_val(*pudp) = ((unsigned long) invalid_pmd_table); in pud_clear()
308 return (pmd_t *)pud_val(pud); in pud_pgtable()
310 #define pud_phys(pud) virt_to_phys((void *)pud_val(pud))
/linux-6.1.9/arch/riscv/include/asm/
Dpgtable-64.h60 #define pud_val(x) ((x).pud) macro
141 return (pud_val(pud) & _PAGE_PRESENT); in pud_present()
146 return (pud_val(pud) == 0); in pud_none()
157 return pud_present(pud) && (pud_val(pud) & _PAGE_LEAF); in pud_leaf()
162 return pud_val(pud) & _PAGE_USER; in pud_user()
182 return __page_val_to_pfn(pud_val(pud)); in _pud_pfn()
187 return (pmd_t *)pfn_to_virt(__page_val_to_pfn(pud_val(pud))); in pud_pgtable()
192 return pfn_to_page(__page_val_to_pfn(pud_val(pud))); in pud_page()
235 pr_err("%s:%d: bad pud %016lx.\n", __FILE__, __LINE__, pud_val(e))
/linux-6.1.9/arch/m68k/include/asm/
Dmotorola_pgtable.h100 pud_val(*pudp) = _PAGE_TABLE | _PAGE_ACCESSED | __pa(pmdp); in pud_set()
105 #define pud_pgtable(pud) ((pmd_t *)__va(pud_val(pud) & _TABLE_MASK))
130 #define pud_none(pud) (!pud_val(pud))
131 #define pud_bad(pud) ((pud_val(pud) & _DESCTYPE_MASK) != _PAGE_TABLE)
132 #define pud_present(pud) (pud_val(pud) & _PAGE_TABLE)
133 #define pud_clear(pudp) ({ pud_val(*pudp) = 0; })
134 #define pud_page(pud) (mem_map + ((unsigned long)(__va(pud_val(pud)) - PAGE_OFFSET) >> PAGE_SHIFT))
/linux-6.1.9/arch/arc/include/asm/
Dpgtable-levels.h119 pr_crit("%s:%d: bad pud %08lx.\n", __FILE__, __LINE__, pud_val(e))
129 #define pud_none(x) (!pud_val(x))
130 #define pud_bad(x) ((pud_val(x) & ~PAGE_MASK))
131 #define pud_present(x) (pud_val(x))
132 #define pud_clear(xp) do { pud_val(*(xp)) = 0; } while (0)
133 #define pud_pgtable(pud) ((pmd_t *)(pud_val(pud) & PAGE_MASK))
/linux-6.1.9/arch/alpha/include/asm/
Dpgtable.h210 { pud_val(*pudp) = _PAGE_TABLE | ((((unsigned long) pmdp) - PAGE_OFFSET) << (32-PAGE_SHIFT)); } in pud_set()
221 #define pud_page(pud) (pfn_to_page(pud_val(pud) >> 32))
225 return (pmd_t *)(PAGE_OFFSET + ((pud_val(pgd) & _PFN_MASK) >> (32-PAGE_SHIFT))); in pud_pgtable()
240 extern inline int pud_none(pud_t pud) { return !pud_val(pud); } in pud_none()
241 extern inline int pud_bad(pud_t pud) { return (pud_val(pud) & ~_PFN_MASK) != _PAGE_TABLE; } in pud_bad()
242 extern inline int pud_present(pud_t pud) { return pud_val(pud) & _PAGE_VALID; } in pud_present()
243 extern inline void pud_clear(pud_t * pudp) { pud_val(*pudp) = 0; } in pud_clear()
/linux-6.1.9/arch/powerpc/include/asm/nohash/64/
Dpgtable.h144 #define pud_none(pud) (!pud_val(pud))
145 #define pud_bad(pud) (!is_kernel_addr(pud_val(pud)) \
146 || (pud_val(pud) & PUD_BAD_BITS))
147 #define pud_present(pud) (pud_val(pud) != 0)
151 return (pmd_t *)(pud_val(pud) & ~PUD_MASKED_BITS); in pud_pgtable()
158 return __pte(pud_val(pud)); in pud_pte()
/linux-6.1.9/arch/loongarch/include/asm/
Dpgtable.h99 pr_err("%s:%d: bad pud %016lx.\n", __FILE__, __LINE__, pud_val(e))
109 #define pud_val(x) ((x).pud) macro
165 return pud_val(pud) == (unsigned long)invalid_pmd_table; in pud_none()
170 return pud_val(pud) & ~PAGE_MASK; in pud_bad()
175 return pud_val(pud) != (unsigned long)invalid_pmd_table; in pud_present()
180 pud_val(*pudp) = ((unsigned long)invalid_pmd_table); in pud_clear()
185 return (pmd_t *)pud_val(pud); in pud_pgtable()
190 #define pud_phys(pud) PHYSADDR(pud_val(pud))
/linux-6.1.9/arch/ia64/include/asm/
Dpgtable.h166 #define pud_ERROR(e) printk("%s:%d: bad pud %016lx.\n", __FILE__, __LINE__, pud_val(e))
255 #define pud_none(pud) (!pud_val(pud))
256 #define pud_bad(pud) (!ia64_phys_addr_valid(pud_val(pud)))
257 #define pud_present(pud) (pud_val(pud) != 0UL)
258 #define pud_clear(pudp) (pud_val(*(pudp)) = 0UL)
259 #define pud_pgtable(pud) ((pmd_t *) __va(pud_val(pud) & _PFN_MASK))
260 #define pud_page(pud) virt_to_page((pud_val(pud) + PAGE_OFFSET))
Dpgalloc.h45 pud_val(*pud_entry) = __pa(pmd); in pud_populate()
/linux-6.1.9/arch/sparc/include/asm/
Dpgtable_64.h103 __FILE__, __LINE__, &(e), pud_val(e), __builtin_return_address(0))
397 return !!(pud_val(pud) & _PAGE_PUD_HUGE); in is_hugetlb_pud()
686 #define pud_write(pud) pte_write(__pte(pud_val(pud)))
788 #define pud_none(pud) (!pud_val(pud))
790 #define pud_bad(pud) (pud_val(pud) & ~PAGE_MASK)
815 (pud_val(*(pudp)) = (__pa((unsigned long) (pmdp))))
828 pte_t pte = __pte(pud_val(pud)); in pud_pgtable()
839 #define pud_present(pud) (pud_val(pud) != 0U)
840 #define pud_clear(pudp) (pud_val(*(pudp)) = 0UL)
852 pte_t pte = __pte(pud_val(pud)); in pud_large()
[all …]
Dpgtable_32.h142 if (srmmu_device_memory(pud_val(pud))) { in pud_pgtable()
145 unsigned long v = pud_val(pud) & SRMMU_PTD_PMASK; in pud_pgtable()
192 return !(pud_val(pud) & 0xFFFFFFF); in pud_none()
197 return (pud_val(pud) & SRMMU_ET_MASK) != SRMMU_ET_PTD; in pud_bad()
202 return ((pud_val(pud) & SRMMU_ET_MASK) == SRMMU_ET_PTD); in pud_present()
Dpage_64.h79 #define pud_val(x) ((x).pud) macro
102 #define pud_val(x) (x) macro
/linux-6.1.9/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()
/linux-6.1.9/arch/s390/include/asm/
Dpgtable.h74 pr_err("%s:%d: bad pud %016lx.\n", __FILE__, __LINE__, pud_val(e))
548 return __pud(pud_val(pud) & ~pgprot_val(prot)); in clear_pud_bit()
553 return __pud(pud_val(pud) | pgprot_val(prot)); in set_pud_bit()
679 return (pud_val(pud) & _REGION_ENTRY_TYPE_MASK) < _REGION_ENTRY_TYPE_R3; in pud_folded()
686 return (pud_val(pud) & _REGION_ENTRY_ORIGIN) != 0UL; in pud_present()
693 return pud_val(pud) == _REGION3_ENTRY_EMPTY; in pud_none()
699 if ((pud_val(pud) & _REGION_ENTRY_TYPE_MASK) != _REGION_ENTRY_TYPE_R3) in pud_large()
701 return !!(pud_val(pud) & _REGION3_ENTRY_LARGE); in pud_large()
719 unsigned long type = pud_val(pud) & _REGION_ENTRY_TYPE_MASK; in pud_bad()
725 return (pud_val(pud) & ~_REGION_ENTRY_BITS) != 0; in pud_bad()
[all …]
/linux-6.1.9/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()
216 pgt_set((unsigned long *)pudp, pud_val(new), addr, CRDTE_DTT_REGION3); in split_pud_page()
235 pgt_set((unsigned long *)pudp, pud_val(new), addr, CRDTE_DTT_REGION3); in modify_pud_page()
/linux-6.1.9/arch/x86/include/asm/
Dpgtable.h108 #define pud_val(x) native_pud_val(x) macro
203 phys_addr_t pfn = pud_val(pud); in pud_pfn()
243 return (pud_val(pud) & (_PAGE_PSE|_PAGE_DEVMAP)) == _PAGE_PSE; in pud_trans_huge()
262 return !!(pud_val(pud) & _PAGE_DEVMAP); in pud_devmap()
841 return (pmd_t *)__va(pud_val(pud) & pud_pfn_mask(pud)); in pud_pgtable()
853 return (pud_val(pud) & (_PAGE_PSE | _PAGE_PRESENT)) == in pud_large()
1425 return __pte_access_permitted(pud_val(pud), write); in pud_access_permitted()
1463 return pud_leaf(pud) && (pud_val(pud) & _PAGE_PRESENT) && (pud_val(pud) & _PAGE_USER); in pud_user_accessible_page()
/linux-6.1.9/mm/
Dptdump.c87 st->effective_prot(st, 2, pud_val(val)); in ptdump_pud_entry()
90 st->note_page(st, addr, 2, pud_val(val)); in ptdump_pud_entry()
/linux-6.1.9/arch/arm64/include/asm/
Dpgtable.h387 return __pte(pud_val(pud)); in pud_pte()
397 return __pmd(pud_val(pud)); in pud_pmd()
524 #define pud_mkhuge(pud) (__pud(pud_val(pud) & ~PUD_TABLE_BIT))
602 #define pud_sect(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \
604 #define pud_table(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \
679 #define pud_none(pud) (!pud_val(pud))
691 set_swapper_pgd((pgd_t *)pudp, __pgd(pud_val(pud))); in set_pud()
747 pr_err("%s:%d: bad pud %016llx.\n", __FILE__, __LINE__, pud_val(e))
Dpgtable-types.h35 #define pud_val(x) ((x).pud) macro
/linux-6.1.9/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()
/linux-6.1.9/arch/mips/mm/
Dhugetlbpage.c68 return (pud_val(pud) & _PAGE_HUGE) != 0; in pud_huge()
/linux-6.1.9/include/asm-generic/
Dpgtable-nopud.h48 #define pud_val(x) (p4d_val((x).p4d)) macro
/linux-6.1.9/arch/parisc/include/asm/
Dpgtable.h304 #define pud_flag(x) (pud_val(x) & PxD_FLAG_MASK)
305 #define pud_address(x) ((unsigned long)(pud_val(x) &~ PxD_FLAG_MASK) << PxD_VALUE_SHIFT)
324 #define pud_none(x) (!pud_val(x))

123