Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/arch/sh/include/asm/
A Dpgtable-3level.h43 return (pmd_t *)(unsigned long)pud_val(pud); in pud_pgtable()
48 #define pud_none(x) (!pud_val(x))
49 #define pud_present(x) (pud_val(x))
51 #define pud_bad(x) (pud_val(x) & ~PAGE_MASK)
/linux-6.3-rc2/arch/um/include/asm/
A 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)
77 #define pud_page(pud) phys_to_page(pud_val(pud) & PAGE_MASK)
78 #define pud_pgtable(pud) ((pmd_t *) __va(pud_val(pud) & PAGE_MASK))
/linux-6.3-rc2/arch/mips/include/asm/
A 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.3-rc2/arch/riscv/include/asm/
A 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.3-rc2/arch/arc/include/asm/
A 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.3-rc2/arch/m68k/include/asm/
A Dmotorola_pgtable.h103 pud_val(*pudp) = _PAGE_TABLE | _PAGE_ACCESSED | __pa(pmdp); in pud_set()
108 #define pud_pgtable(pud) ((pmd_t *)__va(pud_val(pud) & _TABLE_MASK))
133 #define pud_none(pud) (!pud_val(pud))
134 #define pud_bad(pud) ((pud_val(pud) & _DESCTYPE_MASK) != _PAGE_TABLE)
135 #define pud_present(pud) (pud_val(pud) & _PAGE_TABLE)
136 #define pud_clear(pudp) ({ pud_val(*pudp) = 0; })
137 #define pud_page(pud) (mem_map + ((unsigned long)(__va(pud_val(pud)) - PAGE_OFFSET) >> PAGE_SHIFT))
/linux-6.3-rc2/arch/alpha/include/asm/
A Dpgtable.h213 { pud_val(*pudp) = _PAGE_TABLE | ((((unsigned long) pmdp) - PAGE_OFFSET) << (32-PAGE_SHIFT)); } in pud_set()
224 #define pud_page(pud) (pfn_to_page(pud_val(pud) >> 32))
228 return (pmd_t *)(PAGE_OFFSET + ((pud_val(pgd) & _PFN_MASK) >> (32-PAGE_SHIFT))); in pud_pgtable()
243 extern inline int pud_none(pud_t pud) { return !pud_val(pud); } in pud_none()
244 extern inline int pud_bad(pud_t pud) { return (pud_val(pud) & ~_PFN_MASK) != _PAGE_TABLE; } in pud_bad()
245 extern inline int pud_present(pud_t pud) { return pud_val(pud) & _PAGE_VALID; } in pud_present()
246 extern inline void pud_clear(pud_t * pudp) { pud_val(*pudp) = 0; } in pud_clear()
/linux-6.3-rc2/arch/powerpc/include/asm/nohash/64/
A 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.3-rc2/arch/loongarch/include/asm/
A Dpgtable.h104 pr_err("%s:%d: bad pud %016lx.\n", __FILE__, __LINE__, pud_val(e))
114 #define pud_val(x) ((x).pud) macro
170 return pud_val(pud) == (unsigned long)invalid_pmd_table; in pud_none()
175 return pud_val(pud) & ~PAGE_MASK; in pud_bad()
180 return pud_val(pud) != (unsigned long)invalid_pmd_table; in pud_present()
185 pud_val(*pudp) = ((unsigned long)invalid_pmd_table); in pud_clear()
190 return (pmd_t *)pud_val(pud); in pud_pgtable()
195 #define pud_phys(pud) PHYSADDR(pud_val(pud))
/linux-6.3-rc2/arch/ia64/include/asm/
A Dpgtable.h169 #define pud_ERROR(e) printk("%s:%d: bad pud %016lx.\n", __FILE__, __LINE__, pud_val(e))
242 #define pud_none(pud) (!pud_val(pud))
243 #define pud_bad(pud) (!ia64_phys_addr_valid(pud_val(pud)))
244 #define pud_present(pud) (pud_val(pud) != 0UL)
245 #define pud_clear(pudp) (pud_val(*(pudp)) = 0UL)
246 #define pud_pgtable(pud) ((pmd_t *) __va(pud_val(pud) & _PFN_MASK))
247 #define pud_page(pud) virt_to_page((pud_val(pud) + PAGE_OFFSET))
A Dpgalloc.h45 pud_val(*pud_entry) = __pa(pmd); in pud_populate()
/linux-6.3-rc2/arch/sparc/include/asm/
A 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()
A Dpgtable_64.h103 __FILE__, __LINE__, &(e), pud_val(e), __builtin_return_address(0))
400 return !!(pud_val(pud) & _PAGE_PUD_HUGE); in is_hugetlb_pud()
689 #define pud_write(pud) pte_write(__pte(pud_val(pud)))
791 #define pud_none(pud) (!pud_val(pud))
793 #define pud_bad(pud) (pud_val(pud) & ~PAGE_MASK)
818 (pud_val(*(pudp)) = (__pa((unsigned long) (pmdp))))
831 pte_t pte = __pte(pud_val(pud)); in pud_pgtable()
842 #define pud_present(pud) (pud_val(pud) != 0U)
843 #define pud_clear(pudp) (pud_val(*(pudp)) = 0UL)
855 pte_t pte = __pte(pud_val(pud)); in pud_large()
[all …]
A Dpage_64.h79 #define pud_val(x) ((x).pud) macro
102 #define pud_val(x) (x) macro
/linux-6.3-rc2/arch/arm/include/asm/
A Dpgtable-3level.h114 #define pud_none(pud) (!pud_val(pud))
115 #define pud_bad(pud) (!(pud_val(pud) & 2))
116 #define pud_present(pud) (pud_val(pud))
138 return __va(pud_val(pud) & PHYS_MASK & (s32)PAGE_MASK); in pud_pgtable()
/linux-6.3-rc2/arch/s390/include/asm/
A Dpgtable.h563 return __pud(pud_val(pud) & ~pgprot_val(prot)); in clear_pud_bit()
568 return __pud(pud_val(pud) | pgprot_val(prot)); in set_pud_bit()
701 return (pud_val(pud) & _REGION_ENTRY_ORIGIN) != 0UL; in pud_present()
708 return pud_val(pud) == _REGION3_ENTRY_EMPTY; in pud_none()
716 return !!(pud_val(pud) & _REGION3_ENTRY_LARGE); in pud_large()
734 unsigned long type = pud_val(pud) & _REGION_ENTRY_TYPE_MASK; in pud_bad()
740 return (pud_val(pud) & ~_REGION_ENTRY_BITS) != 0; in pud_bad()
773 return (pud_val(pud) & _REGION3_ENTRY_WRITE) != 0; in pud_write()
1389 return (unsigned long)__va(pud_val(pud) & origin_mask); in pud_deref()
1520 if (pud_val(pud) & _REGION3_ENTRY_DIRTY) in pud_mkwrite()
[all …]
/linux-6.3-rc2/arch/s390/mm/
A 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.3-rc2/arch/x86/include/asm/
A 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()
857 return (pmd_t *)__va(pud_val(pud) & pud_pfn_mask(pud)); in pud_pgtable()
869 return (pud_val(pud) & (_PAGE_PSE | _PAGE_PRESENT)) == in pud_large()
1438 return __pte_access_permitted(pud_val(pud), write); in pud_access_permitted()
1476 return pud_leaf(pud) && (pud_val(pud) & _PAGE_PRESENT) && (pud_val(pud) & _PAGE_USER); in pud_user_accessible_page()
/linux-6.3-rc2/mm/
A 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.3-rc2/arch/arm64/include/asm/
A Dpgtable.h391 return __pte(pud_val(pud)); in pud_pte()
401 return __pmd(pud_val(pud)); in pud_pmd()
527 #define pud_mkhuge(pud) (__pud(pud_val(pud) & ~PUD_TABLE_BIT))
605 #define pud_sect(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \
607 #define pud_table(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \
681 #define pud_none(pud) (!pud_val(pud))
693 set_swapper_pgd((pgd_t *)pudp, __pgd(pud_val(pud))); in set_pud()
750 pr_err("%s:%d: bad pud %016llx.\n", __FILE__, __LINE__, pud_val(e))
A Dpgtable-types.h35 #define pud_val(x) ((x).pud) macro
/linux-6.3-rc2/arch/mips/mm/
A Dhugetlbpage.c68 return (pud_val(pud) & _PAGE_HUGE) != 0; in pud_huge()
/linux-6.3-rc2/include/asm-generic/
A Dpgtable-nopud.h48 #define pud_val(x) (p4d_val((x).p4d)) macro
/linux-6.3-rc2/arch/x86/mm/
A 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.3-rc2/arch/parisc/include/asm/
A Dpgtable.h292 #define pud_flag(x) (pud_val(x) & PxD_FLAG_MASK)
293 #define pud_address(x) ((unsigned long)(pud_val(x) &~ PxD_FLAG_MASK) << PxD_VALUE_SHIFT)
312 #define pud_none(x) (!pud_val(x))

Completed in 74 milliseconds

123