Searched refs:_PAGE_WRITE (Results 1 - 34 of 34) sorted by relevance

/linux-4.1.27/arch/score/include/asm/
H A Dpgtable-bits.h6 #define _PAGE_WRITE (1<<7) /* implemented in software */ macro
20 #define __WRITEABLE (_PAGE_WRITE | _PAGE_SILENT_WRITE | _PAGE_MODIFIED)
H A Dpgtable.h124 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
179 return pte_val(pte) & _PAGE_WRITE; pte_write()
196 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); pte_wrprotect()
214 pte_val(pte) |= _PAGE_WRITE; pte_mkwrite()
223 if (pte_val(pte) & _PAGE_WRITE) pte_mkdirty()
/linux-4.1.27/arch/m32r/include/asm/
H A Dpgtable.h98 #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; pte_write()
225 pte_val(pte) &= ~_PAGE_WRITE; pte_wrprotect()
243 pte_val(pte) |= _PAGE_WRITE; pte_mkwrite()
/linux-4.1.27/arch/nios2/include/asm/
H A Dpgtable-bits.h22 #define _PAGE_WRITE (1<<22) macro
H A Dpgtable.h38 ((w) ? _PAGE_WRITE : 0))
66 _PAGE_WRITE | _PAGE_EXEC | _PAGE_GLOBAL)
69 _PAGE_WRITE | _PAGE_ACCESSED)
110 { return pte_val(pte) & _PAGE_WRITE; } pte_dirty()
142 pte_val(pte) &= ~_PAGE_WRITE; pte_wrprotect()
160 pte_val(pte) |= _PAGE_WRITE; pte_mkwrite()
180 const unsigned long mask = _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC; pte_modify()
/linux-4.1.27/arch/cris/include/arch-v32/arch/
H A Dmmu.h59 #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 | \
/linux-4.1.27/arch/mips/include/asm/
H A Dpgtable.h27 #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; } pte_dirty()
291 pte.pte_low &= ~_PAGE_WRITE; pte_wrprotect()
312 pte.pte_low |= _PAGE_WRITE; pte_mkwrite()
321 if (pte.pte_low & _PAGE_WRITE) pte_mkdirty()
334 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } pte_dirty()
340 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); pte_wrprotect()
358 pte_val(pte) |= _PAGE_WRITE; pte_mkwrite()
367 if (pte_val(pte) & _PAGE_WRITE) pte_mkdirty()
523 return !!(pmd_val(pmd) & _PAGE_WRITE); pmd_write()
528 pmd_val(pmd) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); pmd_wrprotect()
534 pmd_val(pmd) |= _PAGE_WRITE; pmd_mkwrite()
555 if (pmd_val(pmd) & _PAGE_WRITE) pmd_mkdirty()
H A Dpgtable-bits.h61 #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
285 #define __WRITEABLE (_PAGE_SILENT_WRITE | _PAGE_WRITE | _PAGE_MODIFIED)
/linux-4.1.27/arch/cris/include/arch-v10/arch/
H A Dmmu.h64 #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 | \
/linux-4.1.27/arch/mips/mm/
H A Dcache.c171 protection_map[10] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_WRITE | _PAGE_NO_READ); setup_protection_map()
172 protection_map[11] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_WRITE); setup_protection_map()
175 protection_map[14] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_WRITE | _PAGE_NO_READ); setup_protection_map()
176 protection_map[15] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_WRITE); setup_protection_map()
H A Dtlbex.c1690 uasm_il_bbit0(p, r, pte, ilog2(_PAGE_WRITE), lid); build_pte_modifiable()
/linux-4.1.27/arch/hexagon/include/asm/
H A Dpgtable.h49 #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; pte_wrprotect()
372 pte_val(pte) |= _PAGE_WRITE; pte_mkwrite()
392 return pte_val(pte) & _PAGE_WRITE; pte_write()
/linux-4.1.27/arch/sh/include/asm/
H A Dpgtable_64.h115 #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; } pte_special()
265 static inline pte_t pte_wrprotect(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_WRITE)); return pte; } pte_mkclean()
268 static inline pte_t pte_mkwrite(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) | _PAGE_WRITE)); return pte; } pte_mkdirty()
/linux-4.1.27/arch/arc/include/asm/
H A Dpgtable.h61 #define _PAGE_WRITE (1<<4) /* Page has user write perm (H) */ macro
71 #define _PAGE_WRITE (1<<2) /* Page has user write perm (H) */ macro
82 #define _K_PAGE_PERMS (_PAGE_EXECUTE | _PAGE_WRITE | _PAGE_READ | \
104 #define PAGE_U_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE)
106 #define PAGE_U_X_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE | \
122 #define PTE_BITS_RWX (_PAGE_EXECUTE | _PAGE_WRITE | _PAGE_READ)
287 #define pte_write(pte) (pte_val(pte) & _PAGE_WRITE)
295 PTE_BIT_FUNC(wrprotect, &= ~(_PAGE_WRITE));
296 PTE_BIT_FUNC(mkwrite, |= (_PAGE_WRITE));
/linux-4.1.27/arch/metag/include/asm/
H A Dpgtable.h56 #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; } pte_dirty()
130 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= (~_PAGE_WRITE); return pte; } pte_mkclean()
133 static inline pte_t pte_mkwrite(pte_t pte) { pte_val(pte) |= _PAGE_WRITE; return pte; } pte_mkdirty()
H A Dmmu_context.h65 metag_out32(0x900 | _PAGE_CACHEABLE | _PAGE_PRIV | _PAGE_WRITE | load_pgd()
H A Dpgtable-bits.h17 #define _PAGE_WRITE MMCU_ENTRY_WR_BIT macro
/linux-4.1.27/arch/cris/include/asm/
H A Dpgtable.h114 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } pte_dirty()
121 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); pte_wrprotect()
139 pte_val(pte) |= _PAGE_WRITE; pte_mkwrite()
148 if (pte_val(pte) & _PAGE_WRITE) pte_mkdirty()
159 if ((pte_val(pte) & (_PAGE_WRITE | _PAGE_MODIFIED)) == pte_mkyoung()
160 (_PAGE_WRITE | _PAGE_MODIFIED)) pte_mkyoung()
/linux-4.1.27/arch/parisc/include/asm/
H A Dpgtable.h187 #define _PAGE_WRITE (1 << xlate_pabit(_PAGE_WRITE_BIT)) macro
188 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE)
199 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | _PAGE_DIRTY | _PAGE_ACCESSED)
203 #define _PAGE_KERNEL_RWX (_PAGE_KERNEL_EXEC | _PAGE_WRITE)
204 #define _PAGE_KERNEL (_PAGE_KERNEL_RO | _PAGE_WRITE)
225 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_ACCESSED)
230 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITE | _PAGE_ACCESSED)
233 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC |_PAGE_ACCESSED)
354 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } pte_special()
359 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; } pte_mkdirty()
362 static inline pte_t pte_mkwrite(pte_t pte) { pte_val(pte) |= _PAGE_WRITE; return pte; } pte_mkspecial()
/linux-4.1.27/arch/hexagon/mm/
H A Dioremap.c31 pgprot_t prot = __pgprot(_PAGE_PRESENT|_PAGE_READ|_PAGE_WRITE ioremap_nocache()
/linux-4.1.27/arch/metag/mm/
H A Dioremap.c52 prot = __pgprot(_PAGE_PRESENT | _PAGE_WRITE | _PAGE_DIRTY | __ioremap()
H A Dmmu-meta2.c191 _PAGE_ACCESSED | _PAGE_WRITE | mmu_init()
/linux-4.1.27/arch/m32r/mm/
H A Dioremap.c78 | _PAGE_WRITE | flags); __ioremap()
/linux-4.1.27/arch/openrisc/include/asm/
H A Dpgtable.h149 #define _PAGE_WRITE (_PAGE_UWE | _PAGE_SWE) macro
238 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } pte_exec()
247 pte_val(pte) &= ~(_PAGE_WRITE); pte_wrprotect()
277 pte_val(pte) |= _PAGE_WRITE; pte_mkwrite()
/linux-4.1.27/arch/s390/include/asm/
H A Dpgtable.h191 #define _PAGE_WRITE 0x020 /* SW pte write bit */ macro
342 #define PAGE_WRITE __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
345 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
347 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
674 (pte_val(entry) & _PAGE_WRITE) && pgste_set_pte()
787 return (pte_val(pte) & _PAGE_WRITE) != 0; pte_write()
850 if ((pte_val(pte) & _PAGE_DIRTY) && (pte_val(pte) & _PAGE_WRITE)) pte_modify()
857 pte_val(pte) &= ~_PAGE_WRITE; pte_wrprotect()
864 pte_val(pte) |= _PAGE_WRITE; pte_mkwrite()
880 if (pte_val(pte) & _PAGE_WRITE) pte_mkdirty()
1000 if (MACHINE_HAS_ESOP || !(pte_val(pte) & _PAGE_WRITE)) ptep_test_and_clear_user_dirty()
/linux-4.1.27/arch/sh/mm/
H A Dtlb-sh5.c130 ptel |= (_PAGE_CACHABLE | _PAGE_READ | _PAGE_WRITE); sh64_setup_tlb_slot()
H A Dgup.c87 result |= _PAGE_WRITE; gup_pte_range()
/linux-4.1.27/arch/s390/mm/
H A Dhugetlbpage.c38 pmd_val(pmd) |= (pte_val(pte) & _PAGE_WRITE) >> 4; __pte_to_pmd()
H A Dpgtable.c1249 if (!(ptev & _PAGE_INVALID) && (ptev & _PAGE_WRITE)) __s390_enable_skey()
/linux-4.1.27/arch/score/mm/
H A Dtlb-miss.S180 andi r30, _PAGE_WRITE /* Writable? */
/linux-4.1.27/arch/nios2/mm/
H A Dioremap.c29 | _PAGE_WRITE | flags); remap_area_pte()
H A Dtlb.c188 (tlbacc & _PAGE_WRITE ? 'w' : '-'), dump_tlb_line()
/linux-4.1.27/arch/parisc/kernel/
H A Dentry.S527 * _PAGE_GATEWAY, _PAGE_EXEC and _PAGE_WRITE
614 * Note subtlety here: _PAGE_GATEWAY, _PAGE_EXEC and _PAGE_WRITE go
617 ldi (_PAGE_REFTRAP|_PAGE_READ|_PAGE_WRITE),\prot
624 ldi (_PAGE_DIRTY|_PAGE_READ|_PAGE_WRITE),\prot
/linux-4.1.27/arch/arc/mm/
H A Dtlbex.S333 or.nz r2, r2, _PAGE_WRITE ; chk for Write flag in PTE

Completed in 815 milliseconds