/arch/m68k/include/asm/ |
D | mcf_pgtable.h | 163 pte_val(pte) = (pte_val(pte) & CF_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify() 174 #define __pte_page(pte) ((unsigned long) (pte_val(pte) & PAGE_MASK)) 179 return !pte_val(pte); in pte_none() 184 return pte_val(pte) & CF_PAGE_VALID; in pte_present() 190 pte_val(*ptep) = 0; in pte_clear() 205 __FILE__, __LINE__, pte_val(e)) 217 return pte_val(pte) & CF_PAGE_READABLE; in pte_read() 222 return pte_val(pte) & CF_PAGE_WRITABLE; in pte_write() 227 return pte_val(pte) & CF_PAGE_EXEC; in pte_exec() 232 return pte_val(pte) & CF_PAGE_DIRTY; in pte_dirty() [all …]
|
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)) 158 static inline int pte_write(pte_t pte) { return pte_val(pte) & SUN3_PAGE_WRITEABLE; } in pte_write() 159 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & SUN3_PAGE_MODIFIED; } in pte_dirty() [all …]
|
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)) 176 static inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_RONLY); } in pte_write() 177 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() [all …]
|
/arch/powerpc/include/asm/book3s/32/ |
D | pgtable.h | 58 return pte_val(pte) & _PAGE_USER; in pte_user() 246 (unsigned long long)pte_val(e)) 364 unsigned long set = pte_val(entry) & in __ptep_set_access_flags() 373 #define pte_same(A,B) (((pte_val(A) ^ pte_val(B)) & ~_PAGE_HASHPTE) == 0) 387 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 3 }) 391 static inline int pte_write(pte_t pte) { return !!(pte_val(pte) & _PAGE_RW);} in pte_write() 393 static inline int pte_dirty(pte_t pte) { return !!(pte_val(pte) & _PAGE_DIRTY); } in pte_dirty() 394 static inline int pte_young(pte_t pte) { return !!(pte_val(pte) & _PAGE_ACCESSED); } in pte_young() 395 static inline int pte_special(pte_t pte) { return !!(pte_val(pte) & _PAGE_SPECIAL); } in pte_special() 396 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none() [all …]
|
/arch/microblaze/include/asm/ |
D | pgtable.h | 109 __FILE__, __LINE__, pte_val(e)) 235 #define pte_none(pte) ((pte_val(pte) & ~_PTE_NONE_MASK) == 0) 236 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 246 ((pte_val(x) - memory_start) >> PAGE_SHIFT)) 249 #define pte_pfn(x) (pte_val(x) >> PFN_SHIFT_OFFSET) 259 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read() 260 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() 261 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 262 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 263 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() [all …]
|
/arch/nds32/include/asm/ |
D | pgtable.h | 33 #define pte_ERROR(pte) __pte_error(__FILE__, __LINE__, pte_val(pte)) 182 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) 185 #define pte_none(pte) !(pte_val(pte)) 238 #define pte_present(pte) (pte_val(pte) & _PAGE_V) 239 #define pte_write(pte) ((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_URW_KRW) 240 #define pte_read(pte) (((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_UR_KR) || \ 241 ((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_UR_KRW) || \ 242 ((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_URW_KRW)) 243 #define pte_kernel_write(pte) (((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_URW_KRW) || \ 244 ((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_UR_KRW) || \ [all …]
|
/arch/openrisc/include/asm/ |
D | pgtable.h | 218 #define pte_none(x) (!pte_val(x)) 219 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 220 #define pte_clear(mm, addr, xp) do { pte_val(*(xp)) = 0; } while (0) 232 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_READ; } in pte_read() 233 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 234 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 235 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 236 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 240 pte_val(pte) &= ~(_PAGE_WRITE); in pte_wrprotect() 246 pte_val(pte) &= ~(_PAGE_READ); in pte_rdprotect() [all …]
|
/arch/hexagon/include/asm/ |
D | pgtable.h | 160 #define pte_mkhuge(pte) __pte((pte_val(pte) & ~0x3) | HVM_HUGEPAGE_SIZE) 170 ((pte_val(pte) & (_PAGE_EXECUTE | _PAGE_USER)) == \ 203 pte_val(*ptep) = _NULL_PTE; in pte_clear() 249 return pte_val(pte) == _NULL_PTE; in pte_none() 257 return pte_val(pte) & _PAGE_PRESENT; in pte_present() 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() 297 return pte_val(pte) & _PAGE_ACCESSED; in pte_young() [all …]
|
/arch/powerpc/include/asm/nohash/ |
D | pgtable.h | 45 return pte_val(pte) & _PAGE_RW; in pte_write() 51 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 52 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special() 53 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none() 55 static inline bool pte_ci(pte_t pte) { return pte_val(pte) & _PAGE_NO_CACHE; } in pte_ci() 56 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 77 return pte_val(pte) & _PAGE_PRESENT; in pte_present() 82 return pte_val(pte) & _PAGE_PRESENT; in pte_hw_valid() 93 return (pte_val(pte) & _PAGE_USER) == _PAGE_USER; in pte_user() 127 return pte_val(pte) >> PTE_RPN_SHIFT; } in pte_pfn() [all …]
|
/arch/s390/mm/ |
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() 56 rste |= move_set_bit(pte_val(pte), _PAGE_PROTECT, 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() 63 rste |= move_set_bit(pte_val(pte), _PAGE_SOFT_DIRTY, in __pte_to_rste() 66 rste |= move_set_bit(pte_val(pte), _PAGE_NOEXEC, in __pte_to_rste() 104 pte_val(pte) = rste & _SEGMENT_ENTRY_ORIGIN_LARGE; in __rste_to_pte() [all …]
|
D | pgtable.c | 94 if (unlikely(pte_val(old) & _PAGE_INVALID)) in ptep_flush_direct() 113 if (unlikely(pte_val(old) & _PAGE_INVALID)) in ptep_flush_lazy() 118 pte_val(*ptep) |= _PAGE_INVALID; in ptep_flush_lazy() 179 if (!mm_uses_skeys(mm) || pte_val(pte) & _PAGE_INVALID) in pgste_update_all() 181 address = pte_val(pte) & PAGE_MASK; in pgste_update_all() 201 if (!mm_uses_skeys(mm) || pte_val(entry) & _PAGE_INVALID) in pgste_set_key() 203 VM_BUG_ON(!(pte_val(*ptep) & _PAGE_INVALID)); in pgste_set_key() 204 address = pte_val(entry) & PAGE_MASK; in pgste_set_key() 219 if ((pte_val(entry) & _PAGE_PRESENT) && in pgste_set_pte() 220 (pte_val(entry) & _PAGE_WRITE) && in pgste_set_pte() [all …]
|
/arch/nios2/include/asm/ |
D | pgtable.h | 104 { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 106 { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 108 { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 123 return !(pte_val(pte) & ~(_PAGE_GLOBAL|0xf)); in pte_none() 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() [all …]
|
/arch/alpha/include/asm/ |
D | pgtable.h | 206 #define pte_pfn(pte) (pte_val(pte) >> 32) 213 pte_val(pte) = (page_to_pfn(page) << 32) | pgprot_val(pgprot); \ 218 { pte_t pte; pte_val(pte) = (PHYS_TWIDDLE(physpfn) << 32) | pgprot_val(pgprot); return pte; } in pfn_pte() 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() 267 extern inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() [all …]
|
/arch/powerpc/include/asm/nohash/32/ |
D | pte-8xx.h | 92 return __pte(pte_val(pte) | _PAGE_RO); in pte_wrprotect() 99 return (pte_val(pte) & _PAGE_RO) != _PAGE_NA; in pte_read() 106 return !(pte_val(pte) & _PAGE_RO); in pte_write() 113 return __pte(pte_val(pte) & ~_PAGE_RO); in pte_mkwrite() 120 return !(pte_val(pte) & _PAGE_SH); in pte_user() 127 return __pte(pte_val(pte) | _PAGE_SH); in pte_mkprivileged() 134 return __pte(pte_val(pte) & ~_PAGE_SH); in pte_mkuser() 141 return __pte(pte_val(pte) | _PAGE_SPS | _PAGE_HUGE); in pte_mkhuge() 158 unsigned long set = pte_val(entry) & (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_EXEC); in __ptep_set_access_flags() 159 unsigned long clr = ~pte_val(entry) & _PAGE_RO; in __ptep_set_access_flags() [all …]
|
D | pgtable.h | 60 (unsigned long long)pte_val(e)) 176 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite() 182 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 187 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung() 193 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 200 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec() 252 pte_basic_t old = pte_val(*p); in pte_update() 280 pte_basic_t old = pte_val(*p); in pte_update() 326 unsigned long set = pte_val(entry) & in __ptep_set_access_flags() 338 return pte_val(pte) & _PAGE_ACCESSED; in pte_young() [all …]
|
/arch/mips/include/asm/ |
D | pgtable.h | 183 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) 184 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 185 #define pte_no_exec(pte) (pte_val(pte) & _PAGE_NO_EXEC) 196 if (pte_val(pteval) & _PAGE_GLOBAL) { 216 if (pte_val(*ptep_buddy(ptep)) & _PAGE_GLOBAL) 283 return pte_val(pte) & _PAGE_SPECIAL; 288 pte_val(pte) |= _PAGE_SPECIAL; 363 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } 364 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_MODIFIED; } 365 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } [all …]
|
/arch/xtensa/include/asm/ |
D | pgtable.h | 224 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 249 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER)) 251 # define pte_present(pte) ((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) 254 (((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) \ 255 || ((pte_val(pte) & _PAGE_ATTRIB_MASK) == _PAGE_NONE)) 265 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } in pte_write() 266 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 267 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 270 { pte_val(pte) &= ~(_PAGE_WRITABLE | _PAGE_HW_WRITE); return pte; } in pte_wrprotect() 272 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HW_WRITE); return pte; } in pte_mkclean() [all …]
|
/arch/ia64/include/asm/ |
D | pgtable.h | 187 #define pte_ERROR(e) printk("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e)) 245 ({ pte_t __pte; pte_val(__pte) = ((pfn) << PAGE_SHIFT) | pgprot_val(pgprot); __pte; }) 248 #define pte_pfn(_pte) ((pte_val(_pte) & _PFN_MASK) >> PAGE_SHIFT) 254 ({ pte_t __pte; pte_val(__pte) = physpage + pgprot_val(pgprot); __pte; }) 257 (__pte((pte_val(_pte) & ~_PAGE_CHG_MASK) | (pgprot_val(newprot) & _PAGE_CHG_MASK))) 259 #define pte_none(pte) (!pte_val(pte)) 260 #define pte_present(pte) (pte_val(pte) & (_PAGE_P | _PAGE_PROTNONE)) 261 #define pte_clear(mm,addr,pte) (pte_val(*(pte)) = 0UL) 263 #define pte_page(pte) virt_to_page(((pte_val(pte) & _PFN_MASK) + PAGE_OFFSET)) 291 #define pte_write(pte) ((unsigned) (((pte_val(pte) & _PAGE_AR_MASK) >> _PAGE_AR_SHIFT) - 2) <= 4) [all …]
|
/arch/csky/include/asm/ |
D | pgtable.h | 36 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) 37 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 42 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) 182 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); in pte_wrprotect() 188 pte_val(pte) &= ~(_PAGE_MODIFIED|_PAGE_DIRTY); in pte_mkclean() 194 pte_val(pte) &= ~(_PAGE_ACCESSED|_PAGE_VALID); in pte_mkold() 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() [all …]
|
/arch/parisc/include/asm/ |
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) 348 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 349 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 350 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 352 static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } in pte_mkclean() 353 static inline pte_t pte_mkold(pte_t pte) { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold() 354 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; } in pte_wrprotect() [all …]
|
/arch/powerpc/include/asm/nohash/64/ |
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() 113 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung() 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() [all …]
|
/arch/arm64/include/asm/ |
D | pgtable.h | 63 pr_err("%s:%d: bad pte %016llx.\n", __FILE__, __LINE__, pte_val(e)) 72 return (pte_val(pte) & PTE_ADDR_LOW) | in __pte_to_phys() 73 ((pte_val(pte) & PTE_ADDR_HIGH) << 36); in __pte_to_phys() 80 #define __pte_to_phys(pte) (pte_val(pte) & PTE_ADDR_MASK) 88 #define pte_none(pte) (!pte_val(pte)) 95 #define pte_present(pte) (!!(pte_val(pte) & (PTE_VALID | PTE_PROT_NONE))) 96 #define pte_young(pte) (!!(pte_val(pte) & PTE_AF)) 97 #define pte_special(pte) (!!(pte_val(pte) & PTE_SPECIAL)) 98 #define pte_write(pte) (!!(pte_val(pte) & PTE_WRITE)) 99 #define pte_user_exec(pte) (!(pte_val(pte) & PTE_UXN)) [all …]
|
/arch/sparc/include/asm/ |
D | pgtable_32.h | 120 srmmu_swap((unsigned long *)ptep, pte_val(pteval)); in set_pte() 166 return ((pte_val(pte) & SRMMU_ET_MASK) == SRMMU_ET_PTE); in pte_present() 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() [all …]
|
D | pgtable_64.h | 250 return __pmd(pte_val(pte)); in pfn_pmd() 269 : "r" (pte_val(pte)), in pte_pfn() 332 return __pte((pte_val(pte) & mask) | (pgprot_val(prot) & ~mask)); in pte_modify() 342 return __pmd(pte_val(pte)); in pmd_modify() 399 return __pte(pte_val(pte) | __pte_default_huge_mask()); in pte_mkhuge() 406 return (pte_val(pte) & mask) == mask; in is_default_hugetlb_pte() 425 pte_val(pte) |= _PAGE_PMD_HUGE; in pmd_mkhuge() 427 return __pmd(pte_val(pte)); in pmd_mkhuge() 439 unsigned long val = pte_val(pte), tmp; in pte_mkdirty() 463 unsigned long val = pte_val(pte), tmp; in pte_mkclean() [all …]
|
/arch/s390/include/asm/ |
D | pgtable.h | 70 pr_err("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e)) 760 return (pte_val(pte) & _PAGE_PRESENT) != 0; in pte_present() 766 return pte_val(pte) == _PAGE_INVALID; in pte_none() 772 return (pte_val(pte) & (_PAGE_PROTECT | _PAGE_PRESENT)) in pte_swap() 778 return (pte_val(pte) & _PAGE_SPECIAL); in pte_special() 784 return pte_val(a) == pte_val(b); in pte_same() 790 return pte_present(pte) && !(pte_val(pte) & _PAGE_READ); in pte_protnone() 802 return pte_val(pte) & _PAGE_SOFT_DIRTY; in pte_soft_dirty() 808 pte_val(pte) |= _PAGE_SOFT_DIRTY; in pte_mksoft_dirty() 815 pte_val(pte) &= ~_PAGE_SOFT_DIRTY; in pte_clear_soft_dirty() [all …]
|