/Linux-v4.19/arch/s390/mm/ |
D | hugetlbpage.c | 46 rste = pte_val(pte) & PAGE_MASK; in __pte_to_rste() 47 rste |= move_set_bit(pte_val(pte), _PAGE_READ, in __pte_to_rste() 49 rste |= move_set_bit(pte_val(pte), _PAGE_WRITE, in __pte_to_rste() 51 rste |= move_set_bit(pte_val(pte), _PAGE_INVALID, in __pte_to_rste() 53 rste |= move_set_bit(pte_val(pte), _PAGE_PROTECT, in __pte_to_rste() 55 rste |= move_set_bit(pte_val(pte), _PAGE_DIRTY, in __pte_to_rste() 57 rste |= move_set_bit(pte_val(pte), _PAGE_YOUNG, in __pte_to_rste() 60 rste |= move_set_bit(pte_val(pte), _PAGE_SOFT_DIRTY, in __pte_to_rste() 63 rste |= move_set_bit(pte_val(pte), _PAGE_NOEXEC, in __pte_to_rste() 101 pte_val(pte) = rste & _SEGMENT_ENTRY_ORIGIN_LARGE; in __rste_to_pte() [all …]
|
D | pgtable.c | 76 if (unlikely(pte_val(old) & _PAGE_INVALID)) in ptep_flush_direct() 95 if (unlikely(pte_val(old) & _PAGE_INVALID)) in ptep_flush_lazy() 100 pte_val(*ptep) |= _PAGE_INVALID; in ptep_flush_lazy() 161 if (!mm_uses_skeys(mm) || pte_val(pte) & _PAGE_INVALID) in pgste_update_all() 163 address = pte_val(pte) & PAGE_MASK; in pgste_update_all() 183 if (!mm_uses_skeys(mm) || pte_val(entry) & _PAGE_INVALID) in pgste_set_key() 185 VM_BUG_ON(!(pte_val(*ptep) & _PAGE_INVALID)); in pgste_set_key() 186 address = pte_val(entry) & PAGE_MASK; in pgste_set_key() 201 if ((pte_val(entry) & _PAGE_PRESENT) && in pgste_set_pte() 202 (pte_val(entry) & _PAGE_WRITE) && in pgste_set_pte() [all …]
|
/Linux-v4.19/arch/powerpc/include/asm/book3s/32/ |
D | pgtable.h | 101 (unsigned long long)pte_val(e)) 236 unsigned long set = pte_val(entry) & in __ptep_set_access_flags() 238 unsigned long clr = ~pte_val(entry) & _PAGE_RO; in __ptep_set_access_flags() 246 #define pte_same(A,B) (((pte_val(A) ^ pte_val(B)) & ~_PAGE_HASHPTE) == 0) 292 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 3 }) 298 static inline int pte_write(pte_t pte) { return !!(pte_val(pte) & _PAGE_RW);} in pte_write() 300 static inline int pte_dirty(pte_t pte) { return !!(pte_val(pte) & _PAGE_DIRTY); } in pte_dirty() 301 static inline int pte_young(pte_t pte) { return !!(pte_val(pte) & _PAGE_ACCESSED); } in pte_young() 302 static inline int pte_special(pte_t pte) { return !!(pte_val(pte) & _PAGE_SPECIAL); } in pte_special() 303 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none() [all …]
|
/Linux-v4.19/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() 208 __FILE__, __LINE__, pte_val(e)) 223 return pte_val(pte) & CF_PAGE_READABLE; in pte_read() 228 return pte_val(pte) & CF_PAGE_WRITABLE; in pte_write() 233 return pte_val(pte) & CF_PAGE_EXEC; in pte_exec() 238 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() 119 ((unsigned long) __va ((pte_val (pte) & SUN3_PAGE_PGNUM_MASK) << PAGE_SHIFT)) 123 static inline int pte_none (pte_t pte) { return !pte_val (pte); } in pte_none() 124 static inline int pte_present (pte_t pte) { return pte_val (pte) & SUN3_PAGE_VALID; } in pte_present() 127 pte_val (*ptep) = 0; in pte_clear() 130 #define pte_pfn(pte) (pte_val(pte) & SUN3_PAGE_PGNUM_MASK) 132 ({ pte_t __pte; pte_val(__pte) = pfn | pgprot_val(pgprot); __pte; }) 155 pr_err("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 167 static inline int pte_write(pte_t pte) { return pte_val(pte) & SUN3_PAGE_WRITEABLE; } in pte_write() 168 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & SUN3_PAGE_MODIFIED; } in pte_dirty() [all …]
|
D | motorola_pgtable.h | 105 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify() 125 #define __pte_page(pte) ((unsigned long)__va(pte_val(pte) & PAGE_MASK)) 130 #define pte_none(pte) (!pte_val(pte)) 131 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE)) 132 #define pte_clear(mm,addr,ptep) ({ pte_val(*(ptep)) = 0; }) 134 #define pte_page(pte) virt_to_page(__va(pte_val(pte))) 135 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) 157 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 168 static inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_RONLY); } in pte_write() 169 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() [all …]
|
/Linux-v4.19/arch/powerpc/include/asm/nohash/ |
D | pgtable.h | 16 return (pte_val(pte) & (_PAGE_RW | _PAGE_RO)) != _PAGE_RO; in pte_write() 19 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 20 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special() 21 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none() 22 static inline pgprot_t pte_pgprot(pte_t pte) { return __pgprot(pte_val(pte) & PAGE_PROT_BITS); } in pte_pgprot() 32 return (pte_val(pte) & in pte_protnone() 44 return pte_val(pte) & _PAGE_PRESENT; in pte_present() 77 return pte_val(pte) >> PTE_RPN_SHIFT; } in pte_pfn() 84 ptev = pte_val(pte) & ~(_PAGE_RW | _PAGE_HWWRITE); in pte_wrprotect() 91 return __pte(pte_val(pte) & ~(_PAGE_DIRTY | _PAGE_HWWRITE)); in pte_mkclean() [all …]
|
/Linux-v4.19/arch/openrisc/include/asm/ |
D | pgtable.h | 224 #define pte_none(x) (!pte_val(x)) 225 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 226 #define pte_clear(mm, addr, xp) do { pte_val(*(xp)) = 0; } while (0) 238 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_READ; } in pte_read() 239 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 240 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 241 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 242 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 248 pte_val(pte) &= ~(_PAGE_WRITE); in pte_wrprotect() 254 pte_val(pte) &= ~(_PAGE_READ); in pte_rdprotect() [all …]
|
/Linux-v4.19/arch/nds32/include/asm/ |
D | pgtable.h | 40 #define pte_ERROR(pte) __pte_error(__FILE__, __LINE__, pte_val(pte)) 187 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) 190 #define pte_none(pte) !(pte_val(pte)) 249 #define pte_present(pte) (pte_val(pte) & _PAGE_V) 250 #define pte_write(pte) ((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_URW_KRW) 251 #define pte_read(pte) (((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_UR_KR) || \ 252 ((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_UR_KRW) || \ 253 ((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_URW_KRW)) 254 #define pte_kernel_write(pte) (((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_URW_KRW) || \ 255 ((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_UR_KRW) || \ [all …]
|
/Linux-v4.19/arch/hexagon/include/asm/ |
D | pgtable.h | 179 #define pte_mkhuge(pte) __pte((pte_val(pte) & ~0x3) | HVM_HUGEPAGE_SIZE) 189 ((pte_val(pte) & (_PAGE_EXECUTE | _PAGE_USER)) == \ 222 pte_val(*ptep) = _NULL_PTE; in pte_clear() 296 return pte_val(pte) == _NULL_PTE; in pte_none() 304 return pte_val(pte) & _PAGE_PRESENT; in pte_present() 316 pte_val(pte) &= ~_PAGE_ACCESSED; in pte_mkold() 323 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung() 330 pte_val(pte) &= ~_PAGE_DIRTY; in pte_mkclean() 337 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty() 344 return pte_val(pte) & _PAGE_ACCESSED; in pte_young() [all …]
|
/Linux-v4.19/arch/microblaze/include/asm/ |
D | pgtable.h | 42 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) 169 __FILE__, __LINE__, pte_val(e)) 298 #define pte_none(pte) ((pte_val(pte) & ~_PTE_NONE_MASK) == 0) 299 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 309 ((pte_val(x) - memory_start) >> PAGE_SHIFT)) 312 #define pte_pfn(x) (pte_val(x) >> PFN_SHIFT_OFFSET) 334 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read() 335 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() 336 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 337 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/arch/riscv/include/asm/ |
D | pgtable.h | 153 return (pte_val(pte) >> _PAGE_PFN_SHIFT); in pte_pfn() 181 return (pte_val(pte) & _PAGE_PRESENT); in pte_present() 186 return (pte_val(pte) == 0); in pte_none() 191 return pte_val(pte) & _PAGE_WRITE; in pte_write() 196 return pte_val(pte) & _PAGE_EXEC; in pte_exec() 202 && (pte_val(pte) & (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)); in pte_huge() 207 return pte_val(pte) & _PAGE_DIRTY; in pte_dirty() 212 return pte_val(pte) & _PAGE_ACCESSED; in pte_young() 217 return pte_val(pte) & _PAGE_SPECIAL; in pte_special() 224 return __pte(pte_val(pte) & ~(_PAGE_WRITE)); in pte_wrprotect() [all …]
|
/Linux-v4.19/arch/nios2/include/asm/ |
D | pgtable.h | 111 { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 113 { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 115 { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 131 return !(pte_val(pte) & ~(_PAGE_GLOBAL|0xf)); in pte_none() 135 { return pte_val(pte) & _PAGE_PRESENT; } in pte_present() 143 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 149 pte_val(pte) &= ~_PAGE_DIRTY; in pte_mkclean() 155 pte_val(pte) &= ~_PAGE_ACCESSED; in pte_mkold() 161 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 167 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty() [all …]
|
/Linux-v4.19/arch/arm64/include/asm/ |
D | pgtable.h | 60 #define pte_ERROR(pte) __pte_error(__FILE__, __LINE__, pte_val(pte)) 68 ((pte_val(pte) & PTE_ADDR_LOW) | ((pte_val(pte) & PTE_ADDR_HIGH) << 36)) 71 #define __pte_to_phys(pte) (pte_val(pte) & PTE_ADDR_MASK) 79 #define pte_none(pte) (!pte_val(pte)) 86 #define pte_present(pte) (!!(pte_val(pte) & (PTE_VALID | PTE_PROT_NONE))) 87 #define pte_young(pte) (!!(pte_val(pte) & PTE_AF)) 88 #define pte_special(pte) (!!(pte_val(pte) & PTE_SPECIAL)) 89 #define pte_write(pte) (!!(pte_val(pte) & PTE_WRITE)) 90 #define pte_user_exec(pte) (!(pte_val(pte) & PTE_UXN)) 91 #define pte_cont(pte) (!!(pte_val(pte) & PTE_CONT)) [all …]
|
/Linux-v4.19/arch/sh/include/asm/ |
D | pgtable_64.h | 26 printk("%s:%d: bad pte %016Lx.\n", __FILE__, __LINE__, pte_val(e)) 229 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 231 #define pte_none(x) (pte_val(x) == _PTE_EMPTY) 243 #define pte_pagenr(x) (((unsigned long) (pte_val(x)) - \ 260 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 261 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 262 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 263 static inline int pte_special(pte_t pte){ return pte_val(pte) & _PAGE_SPECIAL; } in pte_special() 265 static inline pte_t pte_wrprotect(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_WRITE)); r… in pte_wrprotect() 266 static inline pte_t pte_mkclean(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_DIRTY)); ret… in pte_mkclean() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/arch/xtensa/include/asm/ |
D | pgtable.h | 229 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 255 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER)) 257 # define pte_present(pte) ((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) 260 (((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) \ 261 || ((pte_val(pte) & _PAGE_ATTRIB_MASK) == _PAGE_NONE)) 271 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } in pte_write() 272 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 273 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 277 { pte_val(pte) &= ~(_PAGE_WRITABLE | _PAGE_HW_WRITE); return pte; } in pte_wrprotect() 279 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HW_WRITE); return pte; } in pte_mkclean() [all …]
|
/Linux-v4.19/arch/s390/include/asm/ |
D | pgtable.h | 69 printk("%s:%d: bad pte %p.\n", __FILE__, __LINE__, (void *) pte_val(e)) 738 return (pte_val(pte) & _PAGE_PRESENT) != 0; in pte_present() 744 return pte_val(pte) == _PAGE_INVALID; in pte_none() 750 return (pte_val(pte) & (_PAGE_PROTECT | _PAGE_PRESENT)) in pte_swap() 756 return (pte_val(pte) & _PAGE_SPECIAL); in pte_special() 762 return pte_val(a) == pte_val(b); in pte_same() 768 return pte_present(pte) && !(pte_val(pte) & _PAGE_READ); in pte_protnone() 780 return pte_val(pte) & _PAGE_SOFT_DIRTY; in pte_soft_dirty() 786 pte_val(pte) |= _PAGE_SOFT_DIRTY; in pte_mksoft_dirty() 793 pte_val(pte) &= ~_PAGE_SOFT_DIRTY; in pte_clear_soft_dirty() [all …]
|
/Linux-v4.19/arch/parisc/include/asm/ |
D | pgtable.h | 60 ((pte_val(x) & (_PAGE_PRESENT|_PAGE_ACCESSED)) \ 80 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 293 #define pte_none(x) (pte_val(x) == 0) 294 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 358 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 359 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 360 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 363 static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } in pte_mkclean() 364 static inline pte_t pte_mkold(pte_t pte) { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold() 365 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; } in pte_wrprotect() [all …]
|
/Linux-v4.19/arch/sparc/include/asm/ |
D | pgtable_32.h | 118 srmmu_swap((unsigned long *)ptep, pte_val(pteval)); in set_pte() 147 return ((pte_val(pte) & SRMMU_ET_MASK) == SRMMU_ET_PTE); in pte_present() 152 return !pte_val(pte); in pte_none() 213 return pte_val(pte) & SRMMU_WRITE; in pte_write() 218 return pte_val(pte) & SRMMU_DIRTY; in pte_dirty() 223 return pte_val(pte) & SRMMU_REF; in pte_young() 233 return __pte(pte_val(pte) & ~SRMMU_WRITE); in pte_wrprotect() 238 return __pte(pte_val(pte) & ~SRMMU_DIRTY); in pte_mkclean() 243 return __pte(pte_val(pte) & ~SRMMU_REF); in pte_mkold() 248 return __pte(pte_val(pte) | SRMMU_WRITE); in pte_mkwrite() [all …]
|
D | pgtable_64.h | 283 return __pmd(pte_val(pte)); in pfn_pmd() 302 : "r" (pte_val(pte)), in pte_pfn() 365 return __pte((pte_val(pte) & mask) | (pgprot_val(prot) & ~mask)); in pte_modify() 375 return __pmd(pte_val(pte)); in pmd_modify() 433 return __pte(pte_val(pte) | __pte_default_huge_mask()); in pte_mkhuge() 440 return (pte_val(pte) & mask) == mask; in is_default_hugetlb_pte() 459 pte_val(pte) |= _PAGE_PMD_HUGE; in pmd_mkhuge() 461 return __pmd(pte_val(pte)); in pmd_mkhuge() 473 unsigned long val = pte_val(pte), tmp; in pte_mkdirty() 497 unsigned long val = pte_val(pte), tmp; in pte_mkclean() [all …]
|
/Linux-v4.19/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) { 250 pte_val(*buddy) = pte_val(*buddy) | _PAGE_GLOBAL; 261 if (pte_val(*ptep_buddy(ptep)) & _PAGE_GLOBAL) 379 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } 380 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_MODIFIED; } 381 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } 385 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); [all …]
|
/Linux-v4.19/arch/arc/include/asm/ |
D | pgtable.h | 247 pr_crit("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 273 #define pte_none(x) (!pte_val(x)) 274 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 287 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) 302 #define pte_read(pte) (pte_val(pte) & _PAGE_READ) 303 #define pte_write(pte) (pte_val(pte) & _PAGE_WRITE) 304 #define pte_dirty(pte) (pte_val(pte) & _PAGE_DIRTY) 305 #define pte_young(pte) (pte_val(pte) & _PAGE_ACCESSED) 306 #define pte_special(pte) (pte_val(pte) & _PAGE_SPECIAL) 309 static inline pte_t pte_##fn(pte_t pte) { pte_val(pte) op; return pte; } [all …]
|
/Linux-v4.19/arch/unicore32/include/asm/ |
D | pgtable.h | 53 #define pte_ERROR(pte) __pte_error(__FILE__, __LINE__, pte_val(pte)) 153 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) 157 #define pte_none(pte) (!pte_val(pte)) 178 #define pte_present(pte) (pte_val(pte) & PTE_PRESENT) 179 #define pte_write(pte) (pte_val(pte) & PTE_WRITE) 180 #define pte_dirty(pte) (pte_val(pte) & PTE_DIRTY) 181 #define pte_young(pte) (pte_val(pte) & PTE_YOUNG) 182 #define pte_exec(pte) (pte_val(pte) & PTE_EXEC) 186 static inline pte_t pte_##fn(pte_t pte) { pte_val(pte) op; return pte; } 247 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify() [all …]
|