/kernel/linux/linux-5.10/arch/m68k/include/asm/ |
D | mcf_pgtable.h | 161 pte_val(pte) = (pte_val(pte) & CF_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify() 172 #define __pte_page(pte) ((unsigned long) (pte_val(pte) & PAGE_MASK)) 177 return !pte_val(pte); in pte_none() 182 return pte_val(pte) & CF_PAGE_VALID; in pte_present() 188 pte_val(*ptep) = 0; in pte_clear() 203 __FILE__, __LINE__, pte_val(e)) 215 return pte_val(pte) & CF_PAGE_READABLE; in pte_read() 220 return pte_val(pte) & CF_PAGE_WRITABLE; in pte_write() 225 return pte_val(pte) & CF_PAGE_EXEC; in pte_exec() 230 return pte_val(pte) & CF_PAGE_DIRTY; in pte_dirty() [all …]
|
D | motorola_pgtable.h | 116 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify() 130 #define __pte_page(pte) ((unsigned long)__va(pte_val(pte) & PAGE_MASK)) 135 #define pte_none(pte) (!pte_val(pte)) 136 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE)) 137 #define pte_clear(mm,addr,ptep) ({ pte_val(*(ptep)) = 0; }) 139 #define pte_page(pte) virt_to_page(__va(pte_val(pte))) 140 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) 163 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 174 static inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_RONLY); } in pte_write() 175 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _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 …]
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/book3s/32/ |
D | pgtable.h | 22 return pte_val(pte) & _PAGE_USER; in pte_user() 211 (unsigned long long)pte_val(e)) 324 unsigned long set = pte_val(entry) & in __ptep_set_access_flags() 333 #define pte_same(A,B) (((pte_val(A) ^ pte_val(B)) & ~_PAGE_HASHPTE) == 0) 347 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 3 }) 351 static inline int pte_write(pte_t pte) { return !!(pte_val(pte) & _PAGE_RW);} in pte_write() 353 static inline int pte_dirty(pte_t pte) { return !!(pte_val(pte) & _PAGE_DIRTY); } in pte_dirty() 354 static inline int pte_young(pte_t pte) { return !!(pte_val(pte) & _PAGE_ACCESSED); } in pte_young() 355 static inline int pte_special(pte_t pte) { return !!(pte_val(pte) & _PAGE_SPECIAL); } in pte_special() 356 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/arch/microblaze/include/asm/ |
D | pgtable.h | 38 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) 152 __FILE__, __LINE__, pte_val(e)) 278 #define pte_none(pte) ((pte_val(pte) & ~_PTE_NONE_MASK) == 0) 279 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 289 ((pte_val(x) - memory_start) >> PAGE_SHIFT)) 292 #define pte_pfn(x) (pte_val(x) >> PFN_SHIFT_OFFSET) 302 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read() 303 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() 304 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 305 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() [all …]
|
/kernel/linux/linux-5.10/arch/hexagon/include/asm/ |
D | pgtable.h | 163 #define pte_mkhuge(pte) __pte((pte_val(pte) & ~0x3) | HVM_HUGEPAGE_SIZE) 173 ((pte_val(pte) & (_PAGE_EXECUTE | _PAGE_USER)) == \ 206 pte_val(*ptep) = _NULL_PTE; in pte_clear() 253 return pte_val(pte) == _NULL_PTE; in pte_none() 261 return pte_val(pte) & _PAGE_PRESENT; in pte_present() 273 pte_val(pte) &= ~_PAGE_ACCESSED; in pte_mkold() 280 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung() 287 pte_val(pte) &= ~_PAGE_DIRTY; in pte_mkclean() 294 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty() 301 return pte_val(pte) & _PAGE_ACCESSED; in pte_young() [all …]
|
/kernel/linux/linux-5.10/arch/openrisc/include/asm/ |
D | pgtable.h | 219 #define pte_none(x) (!pte_val(x)) 220 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 221 #define pte_clear(mm, addr, xp) do { pte_val(*(xp)) = 0; } while (0) 233 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_READ; } in pte_read() 234 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 235 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 236 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 237 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 241 pte_val(pte) &= ~(_PAGE_WRITE); in pte_wrprotect() 247 pte_val(pte) &= ~(_PAGE_READ); in pte_rdprotect() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/ |
D | pgtable.h | 45 return pte_val(pte) & _PAGE_RW; in pte_write() 49 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 50 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special() 51 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none() 53 static inline bool pte_ci(pte_t pte) { return pte_val(pte) & _PAGE_NO_CACHE; } in pte_ci() 54 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 75 return pte_val(pte) & _PAGE_PRESENT; in pte_present() 80 return pte_val(pte) & _PAGE_PRESENT; in pte_hw_valid() 91 return (pte_val(pte) & _PAGE_USER) == _PAGE_USER; in pte_user() 125 return pte_val(pte) >> PTE_RPN_SHIFT; } in pte_pfn() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/arch/nios2/include/asm/ |
D | pgtable.h | 106 { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 108 { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 110 { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 125 return !(pte_val(pte) & ~(_PAGE_GLOBAL|0xf)); in pte_none() 129 { return pte_val(pte) & _PAGE_PRESENT; } in pte_present() 137 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 143 pte_val(pte) &= ~_PAGE_DIRTY; in pte_mkclean() 149 pte_val(pte) &= ~_PAGE_ACCESSED; in pte_mkold() 155 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 161 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty() [all …]
|
/kernel/linux/linux-5.10/arch/alpha/include/asm/ |
D | pgtable.h | 209 #define pte_pfn(pte) (pte_val(pte) >> 32) 215 pte_val(pte) = (page_to_pfn(page) << 32) | pgprot_val(pgprot); \ 221 { pte_t pte; pte_val(pte) = (PHYS_TWIDDLE(physpfn) << 32) | pgprot_val(pgprot); return pte; } in pfn_pte() 224 { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } in pte_modify() 247 extern inline int pte_none(pte_t pte) { return !pte_val(pte); } in pte_none() 248 extern inline int pte_present(pte_t pte) { return pte_val(pte) & _PAGE_VALID; } in pte_present() 251 pte_val(*ptep) = 0; in pte_clear() 268 extern inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_FOW); } in pte_write() 269 extern inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 270 extern inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() [all …]
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
D | pgtable.h | 188 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) 189 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 190 #define pte_no_exec(pte) (pte_val(pte) & _PAGE_NO_EXEC) 201 if (pte_val(pteval) & _PAGE_GLOBAL) { 221 if (pte_val(*ptep_buddy(ptep)) & _PAGE_GLOBAL) 289 return pte_val(pte) & _PAGE_SPECIAL; 294 pte_val(pte) |= _PAGE_SPECIAL; 369 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } 370 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_MODIFIED; } 371 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/32/ |
D | pgtable.h | 61 (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() 199 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec() 250 pte_basic_t old = pte_val(*p); in pte_update() 278 pte_basic_t old = pte_val(*p); in pte_update() 313 unsigned long clr = ~pte_val(pte_wrprotect(__pte(~0))); in ptep_set_wrprotect() 314 unsigned long set = pte_val(pte_wrprotect(__pte(0))); in ptep_set_wrprotect() [all …]
|
/kernel/linux/linux-5.10/arch/ia64/include/asm/ |
D | pgtable.h | 188 #define pte_ERROR(e) printk("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e)) 251 ({ pte_t __pte; pte_val(__pte) = ((pfn) << PAGE_SHIFT) | pgprot_val(pgprot); __pte; }) 254 #define pte_pfn(_pte) ((pte_val(_pte) & _PFN_MASK) >> PAGE_SHIFT) 260 ({ pte_t __pte; pte_val(__pte) = physpage + pgprot_val(pgprot); __pte; }) 263 (__pte((pte_val(_pte) & ~_PAGE_CHG_MASK) | (pgprot_val(newprot) & _PAGE_CHG_MASK))) 265 #define pte_none(pte) (!pte_val(pte)) 266 #define pte_present(pte) (pte_val(pte) & (_PAGE_P | _PAGE_PROTNONE)) 267 #define pte_clear(mm,addr,pte) (pte_val(*(pte)) = 0UL) 269 #define pte_page(pte) virt_to_page(((pte_val(pte) & _PFN_MASK) + PAGE_OFFSET)) 297 #define pte_write(pte) ((unsigned) (((pte_val(pte) & _PAGE_AR_MASK) >> _PAGE_AR_SHIFT) - 2) <= 4) [all …]
|
/kernel/linux/linux-5.10/arch/riscv/include/asm/ |
D | pgtable.h | 192 return (pte_val(pte) >> _PAGE_PFN_SHIFT); in pte_pfn() 207 return (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROT_NONE)); in pte_present() 212 return (pte_val(pte) == 0); in pte_none() 217 return pte_val(pte) & _PAGE_WRITE; in pte_write() 222 return pte_val(pte) & _PAGE_EXEC; in pte_exec() 228 && (pte_val(pte) & (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)); in pte_huge() 233 return pte_val(pte) & _PAGE_DIRTY; in pte_dirty() 238 return pte_val(pte) & _PAGE_ACCESSED; in pte_young() 243 return pte_val(pte) & _PAGE_SPECIAL; in pte_special() 250 return __pte(pte_val(pte) & ~(_PAGE_WRITE)); in pte_wrprotect() [all …]
|
/kernel/linux/linux-5.10/arch/xtensa/include/asm/ |
D | pgtable.h | 225 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 250 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER)) 252 # define pte_present(pte) ((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) 255 (((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) \ 256 || ((pte_val(pte) & _PAGE_ATTRIB_MASK) == _PAGE_NONE)) 266 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } in pte_write() 267 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 268 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 271 { pte_val(pte) &= ~(_PAGE_WRITABLE | _PAGE_HW_WRITE); return pte; } in pte_wrprotect() 273 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HW_WRITE); return pte; } in pte_mkclean() [all …]
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
D | pgtable.h | 65 pr_err("%s:%d: bad pte %016llx.\n", __FILE__, __LINE__, pte_val(e)) 74 return (pte_val(pte) & PTE_ADDR_LOW) | in __pte_to_phys() 75 ((pte_val(pte) & PTE_ADDR_HIGH) << 36); in __pte_to_phys() 82 #define __pte_to_phys(pte) (pte_val(pte) & PTE_ADDR_MASK) 90 #define pte_none(pte) (!pte_val(pte)) 97 #define pte_present(pte) (!!(pte_val(pte) & (PTE_VALID | PTE_PROT_NONE))) 98 #define pte_young(pte) (!!(pte_val(pte) & PTE_AF)) 99 #define pte_special(pte) (!!(pte_val(pte) & PTE_SPECIAL)) 100 #define pte_write(pte) (!!(pte_val(pte) & PTE_WRITE)) 101 #define pte_user_exec(pte) (!(pte_val(pte) & PTE_UXN)) [all …]
|
/kernel/linux/linux-5.10/arch/csky/include/asm/ |
D | pgtable.h | 38 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) 39 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 54 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) 183 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); in pte_wrprotect() 189 pte_val(pte) &= ~(_PAGE_MODIFIED|_PAGE_DIRTY); in pte_mkclean() 195 pte_val(pte) &= ~(_PAGE_ACCESSED|_PAGE_VALID); in pte_mkold() 201 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 202 if (pte_val(pte) & _PAGE_MODIFIED) in pte_mkwrite() 203 pte_val(pte) |= _PAGE_DIRTY; in pte_mkwrite() 209 pte_val(pte) |= _PAGE_MODIFIED; in pte_mkdirty() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/64/ |
D | pgtable.h | 105 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite() 110 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 115 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung() 120 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 125 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec() 178 return __pud(pte_val(pte)); in pte_pud() 195 unsigned long old = pte_val(*ptep); in pte_update() 207 return pte_val(pte) & _PAGE_ACCESSED; in pte_young() 233 if ((pte_val(*ptep) & _PAGE_RW) == 0) in ptep_set_wrprotect() 243 if ((pte_val(*ptep) & _PAGE_RW) == 0) in huge_ptep_set_wrprotect() [all …]
|
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
D | pgtable_64.h | 253 return __pmd(pte_val(pte)); in pfn_pmd() 272 : "r" (pte_val(pte)), in pte_pfn() 335 return __pte((pte_val(pte) & mask) | (pgprot_val(prot) & ~mask)); in pte_modify() 345 return __pmd(pte_val(pte)); in pmd_modify() 403 return __pte(pte_val(pte) | __pte_default_huge_mask()); in pte_mkhuge() 410 return (pte_val(pte) & mask) == mask; in is_default_hugetlb_pte() 429 pte_val(pte) |= _PAGE_PMD_HUGE; in pmd_mkhuge() 431 return __pmd(pte_val(pte)); in pmd_mkhuge() 443 unsigned long val = pte_val(pte), tmp; in pte_mkdirty() 467 unsigned long val = pte_val(pte), tmp; in pte_mkclean() [all …]
|
D | pgtable_32.h | 121 srmmu_swap((unsigned long *)ptep, pte_val(pteval)); in set_pte() 167 return ((pte_val(pte) & SRMMU_ET_MASK) == SRMMU_ET_PTE); in pte_present() 172 return !pte_val(pte); in pte_none() 231 return pte_val(pte) & SRMMU_WRITE; in pte_write() 236 return pte_val(pte) & SRMMU_DIRTY; in pte_dirty() 241 return pte_val(pte) & SRMMU_REF; in pte_young() 246 return __pte(pte_val(pte) & ~SRMMU_WRITE); in pte_wrprotect() 251 return __pte(pte_val(pte) & ~SRMMU_DIRTY); in pte_mkclean() 256 return __pte(pte_val(pte) & ~SRMMU_REF); in pte_mkold() 261 return __pte(pte_val(pte) | SRMMU_WRITE); in pte_mkwrite() [all …]
|
/kernel/linux/linux-5.10/arch/parisc/include/asm/ |
D | pgtable.h | 106 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 318 #define pte_none(x) (pte_val(x) == 0) 319 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 375 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 376 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 377 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 379 static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } in pte_mkclean() 380 static inline pte_t pte_mkold(pte_t pte) { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold() 381 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; } in pte_wrprotect() 382 static inline pte_t pte_mkdirty(pte_t pte) { pte_val(pte) |= _PAGE_DIRTY; return pte; } in pte_mkdirty() [all …]
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
D | pgtable.h | 70 printk("%s:%d: bad pte %p.\n", __FILE__, __LINE__, (void *) pte_val(e)) 765 return (pte_val(pte) & _PAGE_PRESENT) != 0; in pte_present() 771 return pte_val(pte) == _PAGE_INVALID; in pte_none() 777 return (pte_val(pte) & (_PAGE_PROTECT | _PAGE_PRESENT)) in pte_swap() 783 return (pte_val(pte) & _PAGE_SPECIAL); in pte_special() 789 return pte_val(a) == pte_val(b); in pte_same() 795 return pte_present(pte) && !(pte_val(pte) & _PAGE_READ); in pte_protnone() 807 return pte_val(pte) & _PAGE_SOFT_DIRTY; in pte_soft_dirty() 813 pte_val(pte) |= _PAGE_SOFT_DIRTY; in pte_mksoft_dirty() 820 pte_val(pte) &= ~_PAGE_SOFT_DIRTY; in pte_clear_soft_dirty() [all …]
|