Home
last modified time | relevance | path

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

12

/arch/m32r/include/asm/
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; 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/
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; 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/
Dpgtable.h62 #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/
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 | \
/arch/sh/include/asm/
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; } 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/
Dpgtable-bits.h6 #define _PAGE_WRITE (1<<7) /* implemented in software */ macro
20 #define __WRITEABLE (_PAGE_WRITE | _PAGE_SILENT_WRITE | _PAGE_MODIFIED)
Dpgtable.h124 #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/
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 | \
/arch/mips/include/asm/
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
280 #define __WRITEABLE (_PAGE_SILENT_WRITE | _PAGE_WRITE | _PAGE_MODIFIED)
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; } 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/
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; } 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()
Dpgtable-bits.h22 #define _PAGE_WRITE (1<<22) macro
/arch/cris/include/asm/
Dpgtable.h114 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/
Dpgtable.h191 #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/
Dcache.c171 …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/
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; } 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()
Dpgtable-bits.h17 #define _PAGE_WRITE MMCU_ENTRY_WR_BIT macro
Dmmu_context.h65 metag_out32(0x900 | _PAGE_CACHEABLE | _PAGE_PRIV | _PAGE_WRITE | in load_pgd()
/arch/openrisc/include/asm/
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; } in pte_write()
247 pte_val(pte) &= ~(_PAGE_WRITE); in pte_wrprotect()
277 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
/arch/hexagon/mm/
Dioremap.c31 pgprot_t prot = __pgprot(_PAGE_PRESENT|_PAGE_READ|_PAGE_WRITE in ioremap_nocache()
/arch/metag/mm/
Dioremap.c52 prot = __pgprot(_PAGE_PRESENT | _PAGE_WRITE | _PAGE_DIRTY | in __ioremap()
Dmmu-meta2.c191 _PAGE_ACCESSED | _PAGE_WRITE | in mmu_init()
/arch/m32r/mm/
Dioremap.c78 | _PAGE_WRITE | flags); in __ioremap()
/arch/s390/include/asm/
Dpgtable.h191 #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/
Dhugetlbpage.c38 pmd_val(pmd) |= (pte_val(pte) & _PAGE_WRITE) >> 4; in __pte_to_pmd()

12