/arch/cris/include/asm/ |
D | pgtable.h | 95 #define pte_none(x) (!pte_val(x)) 96 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 97 #define pte_clear(mm,addr,xp) do { pte_val(*(xp)) = 0; } while (0) 114 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 115 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_MODIFIED; } in pte_dirty() 116 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 117 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 122 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); in pte_wrprotect() 128 pte_val(pte) &= ~(_PAGE_MODIFIED | _PAGE_SILENT_WRITE); in pte_mkclean() 134 pte_val(pte) &= ~(_PAGE_ACCESSED | _PAGE_SILENT_READ); in pte_mkold() [all …]
|
/arch/powerpc/include/asm/ |
D | pgtable.h | 33 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() 34 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 35 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 36 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 37 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special() 38 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none() 39 static inline pgprot_t pte_pgprot(pte_t pte) { return __pgprot(pte_val(pte) & PAGE_PROT_BITS); } in pte_pgprot() 44 return pte_val(pte) & _PAGE_NUMA_MASK; in pte_present() 50 return pte_val(pte) & (_PAGE_PRESENT); in pte_present_nonuma() 57 if ((pte_val(*ptep) & _PAGE_PRESENT) == 0) in ptep_set_numa() [all …]
|
/arch/s390/mm/ |
D | hugetlbpage.c | 33 pmd_val(pmd) = pte_val(pte) & PAGE_MASK; in __pte_to_pmd() 34 pmd_val(pmd) |= (pte_val(pte) & _PAGE_READ) >> 4; in __pte_to_pmd() 35 pmd_val(pmd) |= (pte_val(pte) & _PAGE_WRITE) >> 4; in __pte_to_pmd() 36 pmd_val(pmd) |= (pte_val(pte) & _PAGE_INVALID) >> 5; in __pte_to_pmd() 37 pmd_val(pmd) |= (pte_val(pte) & _PAGE_PROTECT); in __pte_to_pmd() 38 pmd_val(pmd) |= (pte_val(pte) & _PAGE_DIRTY) << 10; in __pte_to_pmd() 39 pmd_val(pmd) |= (pte_val(pte) & _PAGE_YOUNG) << 10; in __pte_to_pmd() 67 pte_val(pte) = pmd_val(pmd) & _SEGMENT_ENTRY_ORIGIN_LARGE; in __pmd_to_pte() 68 pte_val(pte) |= _PAGE_LARGE | _PAGE_PRESENT; in __pmd_to_pte() 69 pte_val(pte) |= (pmd_val(pmd) & _SEGMENT_ENTRY_READ) << 4; in __pmd_to_pte() [all …]
|
/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() 243 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 249 pte_val(pte) &= ~(_PAGE_WRITE); in pte_wrprotect() [all …]
|
/arch/hexagon/include/asm/ |
D | pgtable.h | 187 #define pte_mkhuge(pte) __pte((pte_val(pte) & ~0x3) | HVM_HUGEPAGE_SIZE) 197 ((pte_val(pte) & (_PAGE_EXECUTE | _PAGE_USER)) == \ 230 pte_val(*ptep) = _NULL_PTE; in pte_clear() 304 return pte_val(pte) == _NULL_PTE; in pte_none() 312 return pte_val(pte) & _PAGE_PRESENT; in pte_present() 324 pte_val(pte) &= ~_PAGE_ACCESSED; in pte_mkold() 331 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung() 338 pte_val(pte) &= ~_PAGE_DIRTY; in pte_mkclean() 345 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty() 352 return pte_val(pte) & _PAGE_ACCESSED; in pte_young() [all …]
|
/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 | 108 pte_val(pte) = (pte_val(pte) & SUN3_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify() 120 ((unsigned long) __va ((pte_val (pte) & SUN3_PAGE_PGNUM_MASK) << PAGE_SHIFT)) 124 static inline int pte_none (pte_t pte) { return !pte_val (pte); } in pte_none() 125 static inline int pte_present (pte_t pte) { return pte_val (pte) & SUN3_PAGE_VALID; } in pte_present() 128 pte_val (*ptep) = 0; in pte_clear() 131 #define pte_pfn(pte) (pte_val(pte) & SUN3_PAGE_PGNUM_MASK) 133 ({ pte_t __pte; pte_val(__pte) = pfn | pgprot_val(pgprot); __pte; }) 156 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) & SUN3_PAGE_WRITEABLE; } in pte_write() 169 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 …]
|
/arch/score/include/asm/ |
D | pgtable.h | 40 __FILE__, __LINE__, pte_val(e)) 103 ((swp_entry_t) { pte_val(pte)}) 129 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) 130 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 188 return pte_val(pte) & _PAGE_WRITE; in pte_write() 193 return pte_val(pte) & _PAGE_MODIFIED; in pte_dirty() 198 return pte_val(pte) & _PAGE_ACCESSED; in pte_young() 203 return pte_val(pte) & _PAGE_FILE; in pte_file() 210 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); in pte_wrprotect() 216 pte_val(pte) &= ~(_PAGE_MODIFIED|_PAGE_SILENT_WRITE); in pte_mkclean() [all …]
|
/arch/microblaze/include/asm/ |
D | pgtable.h | 40 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) 169 __FILE__, __LINE__, pte_val(e)) 299 #define pte_none(pte) ((pte_val(pte) & ~_PTE_NONE_MASK) == 0) 300 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 310 ((pte_val(x) - memory_start) >> PAGE_SHIFT)) 313 #define pte_pfn(x) (pte_val(x) >> PFN_SHIFT_OFFSET) 335 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read() 336 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() 337 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 338 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() [all …]
|
/arch/mn10300/include/asm/ |
D | pgtable.h | 217 #define pte_present(x) (pte_val(x) & _PAGE_VALID) 237 static inline int pte_user(pte_t pte) { return pte_val(pte) & __PAGE_PROT_USER; } in pte_user() 238 static inline int pte_read(pte_t pte) { return pte_val(pte) & __PAGE_PROT_USER; } in pte_read() 239 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 240 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 241 static inline int pte_write(pte_t pte) { return pte_val(pte) & __PAGE_PROT_WRITE; } in pte_write() 247 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 251 pte_val(pte) &= ~(__PAGE_PROT_USER|__PAGE_PROT_UWAUX); return pte; in pte_rdprotect() 255 pte_val(pte) |= _PAGE_NX; return pte; in pte_exprotect() 260 pte_val(pte) &= ~(__PAGE_PROT_WRITE|__PAGE_PROT_UWAUX); return pte; in pte_wrprotect() [all …]
|
/arch/sh/include/asm/ |
D | pgtable_64.h | 26 printk("%s:%d: bad pte %016Lx.\n", __FILE__, __LINE__, pte_val(e)) 230 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 232 #define pte_none(x) (pte_val(x) == _PTE_EMPTY) 244 #define pte_pagenr(x) (((unsigned long) (pte_val(x)) - \ 261 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 262 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 263 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 264 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 265 static inline int pte_special(pte_t pte){ return pte_val(pte) & _PAGE_SPECIAL; } in pte_special() 267 static inline pte_t pte_wrprotect(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_WRITE)); r… in pte_wrprotect() [all …]
|
/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 …]
|
/arch/s390/include/asm/ |
D | pgtable.h | 105 printk("%s:%d: bad pte %p.\n", __FILE__, __LINE__, (void *) pte_val(e)) 640 return (pte_val(pte) & _PAGE_PRESENT) != 0; in pte_present() 646 return pte_val(pte) == _PAGE_INVALID; in pte_none() 652 return (pte_val(pte) & (_PAGE_INVALID | _PAGE_PROTECT | in pte_swap() 660 return (pte_val(pte) & (_PAGE_INVALID | _PAGE_PROTECT | _PAGE_PRESENT)) in pte_file() 666 return (pte_val(pte) & _PAGE_SPECIAL); in pte_special() 672 return pte_val(a) == pte_val(b); in pte_same() 730 if (!mm_use_skey(mm) || pte_val(*ptep) & _PAGE_INVALID) in pgste_update_all() 732 address = pte_val(*ptep) & PAGE_MASK; in pgste_update_all() 752 if (!mm_use_skey(mm) || pte_val(entry) & _PAGE_INVALID) in pgste_set_key() [all …]
|
/arch/xtensa/include/asm/ |
D | pgtable.h | 217 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 243 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER)) 245 # define pte_present(pte) ((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) 248 (((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) \ 249 || ((pte_val(pte) & _PAGE_ATTRIB_MASK) == _PAGE_NONE)) 259 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } in pte_write() 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_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 266 { pte_val(pte) &= ~(_PAGE_WRITABLE | _PAGE_HW_WRITE); return pte; } in pte_wrprotect() [all …]
|
/arch/metag/include/asm/ |
D | pgtable.h | 198 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) 202 #define pte_none(x) (!pte_val(x)) 203 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 204 #define pte_clear(mm, addr, xp) do { pte_val(*(xp)) = 0; } while (0) 219 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 220 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 221 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 222 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 225 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= (~_PAGE_WRITE); return pte; } in pte_wrprotect() 226 static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } in pte_mkclean() [all …]
|
/arch/ia64/include/asm/ |
D | pgtable.h | 190 #define pte_ERROR(e) printk("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e)) 253 ({ pte_t __pte; pte_val(__pte) = ((pfn) << PAGE_SHIFT) | pgprot_val(pgprot); __pte; }) 256 #define pte_pfn(_pte) ((pte_val(_pte) & _PFN_MASK) >> PAGE_SHIFT) 262 ({ pte_t __pte; pte_val(__pte) = physpage + pgprot_val(pgprot); __pte; }) 265 (__pte((pte_val(_pte) & ~_PAGE_CHG_MASK) | (pgprot_val(newprot) & _PAGE_CHG_MASK))) 267 #define pte_none(pte) (!pte_val(pte)) 268 #define pte_present(pte) (pte_val(pte) & (_PAGE_P | _PAGE_PROTNONE)) 269 #define pte_clear(mm,addr,pte) (pte_val(*(pte)) = 0UL) 271 #define pte_page(pte) virt_to_page(((pte_val(pte) & _PFN_MASK) + PAGE_OFFSET)) 299 #define pte_write(pte) ((unsigned) (((pte_val(pte) & _PAGE_AR_MASK) >> _PAGE_AR_SHIFT) - 2) <= 4) [all …]
|
/arch/m32r/include/asm/ |
D | pgtable-2level.h | 22 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 66 #define pte_same(a, b) (pte_val(a) == pte_val(b)) 68 #define pte_none(x) (!pte_val(x)) 69 #define pte_pfn(x) (pte_val(x) >> PAGE_SHIFT) 74 #define pte_to_pgoff(pte) (((pte_val(pte) >> 2) & 0x7f) | (((pte_val(pte) >> 10)) << 7))
|
D | pgtable.h | 180 #define pte_present(x) (pte_val(x) & (_PAGE_PRESENT | _PAGE_PROTNONE)) 196 return pte_val(pte) & _PAGE_DIRTY; in pte_dirty() 201 return pte_val(pte) & _PAGE_ACCESSED; in pte_young() 206 return pte_val(pte) & _PAGE_WRITE; in pte_write() 214 return pte_val(pte) & _PAGE_FILE; in pte_file() 224 pte_val(pte) &= ~_PAGE_DIRTY; in pte_mkclean() 230 pte_val(pte) &= ~_PAGE_ACCESSED; in pte_mkold() 236 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 242 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty() 248 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung() [all …]
|
/arch/avr32/include/asm/ |
D | pgtable.h | 184 #define pte_none(x) (!pte_val(x)) 185 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 198 return pte_val(pte) & _PAGE_RW; in pte_write() 202 return pte_val(pte) & _PAGE_DIRTY; in pte_dirty() 206 return pte_val(pte) & _PAGE_ACCESSED; in pte_young() 218 return pte_val(pte) & _PAGE_FILE; in pte_file() 224 set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_RW)); in pte_wrprotect() 229 set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_DIRTY)); in pte_mkclean() 234 set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_ACCESSED)); in pte_mkold() 239 set_pte(&pte, __pte(pte_val(pte) | _PAGE_RW)); in pte_mkwrite() [all …]
|
/arch/mips/include/asm/ |
D | pgtable.h | 168 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) 169 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 180 if (pte_val(pteval) & _PAGE_GLOBAL) { in set_pte() 217 pte_val(*buddy) = pte_val(*buddy) | _PAGE_GLOBAL; in set_pte() 229 if (pte_val(*ptep_buddy(ptep)) & _PAGE_GLOBAL) in pte_clear() 317 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 318 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_MODIFIED; } in pte_dirty() 319 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 320 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 324 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); in pte_wrprotect() [all …]
|
/arch/arc/include/asm/ |
D | pgtable.h | 226 pr_crit("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 252 #define pte_none(x) (!pte_val(x)) 253 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 262 (unsigned long)(((pte_val(x) - CONFIG_LINUX_LINK_BASE) >> \ 268 pte_val(pte) = __pa(page_address(page)) + pgprot_val(pgprot); \ 275 return pte_val(pte) & _PAGE_FILE; in pte_file() 280 #define pte_to_pgoff(x) (pte_val(x) >> 2) 281 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) 297 #define pte_read(pte) (pte_val(pte) & _PAGE_READ) 298 #define pte_write(pte) (pte_val(pte) & _PAGE_WRITE) [all …]
|
/arch/unicore32/include/asm/ |
D | pgtable.h | 52 #define pte_ERROR(pte) __pte_error(__FILE__, __LINE__, pte_val(pte)) 152 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) 156 #define pte_none(pte) (!pte_val(pte)) 177 #define pte_present(pte) (pte_val(pte) & PTE_PRESENT) 178 #define pte_write(pte) (pte_val(pte) & PTE_WRITE) 179 #define pte_dirty(pte) (pte_val(pte) & PTE_DIRTY) 180 #define pte_young(pte) (pte_val(pte) & PTE_YOUNG) 181 #define pte_exec(pte) (pte_val(pte) & PTE_EXEC) 185 static inline pte_t pte_##fn(pte_t pte) { pte_val(pte) op; return pte; } 246 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify() [all …]
|
/arch/parisc/include/asm/ |
D | pgtable.h | 61 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 174 #define pte_to_pgoff(pte) (pte_val(pte) >> PTE_SHIFT) 279 #define pte_none(x) (pte_val(x) == 0) 280 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 281 #define pte_clear(mm,addr,xp) do { pte_val(*(xp)) = 0; } while (0) 344 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 345 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 346 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 347 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 350 static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } in pte_mkclean() [all …]
|
/arch/sparc/include/asm/ |
D | pgtable_32.h | 116 srmmu_swap((unsigned long *)ptep, pte_val(pteval)); in set_pte() 145 return ((pte_val(pte) & SRMMU_ET_MASK) == SRMMU_ET_PTE); in pte_present() 150 return !pte_val(pte); in pte_none() 211 return pte_val(pte) & SRMMU_WRITE; in pte_write() 216 return pte_val(pte) & SRMMU_DIRTY; in pte_dirty() 221 return pte_val(pte) & SRMMU_REF; in pte_young() 229 return pte_val(pte) & SRMMU_FILE; in pte_file() 239 return __pte(pte_val(pte) & ~SRMMU_WRITE); in pte_wrprotect() 244 return __pte(pte_val(pte) & ~SRMMU_DIRTY); in pte_mkclean() 249 return __pte(pte_val(pte) & ~SRMMU_REF); in pte_mkold() [all …]
|