/arch/arm/include/asm/ |
D | pgtable-3level.h | 132 #define pmd_table(pmd) ((pmd_val(pmd) & PMD_TYPE_MASK) == \ 134 #define pmd_sect(pmd) ((pmd_val(pmd) & PMD_TYPE_MASK) == \ 162 #define pmd_bad(pmd) (!(pmd_val(pmd) & 2)) 198 #define pmd_isset(pmd, val) ((u32)(val) == (val) ? pmd_val(pmd) & (val) \ 199 : !!(pmd_val(pmd) & (val))) 200 #define pmd_isclear(pmd, val) (!(pmd_val(pmd) & (val))) 220 #define pmd_trans_huge(pmd) (pmd_val(pmd) && !pmd_table(pmd)) 224 static inline pmd_t pmd_##fn(pmd_t pmd) { pmd_val(pmd) op; return pmd; } 233 #define pmd_mkhuge(pmd) (__pmd(pmd_val(pmd) & ~PMD_TABLE_BIT)) 235 #define pmd_pfn(pmd) (((pmd_val(pmd) & PMD_MASK) & PHYS_MASK) >> PAGE_SHIFT) [all …]
|
D | pgtable-2level.h | 191 #define pmd_large(pmd) (pmd_val(pmd) & 2) 192 #define pmd_bad(pmd) (pmd_val(pmd) & 2) 193 #define pmd_present(pmd) (pmd_val(pmd))
|
D | pgtable-2level-types.h | 27 #define pmd_val(x) ((x).pmd) macro 45 #define pmd_val(x) (x) macro
|
D | pgtable-3level-types.h | 30 #define pmd_val(x) ((x).pmd) macro 47 #define pmd_val(x) (x) macro
|
/arch/s390/include/asm/ |
D | pgtable.h | 71 printk("%s:%d: bad pmd %p.\n", __FILE__, __LINE__, (void *) pmd_val(e)) 697 return (pmd_val(pmd) & _SEGMENT_ENTRY_LARGE) != 0; in pmd_large() 702 if ((pmd_val(pmd) & _SEGMENT_ENTRY_TYPE_MASK) > 0) in pmd_bad() 705 return (pmd_val(pmd) & ~_SEGMENT_ENTRY_BITS_LARGE) != 0; in pmd_bad() 706 return (pmd_val(pmd) & ~_SEGMENT_ENTRY_BITS) != 0; in pmd_bad() 735 return pmd_val(pmd) != _SEGMENT_ENTRY_EMPTY; in pmd_present() 740 return pmd_val(pmd) == _SEGMENT_ENTRY_EMPTY; in pmd_none() 750 return (pmd_val(pmd) & origin_mask) >> PAGE_SHIFT; in pmd_pfn() 756 return (pmd_val(pmd) & _SEGMENT_ENTRY_WRITE) != 0; in pmd_write() 763 dirty = (pmd_val(pmd) & _SEGMENT_ENTRY_DIRTY) != 0; in pmd_dirty() [all …]
|
/arch/mips/include/asm/ |
D | pgtable.h | 94 #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd)) 101 #define pmd_page_vaddr(pmd) pmd_val(pmd) 519 return !!(pmd_val(pmd) & _PAGE_HUGE); 524 pmd_val(pmd) |= _PAGE_HUGE; 535 return !!(pmd_val(pmd) & _PAGE_WRITE); 540 pmd_val(pmd) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); 546 pmd_val(pmd) |= _PAGE_WRITE; 547 if (pmd_val(pmd) & _PAGE_MODIFIED) 548 pmd_val(pmd) |= _PAGE_SILENT_WRITE; 555 return !!(pmd_val(pmd) & _PAGE_MODIFIED); [all …]
|
D | pgtable-64.h | 165 printk("%s:%d: bad pmd %016lx.\n", __FILE__, __LINE__, pmd_val(e)) 242 #define pmd_val(x) ((x).pmd) macro 254 return pmd_val(pmd) == (unsigned long) invalid_pte_table; in pmd_none() 261 if (unlikely(pmd_val(pmd) & _PAGE_HUGE)) in pmd_bad() 265 if (unlikely(pmd_val(pmd) & ~PAGE_MASK)) in pmd_bad() 274 if (unlikely(pmd_val(pmd) & _PAGE_HUGE)) in pmd_present() 275 return pmd_val(pmd) & _PAGE_PRESENT; in pmd_present() 278 return pmd_val(pmd) != (unsigned long) invalid_pte_table; in pmd_present() 283 pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); in pmd_clear()
|
D | pgtable-32.h | 129 return pmd_val(pmd) == (unsigned long) invalid_pte_table; in pmd_none() 136 if (unlikely(pmd_val(pmd) & _PAGE_HUGE)) in pmd_bad() 140 if (unlikely(pmd_val(pmd) & ~PAGE_MASK)) in pmd_bad() 148 return pmd_val(pmd) != (unsigned long) invalid_pte_table; in pmd_present() 153 pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); in pmd_clear()
|
/arch/arm/mm/ |
D | hugetlbpage.c | 34 return pmd_val(pmd) && !(pmd_val(pmd) & PMD_TABLE_BIT); in pmd_huge()
|
/arch/nios2/include/asm/ |
D | pgtable.h | 189 return (pmd_val(pmd) != (unsigned long) invalid_pte_table) in pmd_present() 190 && (pmd_val(pmd) != 0UL); in pmd_present() 195 pmd_val(*pmdp) = (unsigned long) invalid_pte_table; in pmd_clear() 221 return (pmd_val(pmd) == in pmd_none() 222 (unsigned long) invalid_pte_table) || (pmd_val(pmd) == 0UL); in pmd_none() 225 #define pmd_bad(pmd) (pmd_val(pmd) & ~PAGE_MASK) 249 #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd)) 251 #define pmd_page_vaddr(pmd) pmd_val(pmd)
|
/arch/c6x/include/asm/ |
D | pgtable.h | 30 #define pmd_none(x) (!pmd_val(x)) 31 #define pmd_present(x) (pmd_val(x)) 33 #define pmd_bad(x) (pmd_val(x) & ~PAGE_MASK)
|
/arch/riscv/include/asm/ |
D | pgtable-64.h | 26 #define pmd_val(x) ((x).pmd) macro 75 return pmd_val(pmd) >> _PAGE_PFN_SHIFT; in _pmd_pfn() 79 pr_err("%s:%d: bad pmd %016lx.\n", __FILE__, __LINE__, pmd_val(e))
|
/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) 109 #define pmd_page(pmd) phys_to_page(pmd_val(pmd) & PAGE_MASK) 327 #define pmd_page_vaddr(pmd) ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK)) 331 ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
|
/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() 688 pte_t pte = __pte(pmd_val(pmd)); in pmd_large() 695 pte_t pte = __pte(pmd_val(pmd)); in pmd_pfn() 703 pte_t pte = __pte(pmd_val(pmd)); in pmd_write() 713 pte_t pte = __pte(pmd_val(pmd)); in pmd_dirty() 720 pte_t pte = __pte(pmd_val(pmd)); in pmd_young() 727 pte_t pte = __pte(pmd_val(pmd)); in pmd_trans_huge() [all …]
|
/arch/arc/include/asm/ |
D | pgtable.h | 259 #define pmd_page(pmd) virt_to_page(pmd_val(pmd) & PAGE_MASK) 262 #define pmd_page_vaddr(pmd) (pmd_val(pmd) & PAGE_MASK) 267 pmd_val(*pmdp) = (unsigned long)ptep; in pmd_set() 274 #define pmd_none(x) (!pmd_val(x)) 275 #define pmd_bad(x) ((pmd_val(x) & ~PAGE_MASK)) 276 #define pmd_present(x) (pmd_val(x)) 277 #define pmd_clear(xp) do { pmd_val(*(xp)) = 0; } while (0)
|
D | hugepage.h | 16 return __pte(pmd_val(pmd)); in pmd_pte() 40 #define pmd_trans_huge(pmd) (pmd_val(pmd) & _PAGE_HW_SZ) 50 return __pmd((pmd_val(pmd) & (_PAGE_CHG_MASK | _PAGE_HW_SZ)) | pgprot_val(newprot)); in pmd_modify()
|
/arch/powerpc/include/asm/nohash/32/ |
D | pgtable.h | 195 #define pmd_none(pmd) (!pmd_val(pmd)) 196 #define pmd_bad(pmd) (pmd_val(pmd) & _PMD_BAD) 197 #define pmd_present(pmd) (pmd_val(pmd) & _PMD_PRESENT_MASK) 347 ((unsigned long)__va(pmd_val(pmd) & ~(PTE_TABLE_SIZE - 1))) 349 pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT) 352 ((unsigned long)(pmd_val(pmd) & ~(PTE_TABLE_SIZE - 1))) 354 pfn_to_page((__pa(pmd_val(pmd)) >> PAGE_SHIFT))
|
/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)) 254 extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } in pmd_none() 255 extern inline int pmd_bad(pmd_t pmd) { return (pmd_val(pmd) & ~_PFN_MASK) != _PAGE_TABLE; } in pmd_bad() 256 extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_VALID; } in pmd_present() 257 extern inline void pmd_clear(pmd_t * pmdp) { pmd_val(*pmdp) = 0; } in pmd_clear() 354 printk("%s:%d: bad pmd %016lx.\n", __FILE__, __LINE__, pmd_val(e))
|
/arch/sparc/mm/ |
D | tlb.c | 173 if ((pmd_val(pmd) ^ pmd_val(orig)) & _PAGE_PMD_HUGE) { in __set_pmd_acct() 182 if (pmd_val(pmd) & _PAGE_PMD_HUGE) { in __set_pmd_acct() 207 pte_t orig_pte = __pte(pmd_val(orig)); in __set_pmd_acct() 249 entry = __pmd(pmd_val(*pmdp) & ~_PAGE_VALID); in pmdp_invalidate() 258 if ((pmd_val(entry) & _PAGE_PMD_HUGE) && in pmdp_invalidate()
|
/arch/openrisc/include/asm/ |
D | pgtable.h | 224 #define pmd_none(x) (!pmd_val(x)) 225 #define pmd_bad(x) ((pmd_val(x) & (~PAGE_MASK)) != _KERNPG_TABLE) 226 #define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT) 227 #define pmd_clear(xp) do { pmd_val(*(xp)) = 0; } while (0) 365 pmd_val(*pmdp) = _KERNPG_TABLE | (unsigned long) ptep; in pmd_set() 368 #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT)) 369 #define pmd_page_kernel(pmd) ((unsigned long) __va(pmd_val(pmd) & PAGE_MASK))
|
/arch/s390/mm/ |
D | pageattr.c | 121 ro = !!(pmd_val(*pmdp) & _SEGMENT_ENTRY_PROTECT); in split_pmd_page() 122 nx = !!(pmd_val(*pmdp) & _SEGMENT_ENTRY_NOEXEC); in split_pmd_page() 132 pmd_val(new) = __pa(pt_dir) | _SEGMENT_ENTRY; in split_pmd_page() 133 pgt_set((unsigned long *)pmdp, pmd_val(new), addr, CRDTE_DTT_SEGMENT); in split_pmd_page() 149 pmd_val(new) |= _SEGMENT_ENTRY_NOEXEC; in modify_pmd_page() 151 pmd_val(new) &= ~_SEGMENT_ENTRY_NOEXEC; in modify_pmd_page() 152 pgt_set((unsigned long *)pmdp, pmd_val(new), addr, CRDTE_DTT_SEGMENT); in modify_pmd_page() 205 pmd_val(*pmdp) = pmd_addr | prot; in split_pud_page()
|
/arch/sh/include/asm/ |
D | pgtable_64.h | 63 #define pmd_present(pmd_entry) (pmd_val(pmd_entry) & _PAGE_PRESENT) 65 #define pmd_none(pmd_entry) (pmd_val((pmd_entry)) == _PMD_EMPTY) 66 #define pmd_bad(pmd_entry) ((pmd_val(pmd_entry) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE) 69 ((unsigned long) __va(pmd_val(pmd_entry) & PAGE_MASK)) 72 (virt_to_page(pmd_val(pmd))) 81 ((pte_t *) ((pmd_val(*(dir))) & PAGE_MASK) + pte_index((addr)))
|
D | pgtable-3level.h | 30 printk("%s:%d: bad pmd %016llx.\n", __FILE__, __LINE__, pmd_val(e)) 33 #define pmd_val(x) ((x).pmd) macro
|
/arch/m68k/include/asm/ |
D | sun3_pgalloc.h | 30 pmd_val(*pmd) = __pa((unsigned long)pte); in pmd_populate_kernel() 35 pmd_val(*pmd) = __pa((unsigned long)page_address(page)); in pmd_populate()
|
/arch/microblaze/include/asm/ |
D | pgalloc.h | 56 (pmd_val(*(pmd)) = (unsigned long)page_address(pte)) 59 (pmd_val(*(pmd)) = (unsigned long) (pte))
|