/linux/arch/m68k/include/asm/ |
A D | mcf_pgtable.h | 163 pte_val(pte) = (pte_val(pte) & CF_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify() 179 return !pte_val(pte); in pte_none() 190 pte_val(*ptep) = 0; in pte_clear() 205 __FILE__, __LINE__, pte_val(e)) 254 pte_val(pte) &= ~CF_PAGE_EXEC; in pte_exprotect() 260 pte_val(pte) &= ~CF_PAGE_DIRTY; in pte_mkclean() 272 pte_val(pte) |= CF_PAGE_WRITABLE; in pte_mkwrite() 278 pte_val(pte) |= CF_PAGE_READABLE; in pte_mkread() 284 pte_val(pte) |= CF_PAGE_EXEC; in pte_mkexec() 290 pte_val(pte) |= CF_PAGE_DIRTY; in pte_mkdirty() [all …]
|
A D | sun3_pgtable.h | 107 pte_val(pte) = (pte_val(pte) & SUN3_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify() 114 ((unsigned long) __va ((pte_val (pte) & SUN3_PAGE_PGNUM_MASK) << PAGE_SHIFT)) 121 static inline int pte_none (pte_t pte) { return !pte_val (pte); } in pte_none() 122 static inline int pte_present (pte_t pte) { return pte_val (pte) & SUN3_PAGE_VALID; } in pte_present() 125 pte_val (*ptep) = 0; in pte_clear() 128 #define pte_pfn(pte) (pte_val(pte) & SUN3_PAGE_PGNUM_MASK) 130 ({ pte_t __pte; pte_val(__pte) = pfn | pgprot_val(pgprot); __pte; }) 148 pr_err("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 159 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & SUN3_PAGE_MODIFIED; } in pte_dirty() 160 static inline int pte_young(pte_t pte) { return pte_val(pte) & SUN3_PAGE_ACCESSED; } in pte_young() [all …]
|
A D | motorola_pgtable.h | 118 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify() 132 #define __pte_page(pte) ((unsigned long)__va(pte_val(pte) & PAGE_MASK)) 137 #define pte_none(pte) (!pte_val(pte)) 138 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE)) 139 #define pte_clear(mm,addr,ptep) ({ pte_val(*(ptep)) = 0; }) 141 #define pte_page(pte) virt_to_page(__va(pte_val(pte))) 142 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) 165 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 188 pte_val(pte) = (pte_val(pte) & _CACHEMASK040) | m68k_pgtable_cachemode; in pte_mknocache() 193 pte_val(pte) = (pte_val(pte) & _CACHEMASK040) | m68k_supervisor_cachemode; in pte_mkcache() [all …]
|
/linux/arch/powerpc/include/asm/book3s/32/ |
A D | pgtable.h | 58 return pte_val(pte) & _PAGE_USER; in pte_user() 245 (unsigned long long)pte_val(e)) 363 unsigned long set = pte_val(entry) & in __ptep_set_access_flags() 372 #define pte_same(A,B) (((pte_val(A) ^ pte_val(B)) & ~_PAGE_HASHPTE) == 0) 400 return pte_val(pte) & _PAGE_PRESENT; in pte_present() 405 return pte_val(pte) & _PAGE_PRESENT; in pte_hw_valid() 410 return !!(pte_val(pte) & _PAGE_HASHPTE); in pte_hashpte() 452 return pte_val(pte) >> PTE_RPN_SHIFT; in pte_pfn() 458 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 488 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite() [all …]
|
/linux/arch/microblaze/include/asm/ |
A D | pgtable.h | 109 __FILE__, __LINE__, pte_val(e)) 246 ((pte_val(x) - memory_start) >> PAGE_SHIFT)) 269 { pte_val(pte) &= ~_PAGE_USER; return pte; } in pte_rdprotect() 273 { pte_val(pte) &= ~_PAGE_EXEC; return pte; } in pte_exprotect() 277 { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold() 280 { pte_val(pte) |= _PAGE_USER; return pte; } in pte_mkread() 284 { pte_val(pte) |= _PAGE_RW; return pte; } in pte_mkwrite() 286 { pte_val(pte) |= _PAGE_DIRTY; return pte; } in pte_mkdirty() 288 { pte_val(pte) |= _PAGE_ACCESSED; return pte; } in pte_mkyoung() 298 pte_val(pte) = physpage | pgprot_val(pgprot); in mk_pte_phys() [all …]
|
/linux/arch/nds32/include/asm/ |
A D | pgtable.h | 182 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) 185 #define pte_none(pte) !(pte_val(pte)) 247 #define pte_exec(pte) (pte_val(pte) & _PAGE_E) 248 #define pte_dirty(pte) (pte_val(pte) & _PAGE_D) 254 #define pte_file(pte) (pte_val(pte) & _PAGE_FILE) 255 #define pte_to_pgoff(x) (pte_val(x) >> 2) 265 pte_val(pte) = pte_val(pte) & ~_PAGE_M_MASK; in pte_wrprotect() 266 pte_val(pte) = pte_val(pte) | _PAGE_M_UR_KR; in pte_wrprotect() 272 pte_val(pte) = pte_val(pte) & ~_PAGE_M_MASK; in pte_mkwrite() 273 pte_val(pte) = pte_val(pte) | _PAGE_M_URW_KRW; in pte_mkwrite() [all …]
|
/linux/arch/openrisc/include/asm/ |
A D | pgtable.h | 218 #define pte_none(x) (!pte_val(x)) 240 pte_val(pte) &= ~(_PAGE_WRITE); in pte_wrprotect() 246 pte_val(pte) &= ~(_PAGE_READ); in pte_rdprotect() 252 pte_val(pte) &= ~(_PAGE_EXEC); in pte_exprotect() 258 pte_val(pte) &= ~(_PAGE_DIRTY); in pte_mkclean() 270 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 276 pte_val(pte) |= _PAGE_READ; in pte_mkread() 282 pte_val(pte) |= _PAGE_EXEC; in pte_mkexec() 288 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty() 294 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung() [all …]
|
/linux/arch/hexagon/include/asm/ |
A D | pgtable.h | 203 pte_val(*ptep) = _NULL_PTE; in pte_clear() 249 return pte_val(pte) == _NULL_PTE; in pte_none() 269 pte_val(pte) &= ~_PAGE_ACCESSED; in pte_mkold() 276 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung() 283 pte_val(pte) &= ~_PAGE_DIRTY; in pte_mkclean() 290 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty() 309 pte_val(pte) &= PAGE_MASK; in pte_modify() 310 pte_val(pte) |= pgprot_val(prot); in pte_modify() 317 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 324 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() [all …]
|
/linux/arch/s390/mm/ |
A D | hugetlbpage.c | 49 rste = pte_val(pte) & PAGE_MASK; in __pte_to_rste() 50 rste |= move_set_bit(pte_val(pte), _PAGE_READ, in __pte_to_rste() 52 rste |= move_set_bit(pte_val(pte), _PAGE_WRITE, in __pte_to_rste() 54 rste |= move_set_bit(pte_val(pte), _PAGE_INVALID, in __pte_to_rste() 58 rste |= move_set_bit(pte_val(pte), _PAGE_DIRTY, in __pte_to_rste() 60 rste |= move_set_bit(pte_val(pte), _PAGE_YOUNG, in __pte_to_rste() 66 rste |= move_set_bit(pte_val(pte), _PAGE_NOEXEC, in __pte_to_rste() 105 pte_val(pte) |= _PAGE_LARGE | _PAGE_PRESENT; in __rste_to_pte() 125 pte_val(pte) = _PAGE_INVALID; in __rste_to_pte() 170 pte_val(*ptep) = rste; in set_huge_pte_at() [all …]
|
A D | pgtable.c | 118 pte_val(*ptep) |= _PAGE_INVALID; in ptep_flush_lazy() 227 pte_val(entry) |= _PAGE_DIRTY; in pgste_set_pte() 278 pte_val(old) |= _PAGE_UNUSED; in ptep_xchg_commit() 348 pte_val(pte) &= ~_PAGE_NOEXEC; in ptep_modify_prot_commit() 582 pte_val(*ptep) = _PAGE_INVALID; in pgtable_trans_huge_withdraw() 584 pte_val(*ptep) = _PAGE_INVALID; in pgtable_trans_huge_withdraw() 678 pte_val(tpte) = (pte_val(spte) & PAGE_MASK) | in ptep_shadow_pte() 749 ptev = pte_val(*ptep); in ptep_zap_key() 776 pte_val(pte) |= _PAGE_PROTECT; in ptep_test_and_clear_uc() 778 pte_val(pte) |= _PAGE_INVALID; in ptep_test_and_clear_uc() [all …]
|
/linux/arch/powerpc/include/asm/nohash/ |
A D | pgtable.h | 45 return pte_val(pte) & _PAGE_RW; in pte_write() 75 return pte_val(pte) & _PAGE_PRESENT; in pte_present() 80 return pte_val(pte) & _PAGE_PRESENT; in pte_hw_valid() 125 return pte_val(pte) >> PTE_RPN_SHIFT; } in pte_pfn() 130 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect() 135 return __pte(pte_val(pte) & ~_PAGE_DIRTY); in pte_mkclean() 140 return __pte(pte_val(pte) & ~_PAGE_ACCESSED); in pte_mkold() 145 return __pte(pte_val(pte) | _PAGE_SPECIAL); in pte_mkspecial() 151 return __pte(pte_val(pte)); in pte_mkhuge() 158 return __pte(pte_val(pte) & ~_PAGE_USER); in pte_mkprivileged() [all …]
|
/linux/arch/nios2/include/asm/ |
A D | pgtable.h | 104 { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 106 { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 127 { return pte_val(pte) & _PAGE_PRESENT; } in pte_present() 135 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 141 pte_val(pte) &= ~_PAGE_DIRTY; in pte_mkclean() 147 pte_val(pte) &= ~_PAGE_ACCESSED; in pte_mkold() 153 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 159 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty() 165 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung() 173 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify() [all …]
|
/linux/arch/mips/include/asm/ |
A D | pgtable.h | 287 pte_val(pte) |= _PAGE_SPECIAL; 386 pte_val(pte) |= _PAGE_WRITE; 387 if (pte_val(pte) & _PAGE_MODIFIED) 395 if (pte_val(pte) & _PAGE_WRITE) 402 pte_val(pte) |= _PAGE_ACCESSED; 404 pte_val(pte) |= _PAGE_SILENT_READ; 415 pte_val(pte) |= _PAGE_HUGE; 448 pte_val(pte) |= _PAGE_SOFT_DIRTY; 501 return pte_val(pte_a) == pte_val(pte_b); 545 pte_val(pte) &= _PAGE_CHG_MASK; [all …]
|
/linux/arch/alpha/include/asm/ |
A D | pgtable.h | 206 #define pte_pfn(pte) (pte_val(pte) >> 32) 213 pte_val(pte) = (page_to_pfn(page) << 32) | pgprot_val(pgprot); \ 221 { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } in pte_modify() 244 extern inline int pte_none(pte_t pte) { return !pte_val(pte); } in pte_none() 245 extern inline int pte_present(pte_t pte) { return pte_val(pte) & _PAGE_VALID; } in pte_present() 248 pte_val(*ptep) = 0; in pte_clear() 265 extern inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_FOW); } in pte_write() 266 extern inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 324 { pte_t pte; pte_val(pte) = (type << 32) | (offset << 40); return pte; } in mk_swap_pte() 329 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) [all …]
|
/linux/arch/ia64/include/asm/ |
A D | pgtable.h | 259 #define pte_none(pte) (!pte_val(pte)) 261 #define pte_clear(mm,addr,pte) (pte_val(*(pte)) = 0UL) 293 #define pte_dirty(pte) ((pte_val(pte) & _PAGE_D) != 0) 294 #define pte_young(pte) ((pte_val(pte) & _PAGE_A) != 0) 302 #define pte_mkold(pte) (__pte(pte_val(pte) & ~_PAGE_A)) 303 #define pte_mkyoung(pte) (__pte(pte_val(pte) | _PAGE_A)) 305 #define pte_mkdirty(pte) (__pte(pte_val(pte) | _PAGE_D)) 306 #define pte_mkhuge(pte) (__pte(pte_val(pte))) 414 old = pte_val(*ptep); in ptep_set_wrprotect() 415 new = pte_val(pte_wrprotect(__pte (old))); in ptep_set_wrprotect() [all …]
|
/linux/arch/xtensa/include/asm/ |
A D | pgtable.h | 224 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 254 (((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) \ 255 || ((pte_val(pte) & _PAGE_ATTRIB_MASK) == _PAGE_NONE)) 272 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HW_WRITE); return pte; } in pte_mkclean() 274 { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold() 276 { pte_val(pte) |= _PAGE_DIRTY; return pte; } in pte_mkdirty() 278 { pte_val(pte) |= _PAGE_ACCESSED; return pte; } in pte_mkyoung() 280 { pte_val(pte) |= _PAGE_WRITABLE; return pte; } in pte_mkwrite() 291 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) 292 #define pte_same(a,b) (pte_val(a) == pte_val(b)) [all …]
|
/linux/arch/parisc/include/asm/ |
A D | pgtable.h | 103 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 309 #define pte_none(x) (pte_val(x) == 0) 310 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 311 #define pte_user(x) (pte_val(x) & _PAGE_USER) 363 #define pte_huge(pte) (pte_val(pte) & _PAGE_HUGE) 364 #define pte_mkhuge(pte) (__pte(pte_val(pte) | \ 390 pte_val(pte) = (pfn << PFN_PTE_SHIFT) | pgprot_val(pgprot); in pfn_pte() 395 { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } in pte_modify() 399 #define pte_pfn(x) (pte_val(x) >> PFN_PTE_SHIFT) 429 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) [all …]
|
/linux/arch/arm64/include/asm/ |
A D | pgtable.h | 309 __func__, pte_val(old_pte), pte_val(pte)); in __check_racy_pte_update() 312 __func__, pte_val(old_pte), pte_val(pte)); in __check_racy_pte_update() 377 return __pud(pte_val(pte)); in pte_pud() 392 return __pmd(pte_val(pte)); in pte_pmd() 768 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify() 814 pte_val(pte) = cmpxchg_relaxed(&pte_val(*ptep), in __ptep_test_and_clear_young() 815 pte_val(old_pte), pte_val(pte)); in __ptep_test_and_clear_young() 816 } while (pte_val(pte) != pte_val(old_pte)); in __ptep_test_and_clear_young() 888 pte_val(pte) = cmpxchg_relaxed(&pte_val(*ptep), in ptep_set_wrprotect() 889 pte_val(old_pte), pte_val(pte)); in ptep_set_wrprotect() [all …]
|
/linux/arch/csky/include/asm/ |
A D | pgtable.h | 182 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); in pte_wrprotect() 188 pte_val(pte) &= ~(_PAGE_MODIFIED|_PAGE_DIRTY); in pte_mkclean() 200 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 201 if (pte_val(pte) & _PAGE_MODIFIED) in pte_mkwrite() 202 pte_val(pte) |= _PAGE_DIRTY; in pte_mkwrite() 208 pte_val(pte) |= _PAGE_MODIFIED; in pte_mkdirty() 209 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty() 210 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty() 216 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung() 217 if (pte_val(pte) & _PAGE_READ) in pte_mkyoung() [all …]
|
/linux/arch/s390/include/asm/ |
A D | pgtable.h | 783 return pte_val(a) == pte_val(b); in pte_same() 924 if ((pte_val(pte) & _PAGE_YOUNG) && (pte_val(pte) & _PAGE_READ)) in pte_modify() 930 if ((pte_val(pte) & _PAGE_DIRTY) && (pte_val(pte) & _PAGE_WRITE)) in pte_modify() 937 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 938 pte_val(pte) |= _PAGE_PROTECT; in pte_wrprotect() 944 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 952 pte_val(pte) &= ~_PAGE_DIRTY; in pte_mkclean() 953 pte_val(pte) |= _PAGE_PROTECT; in pte_mkclean() 967 pte_val(pte) &= ~_PAGE_YOUNG; in pte_mkold() 974 pte_val(pte) |= _PAGE_YOUNG; in pte_mkyoung() [all …]
|
/linux/arch/sparc/include/asm/ |
A D | pgtable_64.h | 250 return __pmd(pte_val(pte)); in pfn_pmd() 269 : "r" (pte_val(pte)), in pte_pfn() 342 return __pmd(pte_val(pte)); in pmd_modify() 427 return __pmd(pte_val(pte)); in pmd_mkhuge() 575 pte_val(pte) |= _PAGE_MCD_4V; in pte_mkmcd() 735 return __pmd(pte_val(pte)); in pmd_mkold() 744 return __pmd(pte_val(pte)); in pmd_wrprotect() 753 return __pmd(pte_val(pte)); in pmd_mkdirty() 762 return __pmd(pte_val(pte)); in pmd_mkclean() 771 return __pmd(pte_val(pte)); in pmd_mkyoung() [all …]
|
A D | pgtable_32.h | 171 return !pte_val(pte); in pte_none() 230 return pte_val(pte) & SRMMU_WRITE; in pte_write() 235 return pte_val(pte) & SRMMU_DIRTY; in pte_dirty() 240 return pte_val(pte) & SRMMU_REF; in pte_young() 245 return __pte(pte_val(pte) & ~SRMMU_WRITE); in pte_wrprotect() 250 return __pte(pte_val(pte) & ~SRMMU_DIRTY); in pte_mkclean() 255 return __pte(pte_val(pte) & ~SRMMU_REF); in pte_mkold() 260 return __pte(pte_val(pte) | SRMMU_WRITE); in pte_mkwrite() 265 return __pte(pte_val(pte) | SRMMU_DIRTY); in pte_mkdirty() 270 return __pte(pte_val(pte) | SRMMU_REF); in pte_mkyoung() [all …]
|
/linux/arch/powerpc/include/asm/nohash/64/ |
A D | pgtable.h | 103 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite() 108 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 118 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 175 return __pud(pte_val(pte)); in pte_pud() 192 unsigned long old = pte_val(*ptep); in pte_update() 204 return pte_val(pte) & _PAGE_ACCESSED; in pte_young() 230 if ((pte_val(*ptep) & _PAGE_RW) == 0) in ptep_set_wrprotect() 240 if ((pte_val(*ptep) & _PAGE_RW) == 0) in huge_ptep_set_wrprotect() 275 unsigned long bits = pte_val(entry) & in __ptep_set_access_flags() 278 unsigned long old = pte_val(*ptep); in __ptep_set_access_flags() [all …]
|
/linux/arch/powerpc/include/asm/nohash/32/ |
A D | pte-8xx.h | 92 return __pte(pte_val(pte) | _PAGE_RO); in pte_wrprotect() 99 return !(pte_val(pte) & _PAGE_RO); in pte_write() 106 return __pte(pte_val(pte) & ~_PAGE_RO); in pte_mkwrite() 113 return !(pte_val(pte) & _PAGE_SH); in pte_user() 120 return __pte(pte_val(pte) | _PAGE_SH); in pte_mkprivileged() 127 return __pte(pte_val(pte) & ~_PAGE_SH); in pte_mkuser() 134 return __pte(pte_val(pte) | _PAGE_SPS | _PAGE_HUGE); in pte_mkhuge() 151 unsigned long set = pte_val(entry) & (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_EXEC); in __ptep_set_access_flags() 152 unsigned long clr = ~pte_val(entry) & _PAGE_RO; in __ptep_set_access_flags() 172 pte_basic_t val = pte_val(pte); in pte_leaf_size()
|
/linux/arch/riscv/include/asm/ |
A D | pgtable.h | 256 return (pte_val(pte) >> _PAGE_PFN_SHIFT); in pte_pfn() 276 return (pte_val(pte) == 0); in pte_none() 281 return pte_val(pte) & _PAGE_WRITE; in pte_write() 286 return pte_val(pte) & _PAGE_EXEC; in pte_exec() 296 return pte_val(pte) & _PAGE_DIRTY; in pte_dirty() 301 return pte_val(pte) & _PAGE_ACCESSED; in pte_young() 306 return pte_val(pte) & _PAGE_SPECIAL; in pte_special() 320 return __pte(pte_val(pte) | _PAGE_WRITE); in pte_mkwrite() 327 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 405 return pte_val(pte_a) == pte_val(pte_b); in pte_same() [all …]
|