/arch/hexagon/include/asm/ |
D | pgtable.h | 35 #define _PAGE_WRITE __HVM_PTE_W macro 116 _PAGE_EXECUTE | _PAGE_WRITE | _dflt_cache_att) 118 _PAGE_WRITE | _PAGE_EXECUTE | _dflt_cache_att) 146 _PAGE_WRITE | CACHEDEF) 148 _PAGE_WRITE | CACHEDEF) 153 _PAGE_EXECUTE | _PAGE_WRITE | CACHEDEF) 155 _PAGE_EXECUTE | _PAGE_WRITE | CACHEDEF) 351 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 358 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 378 return pte_val(pte) & _PAGE_WRITE; in pte_write()
|
/arch/arc/include/asm/ |
D | pgtable.h | 60 #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 95 #define _K_PAGE_PERMS (_PAGE_EXECUTE | _PAGE_WRITE | _PAGE_READ | \ 116 #define PAGE_U_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE) 118 #define PAGE_U_X_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE | \ 134 #define PTE_BITS_RWX (_PAGE_EXECUTE | _PAGE_WRITE | _PAGE_READ) 300 #define pte_write(pte) (pte_val(pte) & _PAGE_WRITE) 309 PTE_BIT_FUNC(wrprotect, &= ~(_PAGE_WRITE)); 310 PTE_BIT_FUNC(mkwrite, |= (_PAGE_WRITE));
|
/arch/sh/include/asm/ |
D | pgtable_64.h | 112 #define _PAGE_WRITE 0x100 /* PR2-bit : write access allowed */ macro 162 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 180 #define PAGE_SHARED __pgprot(_PAGE_COMMON | _PAGE_READ | _PAGE_WRITE | \ 191 #define PAGE_WRITEONLY __pgprot(_PAGE_COMMON | _PAGE_WRITE) 193 _PAGE_WRITE | _PAGE_EXECUTE) 197 __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 259 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 262 static inline pte_t pte_wrprotect(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_WRITE)); r… in pte_wrprotect() 265 static inline pte_t pte_mkwrite(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) | _PAGE_WRITE)); retu… in pte_mkwrite()
|
D | pgtable.h | 168 prot |= _PAGE_WRITE; in pte_access_permitted()
|
/arch/riscv/include/asm/ |
D | pgtable-bits.h | 19 #define _PAGE_WRITE (1 << 2) /* Writable */ macro 40 _PAGE_WRITE | _PAGE_EXEC | \
|
D | pgtable.h | 42 #define PAGE_WRITE __pgprot(_PAGE_BASE | _PAGE_READ | _PAGE_WRITE) 46 _PAGE_EXEC | _PAGE_WRITE) 55 | _PAGE_WRITE \ 216 return pte_val(pte) & _PAGE_WRITE; in pte_write() 227 && (pte_val(pte) & (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)); in pte_huge() 249 return __pte(pte_val(pte) & ~(_PAGE_WRITE)); in pte_wrprotect() 256 return __pte(pte_val(pte) | _PAGE_WRITE); in pte_mkwrite() 383 atomic_long_and(~(unsigned long)_PAGE_WRITE, (atomic_long_t *)ptep); in ptep_set_wrprotect()
|
/arch/nios2/include/asm/ |
D | pgtable.h | 39 ((w) ? _PAGE_WRITE : 0)) 67 _PAGE_WRITE | _PAGE_EXEC | _PAGE_GLOBAL) 70 _PAGE_WRITE | _PAGE_ACCESSED) 111 { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 143 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 161 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 181 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/mips/include/asm/ |
D | pgtable.h | 30 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \ 40 #define PAGE_USERIO __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \ 277 static inline int pte_write(pte_t pte) { return pte.pte_low & _PAGE_WRITE; } 284 pte.pte_low &= ~_PAGE_WRITE; 311 pte.pte_low |= _PAGE_WRITE; 323 if (pte.pte_low & _PAGE_WRITE) { 348 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } 355 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); 373 pte_val(pte) |= _PAGE_WRITE; 382 if (pte_val(pte) & _PAGE_WRITE) [all …]
|
D | pgtable-bits.h | 144 #define _PAGE_WRITE (1 << _PAGE_WRITE_SHIFT) macro 269 #define __WRITEABLE (_PAGE_SILENT_WRITE | _PAGE_WRITE | _PAGE_MODIFIED)
|
/arch/riscv/mm/ |
D | hugetlbpage.c | 8 (pud_val(pud) & (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)); in pud_huge() 14 (pmd_val(pmd) & (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)); in pmd_huge()
|
/arch/parisc/include/asm/ |
D | pgtable.h | 213 #define _PAGE_WRITE (1 << xlate_pabit(_PAGE_WRITE_BIT)) macro 214 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) 226 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | _PAGE_DIRTY | _PAGE_ACCESSED) 230 #define _PAGE_KERNEL_RWX (_PAGE_KERNEL_EXEC | _PAGE_WRITE) 231 #define _PAGE_KERNEL (_PAGE_KERNEL_RO | _PAGE_WRITE) 252 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE) 257 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITE) 260 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC) 381 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 386 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; } in pte_wrprotect() [all …]
|
/arch/csky/include/asm/ |
D | pgtable.h | 56 #define __WRITEABLE (_PAGE_WRITE | _PAGE_DIRTY | _PAGE_MODIFIED) 80 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 86 #define PAGE_USERIO __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 180 return (pte).pte_low & _PAGE_WRITE; in pte_write() 195 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); in pte_wrprotect() 213 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 222 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty()
|
/arch/mips/mm/ |
D | cache.c | 173 …0] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_WRITE | _PAGE_NO_READ… in setup_protection_map() 174 …rotection_map[11] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_WRITE); in setup_protection_map() 177 protection_map[14] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_WRITE); in setup_protection_map() 178 protection_map[15] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_WRITE); in setup_protection_map()
|
/arch/powerpc/mm/ptdump/ |
D | book3s64.c | 24 .mask = _PAGE_WRITE, 25 .val = _PAGE_WRITE,
|
/arch/csky/abiv2/inc/abi/ |
D | pgtable-bits.h | 12 #define _PAGE_WRITE (1<<9) macro
|
/arch/csky/abiv1/inc/abi/ |
D | pgtable-bits.h | 12 #define _PAGE_WRITE (1<<2) macro
|
/arch/openrisc/include/asm/ |
D | pgtable.h | 146 #define _PAGE_WRITE (_PAGE_UWE | _PAGE_SWE) macro 235 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 244 pte_val(pte) &= ~(_PAGE_WRITE); in pte_wrprotect() 274 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
|
/arch/hexagon/mm/ |
D | ioremap.c | 18 pgprot_t prot = __pgprot(_PAGE_PRESENT|_PAGE_READ|_PAGE_WRITE in ioremap_nocache()
|
/arch/powerpc/include/asm/book3s/64/ |
D | pgtable.h | 18 #define _PAGE_WRITE 0x00002 /* write access allowed */ macro 20 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) 21 #define _PAGE_RWX (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC) 392 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_WRITE)); in __pte_write() 431 pte_update(mm, addr, ptep, _PAGE_WRITE, 0, 0); in ptep_set_wrprotect() 445 pte_update(mm, addr, ptep, _PAGE_WRITE, 0, 1); in huge_ptep_set_wrprotect() 552 return __pte_raw(pte_raw(pte) & cpu_to_be64(~_PAGE_WRITE)); in pte_clear_savedwrite() 627 return __pte_raw(pte_raw(pte) & cpu_to_be64(~_PAGE_WRITE)); in pte_wrprotect() 1195 pmd_hugepage_update(mm, addr, pmdp, _PAGE_WRITE, 0); in pmdp_set_wrprotect() 1348 if ((!(old_val & _PAGE_WRITE)) && (new_val & _PAGE_WRITE)) in is_pte_rw_upgrade()
|
/arch/s390/include/asm/ |
D | pgtable.h | 172 #define _PAGE_WRITE 0x020 /* SW pte write bit */ macro 407 #define PAGE_RW __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 409 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 412 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 414 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 418 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 861 return (pte_val(pte) & _PAGE_WRITE) != 0; in pte_write() 930 if ((pte_val(pte) & _PAGE_DIRTY) && (pte_val(pte) & _PAGE_WRITE)) in pte_modify() 937 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 944 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() [all …]
|
/arch/s390/mm/ |
D | hugetlbpage.c | 49 rste |= move_set_bit(pte_val(pte), _PAGE_WRITE, in __pte_to_rste() 106 _PAGE_WRITE); in __rste_to_pte()
|
/arch/powerpc/mm/book3s64/ |
D | hash_64k.c | 67 if (access & _PAGE_WRITE) in __hash_page_4K() 259 if (access & _PAGE_WRITE) in __hash_page_64K()
|
D | hash_4k.c | 49 if (access & _PAGE_WRITE) in __hash_page_4K()
|
/arch/powerpc/platforms/cell/spufs/ |
D | fault.c | 121 access |= (dsisr & MFC_DSISR_ACCESS_PUT) ? _PAGE_WRITE : 0UL; in spufs_handle_class1()
|