/arch/m32r/include/asm/ |
D | pgtable.h | 98 #define _PAGE_WRITE (1UL << _PAGE_BIT_WRITE) macro 105 ( _PAGE_PRESENT | _PAGE_WRITE | _PAGE_READ | _PAGE_ACCESSED \ 108 ( _PAGE_PRESENT | _PAGE_WRITE | _PAGE_READ | _PAGE_ACCESSED \ 117 __pgprot(_PAGE_PRESENT | _PAGE_WRITE | _PAGE_READ | _PAGE_ACCESSED) 119 __pgprot(_PAGE_PRESENT | _PAGE_EXEC | _PAGE_WRITE | _PAGE_READ \ 131 ( _PAGE_PRESENT | _PAGE_EXEC | _PAGE_WRITE | _PAGE_READ | _PAGE_DIRTY \ 133 #define __PAGE_KERNEL_RO ( __PAGE_KERNEL & ~_PAGE_WRITE ) 203 return pte_val(pte) & _PAGE_WRITE; in pte_write() 225 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 243 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
|
/arch/hexagon/include/asm/ |
D | pgtable.h | 49 #define _PAGE_WRITE __HVM_PTE_W macro 130 _PAGE_EXECUTE | _PAGE_WRITE | _dflt_cache_att) 132 _PAGE_WRITE | _PAGE_EXECUTE | _dflt_cache_att) 160 _PAGE_WRITE | CACHEDEF) 162 _PAGE_WRITE | CACHEDEF) 167 _PAGE_EXECUTE | _PAGE_WRITE | CACHEDEF) 169 _PAGE_EXECUTE | _PAGE_WRITE | CACHEDEF) 365 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 372 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 392 return pte_val(pte) & _PAGE_WRITE; in pte_write()
|
/arch/arc/include/asm/ |
D | pgtable.h | 62 #define _PAGE_WRITE (1<<4) /* Page has user write perm (H) */ macro 73 #define _PAGE_WRITE (1<<2) /* Page has user write perm (H) */ macro 97 #define _K_PAGE_PERMS (_PAGE_EXECUTE | _PAGE_WRITE | _PAGE_READ | \ 118 #define PAGE_U_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE) 120 #define PAGE_U_X_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE | \ 136 #define PTE_BITS_RWX (_PAGE_EXECUTE | _PAGE_WRITE | _PAGE_READ) 296 #define pte_write(pte) (pte_val(pte) & _PAGE_WRITE) 305 PTE_BIT_FUNC(wrprotect, &= ~(_PAGE_WRITE)); 306 PTE_BIT_FUNC(mkwrite, |= (_PAGE_WRITE));
|
/arch/cris/include/arch-v32/arch/ |
D | mmu.h | 59 #define _PAGE_WRITE (1 << 9) /* Write enabled. */ macro 63 #define __WRITEABLE (_PAGE_WRITE | _PAGE_SILENT_WRITE | _PAGE_MODIFIED) 69 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_WRITE | \ 71 #define PAGE_SHARED_EXEC __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_WRITE | \
|
/arch/sh/include/asm/ |
D | pgtable_64.h | 115 #define _PAGE_WRITE 0x100 /* PR2-bit : write access allowed */ macro 165 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 183 #define PAGE_SHARED __pgprot(_PAGE_COMMON | _PAGE_READ | _PAGE_WRITE | \ 194 #define PAGE_WRITEONLY __pgprot(_PAGE_COMMON | _PAGE_WRITE) 196 _PAGE_WRITE | _PAGE_EXECUTE) 200 __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 262 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 265 static inline pte_t pte_wrprotect(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_WRITE)); r… in pte_wrprotect() 268 static inline pte_t pte_mkwrite(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) | _PAGE_WRITE)); retu… in pte_mkwrite()
|
/arch/score/include/asm/ |
D | pgtable-bits.h | 6 #define _PAGE_WRITE (1<<7) /* implemented in software */ macro 20 #define __WRITEABLE (_PAGE_WRITE | _PAGE_SILENT_WRITE | _PAGE_MODIFIED)
|
D | pgtable.h | 124 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 179 return pte_val(pte) & _PAGE_WRITE; in pte_write() 196 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); in pte_wrprotect() 214 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 223 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty()
|
/arch/cris/include/arch-v10/arch/ |
D | mmu.h | 64 #define _PAGE_WRITE (1<<8) /* write-enabled */ macro 69 #define __WRITEABLE (_PAGE_WRITE | _PAGE_SILENT_WRITE | _PAGE_MODIFIED) 75 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | __READABLE | _PAGE_WRITE | \
|
/arch/mips/include/asm/ |
D | pgtable-bits.h | 61 #define _PAGE_WRITE (1 << _PAGE_WRITE_SHIFT) macro 84 #define _PAGE_WRITE (1 << _PAGE_WRITE_SHIFT) macro 118 #define _PAGE_WRITE (1 << _PAGE_WRITE_SHIFT) macro 123 #define _PAGE_WRITE (1 << _PAGE_WRITE_SHIFT) macro 280 #define __WRITEABLE (_PAGE_SILENT_WRITE | _PAGE_WRITE | _PAGE_MODIFIED)
|
D | pgtable.h | 27 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | _PAGE_READ | \ 37 #define PAGE_USERIO __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 285 static inline int pte_write(pte_t pte) { return pte.pte_low & _PAGE_WRITE; } in pte_write() 291 pte.pte_low &= ~_PAGE_WRITE; in pte_wrprotect() 312 pte.pte_low |= _PAGE_WRITE; in pte_mkwrite() 321 if (pte.pte_low & _PAGE_WRITE) in pte_mkdirty() 334 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 340 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); in pte_wrprotect() 358 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 367 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty() [all …]
|
/arch/nios2/include/asm/ |
D | pgtable.h | 38 ((w) ? _PAGE_WRITE : 0)) 66 _PAGE_WRITE | _PAGE_EXEC | _PAGE_GLOBAL) 69 _PAGE_WRITE | _PAGE_ACCESSED) 110 { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 142 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 160 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 180 const unsigned long mask = _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC; in pte_modify()
|
D | pgtable-bits.h | 22 #define _PAGE_WRITE (1<<22) macro
|
/arch/cris/include/asm/ |
D | pgtable.h | 114 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 121 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); in pte_wrprotect() 139 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 148 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty() 159 if ((pte_val(pte) & (_PAGE_WRITE | _PAGE_MODIFIED)) == in pte_mkyoung() 160 (_PAGE_WRITE | _PAGE_MODIFIED)) in pte_mkyoung()
|
/arch/parisc/include/asm/ |
D | pgtable.h | 191 #define _PAGE_WRITE (1 << xlate_pabit(_PAGE_WRITE_BIT)) macro 192 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) 204 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | _PAGE_DIRTY | _PAGE_ACCESSED) 208 #define _PAGE_KERNEL_RWX (_PAGE_KERNEL_EXEC | _PAGE_WRITE) 209 #define _PAGE_KERNEL (_PAGE_KERNEL_RO | _PAGE_WRITE) 230 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_ACCESSED) 235 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITE | _PAGE_ACCESSED) 238 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC… 359 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 364 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; } in pte_wrprotect() [all …]
|
/arch/mips/mm/ |
D | cache.c | 171 …0] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_WRITE | _PAGE_NO_READ… in setup_protection_map() 172 …rotection_map[11] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_WRITE); in setup_protection_map() 175 protection_map[14] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_WRITE); in setup_protection_map() 176 protection_map[15] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_WRITE); in setup_protection_map()
|
/arch/metag/include/asm/ |
D | pgtable.h | 56 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \ 66 _PAGE_ACCESSED | _PAGE_WRITE | \ 125 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 130 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= (~_PAGE_WRITE); return pte; } in pte_wrprotect() 133 static inline pte_t pte_mkwrite(pte_t pte) { pte_val(pte) |= _PAGE_WRITE; return pte; } in pte_mkwrite()
|
D | pgtable-bits.h | 17 #define _PAGE_WRITE MMCU_ENTRY_WR_BIT macro
|
D | mmu_context.h | 65 metag_out32(0x900 | _PAGE_CACHEABLE | _PAGE_PRIV | _PAGE_WRITE | in load_pgd()
|
/arch/openrisc/include/asm/ |
D | pgtable.h | 149 #define _PAGE_WRITE (_PAGE_UWE | _PAGE_SWE) macro 238 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 247 pte_val(pte) &= ~(_PAGE_WRITE); in pte_wrprotect() 277 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
|
/arch/hexagon/mm/ |
D | ioremap.c | 31 pgprot_t prot = __pgprot(_PAGE_PRESENT|_PAGE_READ|_PAGE_WRITE in ioremap_nocache()
|
/arch/metag/mm/ |
D | ioremap.c | 52 prot = __pgprot(_PAGE_PRESENT | _PAGE_WRITE | _PAGE_DIRTY | in __ioremap()
|
D | mmu-meta2.c | 191 _PAGE_ACCESSED | _PAGE_WRITE | in mmu_init()
|
/arch/m32r/mm/ |
D | ioremap.c | 78 | _PAGE_WRITE | flags); in __ioremap()
|
/arch/s390/include/asm/ |
D | pgtable.h | 191 #define _PAGE_WRITE 0x020 /* SW pte write bit */ macro 354 #define PAGE_WRITE __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 357 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 359 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 736 (pte_val(entry) & _PAGE_WRITE) && in pgste_set_pte() 851 return (pte_val(pte) & _PAGE_WRITE) != 0; in pte_write() 914 if ((pte_val(pte) & _PAGE_DIRTY) && (pte_val(pte) & _PAGE_WRITE)) in pte_modify() 921 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 928 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 944 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty() [all …]
|
/arch/s390/mm/ |
D | hugetlbpage.c | 38 pmd_val(pmd) |= (pte_val(pte) & _PAGE_WRITE) >> 4; in __pte_to_pmd()
|