/arch/arm/include/asm/ |
D | pgtable-3level.h | 114 #define pmd_table(pmd) ((pmd_val(pmd) & PMD_TYPE_MASK) == \ 116 #define pmd_sect(pmd) ((pmd_val(pmd) & PMD_TYPE_MASK) == \ 138 #define pmd_bad(pmd) (!(pmd_val(pmd) & 2)) 174 #define pmd_isset(pmd, val) ((u32)(val) == (val) ? pmd_val(pmd) & (val) \ 175 : !!(pmd_val(pmd) & (val))) 176 #define pmd_isclear(pmd, val) (!(pmd_val(pmd) & (val))) 196 #define pmd_trans_huge(pmd) (pmd_val(pmd) && !pmd_table(pmd)) 200 static inline pmd_t pmd_##fn(pmd_t pmd) { pmd_val(pmd) op; return pmd; } 209 #define pmd_mkhuge(pmd) (__pmd(pmd_val(pmd) & ~PMD_TABLE_BIT)) 211 #define pmd_pfn(pmd) (((pmd_val(pmd) & PMD_MASK) & PHYS_MASK) >> PAGE_SHIFT) [all …]
|
D | pgtable-2level.h | 194 #define pmd_large(pmd) (pmd_val(pmd) & 2) 195 #define pmd_leaf(pmd) (pmd_val(pmd) & 2) 196 #define pmd_bad(pmd) (pmd_val(pmd) & 2) 197 #define pmd_present(pmd) (pmd_val(pmd))
|
/arch/mips/include/asm/ |
D | pgtable.h | 92 #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd)) 99 #define pmd_page_vaddr(pmd) pmd_val(pmd) 587 return !!(pmd_val(pmd) & _PAGE_HUGE); 592 pmd_val(pmd) |= _PAGE_HUGE; 603 return !!(pmd_val(pmd) & _PAGE_WRITE); 608 pmd_val(pmd) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); 614 pmd_val(pmd) |= _PAGE_WRITE; 615 if (pmd_val(pmd) & _PAGE_MODIFIED) 616 pmd_val(pmd) |= _PAGE_SILENT_WRITE; 623 return !!(pmd_val(pmd) & _PAGE_MODIFIED); [all …]
|
D | pgtable-64.h | 164 printk("%s:%d: bad pmd %016lx.\n", __FILE__, __LINE__, pmd_val(e)) 236 #define pmd_val(x) ((x).pmd) macro 248 return pmd_val(pmd) == (unsigned long) invalid_pte_table; in pmd_none() 255 if (unlikely(pmd_val(pmd) & _PAGE_HUGE)) in pmd_bad() 259 if (unlikely(pmd_val(pmd) & ~PAGE_MASK)) in pmd_bad() 268 if (unlikely(pmd_val(pmd) & _PAGE_HUGE)) in pmd_present() 269 return pmd_val(pmd) & _PAGE_PRESENT; in pmd_present() 272 return pmd_val(pmd) != (unsigned long) invalid_pte_table; in pmd_present() 277 pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); in pmd_clear()
|
D | pgtable-32.h | 128 return pmd_val(pmd) == (unsigned long) invalid_pte_table; in pmd_none() 135 if (unlikely(pmd_val(pmd) & _PAGE_HUGE)) in pmd_bad() 139 if (unlikely(pmd_val(pmd) & ~PAGE_MASK)) in pmd_bad() 147 return pmd_val(pmd) != (unsigned long) invalid_pte_table; in pmd_present() 152 pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); in pmd_clear()
|
/arch/s390/include/asm/ |
D | pgtable.h | 72 printk("%s:%d: bad pmd %p.\n", __FILE__, __LINE__, (void *) pmd_val(e)) 698 return (pmd_val(pmd) & _SEGMENT_ENTRY_LARGE) != 0; in pmd_large() 703 if ((pmd_val(pmd) & _SEGMENT_ENTRY_TYPE_MASK) > 0 || pmd_large(pmd)) in pmd_bad() 705 return (pmd_val(pmd) & ~_SEGMENT_ENTRY_BITS) != 0; in pmd_bad() 732 return pmd_val(pmd) != _SEGMENT_ENTRY_EMPTY; in pmd_present() 737 return pmd_val(pmd) == _SEGMENT_ENTRY_EMPTY; in pmd_none() 743 return (pmd_val(pmd) & _SEGMENT_ENTRY_WRITE) != 0; in pmd_write() 754 return (pmd_val(pmd) & _SEGMENT_ENTRY_DIRTY) != 0; in pmd_dirty() 759 return (pmd_val(pmd) & _SEGMENT_ENTRY_YOUNG) != 0; in pmd_young() 801 return pmd_large(pmd) && !(pmd_val(pmd) & _SEGMENT_ENTRY_READ); in pmd_protnone() [all …]
|
/arch/nios2/include/asm/ |
D | pgtable.h | 181 return (pmd_val(pmd) != (unsigned long) invalid_pte_table) in pmd_present() 182 && (pmd_val(pmd) != 0UL); in pmd_present() 187 pmd_val(*pmdp) = (unsigned long) invalid_pte_table; in pmd_clear() 213 return (pmd_val(pmd) == in pmd_none() 214 (unsigned long) invalid_pte_table) || (pmd_val(pmd) == 0UL); in pmd_none() 217 #define pmd_bad(pmd) (pmd_val(pmd) & ~PAGE_MASK) 239 #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd)) 244 return pmd_val(pmd); in pmd_page_vaddr()
|
/arch/arc/include/asm/ |
D | pgtable.h | 251 #define pmd_page(pmd) virt_to_page(pmd_val(pmd) & PAGE_MASK) 254 #define pmd_page_vaddr(pmd) (pmd_val(pmd) & PAGE_MASK) 259 pmd_val(*pmdp) = (unsigned long)ptep; in pmd_set() 266 #define pmd_none(x) (!pmd_val(x)) 267 #define pmd_bad(x) ((pmd_val(x) & ~PAGE_MASK)) 268 #define pmd_present(x) (pmd_val(x)) 269 #define pmd_leaf(x) (pmd_val(x) & _PAGE_HW_SZ) 270 #define pmd_clear(xp) do { pmd_val(*(xp)) = 0; } while (0)
|
D | hugepage.h | 15 return __pte(pmd_val(pmd)); in pmd_pte() 39 #define pmd_trans_huge(pmd) (pmd_val(pmd) & _PAGE_HW_SZ) 49 return __pmd((pmd_val(pmd) & (_PAGE_CHG_MASK | _PAGE_HW_SZ)) | pgprot_val(newprot)); in pmd_modify()
|
/arch/arm/mm/ |
D | hugetlbpage.c | 33 return pmd_val(pmd) && !(pmd_val(pmd) & PMD_TABLE_BIT); in pmd_huge()
|
/arch/sparc/include/asm/ |
D | pgtable_64.h | 103 __FILE__, __LINE__, &(e), pmd_val(e), __builtin_return_address(0)) 341 pte_t pte = __pte(pmd_val(pmd)); in pmd_modify() 415 return !!(pmd_val(pmd) & _PAGE_PMD_HUGE); in is_hugetlb_pmd() 426 pte_t pte = __pte(pmd_val(pmd)); in pmd_mkhuge() 689 pte_t pte = __pte(pmd_val(pmd)); in pmd_large() 696 pte_t pte = __pte(pmd_val(pmd)); in pmd_pfn() 704 pte_t pte = __pte(pmd_val(pmd)); in pmd_write() 714 pte_t pte = __pte(pmd_val(pmd)); in pmd_dirty() 721 pte_t pte = __pte(pmd_val(pmd)); in pmd_young() 728 pte_t pte = __pte(pmd_val(pmd)); in pmd_trans_huge() [all …]
|
D | pgtable_32.h | 133 if (srmmu_device_memory(pmd_val(pmd))) in pmd_page() 135 return pfn_to_page((pmd_val(pmd) & SRMMU_PTD_PMASK) >> (PAGE_SHIFT-4)); in pmd_page() 142 if (srmmu_device_memory(pmd_val(pmd))) in __pmd_page() 145 v = pmd_val(pmd) & SRMMU_PTD_PMASK; in __pmd_page() 151 unsigned long v = pmd_val(pmd) & SRMMU_PTD_PMASK; in pmd_page_vaddr() 187 return (pmd_val(pmd) & SRMMU_ET_MASK) != SRMMU_ET_PTD; in pmd_bad() 192 return ((pmd_val(pmd) & SRMMU_ET_MASK) == SRMMU_ET_PTD); in pmd_present() 197 return !pmd_val(pmd); in pmd_none() 202 set_pte((pte_t *)&pmd_val(*pmdp), __pte(0)); in pmd_clear()
|
/arch/c6x/include/asm/ |
D | pgtable.h | 29 #define pmd_none(x) (!pmd_val(x)) 30 #define pmd_present(x) (pmd_val(x)) 32 #define pmd_bad(x) (pmd_val(x) & ~PAGE_MASK)
|
/arch/um/include/asm/ |
D | pgtable.h | 97 #define pmd_none(x) (!((unsigned long)pmd_val(x) & ~_PAGE_NEWPAGE)) 98 #define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) 100 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT) 101 #define pmd_clear(xp) do { pmd_val(*(xp)) = _PAGE_NEWPAGE; } while (0) 103 #define pmd_newpage(x) (pmd_val(x) & _PAGE_NEWPAGE) 104 #define pmd_mkuptodate(x) (pmd_val(x) &= ~_PAGE_NEWPAGE) 112 #define pmd_page(pmd) phys_to_page(pmd_val(pmd) & PAGE_MASK) 300 #define pmd_page_vaddr(pmd) ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
|
/arch/m68k/include/asm/ |
D | motorola_pgtable.h | 122 pmd_val(*pmdp) = virt_to_phys(ptep) | _PAGE_TABLE | _PAGE_ACCESSED; in pmd_set() 131 #define pmd_page_vaddr(pmd) ((unsigned long)__va(pmd_val(pmd) & _TABLE_MASK)) 143 #define pmd_none(pmd) (!pmd_val(pmd)) 144 #define pmd_bad(pmd) ((pmd_val(pmd) & _DESCTYPE_MASK) != _PAGE_TABLE) 145 #define pmd_present(pmd) (pmd_val(pmd) & _PAGE_TABLE) 146 #define pmd_clear(pmdp) ({ pmd_val(*pmdp) = 0; }) 165 printk("%s:%d: bad pmd %08lx.\n", __FILE__, __LINE__, pmd_val(e))
|
D | sun3_pgalloc.h | 28 pmd_val(*pmd) = __pa((unsigned long)pte); in pmd_populate_kernel() 33 pmd_val(*pmd) = __pa((unsigned long)page_address(page)); in pmd_populate()
|
/arch/riscv/include/asm/ |
D | pgtable-64.h | 26 #define pmd_val(x) ((x).pmd) macro 80 return pmd_val(pmd) >> _PAGE_PFN_SHIFT; in _pmd_pfn() 84 pr_err("%s:%d: bad pmd %016lx.\n", __FILE__, __LINE__, pmd_val(e))
|
/arch/alpha/include/asm/ |
D | pgtable.h | 227 { pmd_val(*pmdp) = _PAGE_TABLE | ((((unsigned long) ptep) - PAGE_OFFSET) << (32-PAGE_SHIFT)); } in pmd_set() 236 return ((pmd_val(pmd) & _PFN_MASK) >> (32-PAGE_SHIFT)) + PAGE_OFFSET; in pmd_page_vaddr() 240 #define pmd_page(pmd) (mem_map + ((pmd_val(pmd) & _PFN_MASK) >> 32)) 256 extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } in pmd_none() 257 extern inline int pmd_bad(pmd_t pmd) { return (pmd_val(pmd) & ~_PFN_MASK) != _PAGE_TABLE; } in pmd_bad() 258 extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_VALID; } in pmd_present() 259 extern inline void pmd_clear(pmd_t * pmdp) { pmd_val(*pmdp) = 0; } in pmd_clear() 344 printk("%s:%d: bad pmd %016lx.\n", __FILE__, __LINE__, pmd_val(e))
|
/arch/microblaze/include/asm/ |
D | pgalloc.h | 40 (pmd_val(*(pmd)) = (unsigned long)page_address(pte)) 43 (pmd_val(*(pmd)) = (unsigned long) (pte))
|
/arch/sparc/mm/ |
D | tlb.c | 171 if ((pmd_val(pmd) ^ pmd_val(orig)) & _PAGE_PMD_HUGE) { in __set_pmd_acct() 180 if (pmd_val(pmd) & _PAGE_PMD_HUGE) { in __set_pmd_acct() 205 pte_t orig_pte = __pte(pmd_val(orig)); in __set_pmd_acct() 247 entry = __pmd(pmd_val(*pmdp) & ~_PAGE_VALID); in pmdp_invalidate() 256 if ((pmd_val(entry) & _PAGE_PMD_HUGE) && in pmdp_invalidate()
|
/arch/s390/mm/ |
D | pageattr.c | 120 ro = !!(pmd_val(*pmdp) & _SEGMENT_ENTRY_PROTECT); in split_pmd_page() 121 nx = !!(pmd_val(*pmdp) & _SEGMENT_ENTRY_NOEXEC); in split_pmd_page() 131 pmd_val(new) = __pa(pt_dir) | _SEGMENT_ENTRY; in split_pmd_page() 132 pgt_set((unsigned long *)pmdp, pmd_val(new), addr, CRDTE_DTT_SEGMENT); in split_pmd_page() 148 pmd_val(new) |= _SEGMENT_ENTRY_NOEXEC; in modify_pmd_page() 150 pmd_val(new) &= ~_SEGMENT_ENTRY_NOEXEC; in modify_pmd_page() 151 pgt_set((unsigned long *)pmdp, pmd_val(new), addr, CRDTE_DTT_SEGMENT); in modify_pmd_page() 204 pmd_val(*pmdp) = pmd_addr | prot; in split_pud_page()
|
/arch/csky/include/asm/ |
D | pgtable.h | 119 ptr = pmd_val(pmd); in pmd_page_vaddr() 124 #define pmd_phys(pmd) pmd_val(pmd) 139 return pmd_val(pmd) == __pa(invalid_pte_table); in pmd_none() 142 #define pmd_bad(pmd) (pmd_val(pmd) & ~PAGE_MASK) 146 return (pmd_val(pmd) != __pa(invalid_pte_table)); in pmd_present() 151 pmd_val(*p) = (__pa(invalid_pte_table)); in pmd_clear()
|
/arch/openrisc/include/asm/ |
D | pgtable.h | 223 #define pmd_none(x) (!pmd_val(x)) 224 #define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK)) != _KERNPG_TABLE) 225 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT) 226 #define pmd_clear(xp) do { pmd_val(*(xp)) = 0; } while (0) 362 pmd_val(*pmdp) = _KERNPG_TABLE | (unsigned long) ptep; in pmd_set() 365 #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT)) 369 return ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK)); in pmd_page_vaddr()
|
/arch/sh/include/asm/ |
D | pgtable-3level.h | 29 printk("%s:%d: bad pmd %016llx.\n", __FILE__, __LINE__, pmd_val(e)) 32 #define pmd_val(x) ((x).pmd) macro
|
/arch/powerpc/include/asm/nohash/32/ |
D | pgtable.h | 203 #define pmd_none(pmd) (!pmd_val(pmd)) 204 #define pmd_bad(pmd) (pmd_val(pmd) & _PMD_BAD) 205 #define pmd_present(pmd) (pmd_val(pmd) & _PMD_PRESENT_MASK) 353 pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT) 356 ((unsigned long)(pmd_val(pmd) & ~(PTE_TABLE_SIZE - 1))) 358 pfn_to_page((__pa(pmd_val(pmd)) >> PAGE_SHIFT))
|