| /Linux-v5.10/arch/hexagon/include/asm/ |
| D | pgtable.h | 34 #define _PAGE_WRITE __HVM_PTE_W macro 115 _PAGE_EXECUTE | _PAGE_WRITE | _dflt_cache_att) 117 _PAGE_WRITE | _PAGE_EXECUTE | _dflt_cache_att) 145 _PAGE_WRITE | CACHEDEF) 147 _PAGE_WRITE | CACHEDEF) 152 _PAGE_EXECUTE | _PAGE_WRITE | CACHEDEF) 154 _PAGE_EXECUTE | _PAGE_WRITE | CACHEDEF) 321 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 328 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 348 return pte_val(pte) & _PAGE_WRITE; in pte_write()
|
| /Linux-v5.10/arch/arc/include/asm/ |
| D | pgtable.h | 59 #define _PAGE_WRITE (1<<4) /* Page has user write perm (H) */ macro 70 #define _PAGE_WRITE (1<<2) /* Page has user write perm (H) */ macro 94 #define _K_PAGE_PERMS (_PAGE_EXECUTE | _PAGE_WRITE | _PAGE_READ | \ 115 #define PAGE_U_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE) 117 #define PAGE_U_X_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE | \ 133 #define PTE_BITS_RWX (_PAGE_EXECUTE | _PAGE_WRITE | _PAGE_READ) 287 #define pte_write(pte) (pte_val(pte) & _PAGE_WRITE) 296 PTE_BIT_FUNC(wrprotect, &= ~(_PAGE_WRITE)); 297 PTE_BIT_FUNC(mkwrite, |= (_PAGE_WRITE));
|
| /Linux-v5.10/arch/riscv/include/asm/ |
| D | pgtable.h | 83 #define PAGE_WRITE __pgprot(_PAGE_BASE | _PAGE_READ | _PAGE_WRITE) 87 _PAGE_EXEC | _PAGE_WRITE) 96 | _PAGE_WRITE \ 103 #define PAGE_KERNEL_READ __pgprot(_PAGE_KERNEL & ~_PAGE_WRITE) 105 #define PAGE_KERNEL_READ_EXEC __pgprot((_PAGE_KERNEL & ~_PAGE_WRITE) \ 157 (pmd_val(pmd) & (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)); in pmd_leaf() 218 return pte_val(pte) & _PAGE_WRITE; in pte_write() 229 && (pte_val(pte) & (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)); in pte_huge() 251 return __pte(pte_val(pte) & ~(_PAGE_WRITE)); in pte_wrprotect() 258 return __pte(pte_val(pte) | _PAGE_WRITE); in pte_mkwrite() [all …]
|
| D | pgtable-bits.h | 19 #define _PAGE_WRITE (1 << 2) /* Writable */ macro 40 _PAGE_WRITE | _PAGE_EXEC | \
|
| D | pgtable-64.h | 50 (pud_val(pud) & (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)); in pud_leaf()
|
| /Linux-v5.10/arch/nios2/include/asm/ |
| D | pgtable.h | 38 ((w) ? _PAGE_WRITE : 0)) 66 _PAGE_WRITE | _PAGE_EXEC | _PAGE_GLOBAL) 69 _PAGE_WRITE | _PAGE_ACCESSED) 106 { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 137 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 155 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 173 const unsigned long mask = _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC; in pte_modify()
|
| D | pgtable-bits.h | 22 #define _PAGE_WRITE (1<<22) macro
|
| /Linux-v5.10/arch/parisc/include/asm/ |
| D | pgtable.h | 217 #define _PAGE_WRITE (1 << xlate_pabit(_PAGE_WRITE_BIT)) macro 218 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) 230 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | _PAGE_DIRTY | _PAGE_ACCESSED) 234 #define _PAGE_KERNEL_RWX (_PAGE_KERNEL_EXEC | _PAGE_WRITE) 235 #define _PAGE_KERNEL (_PAGE_KERNEL_RO | _PAGE_WRITE) 256 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE) 261 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITE) 264 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC) 377 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 381 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; } in pte_wrprotect() [all …]
|
| /Linux-v5.10/arch/csky/include/asm/ |
| D | pgtable.h | 45 #define __WRITEABLE (_PAGE_WRITE | _PAGE_DIRTY | _PAGE_MODIFIED) 67 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 73 #define PAGE_USERIO __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ 168 return (pte).pte_low & _PAGE_WRITE; in pte_write() 183 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); in pte_wrprotect() 201 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() 210 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty()
|
| /Linux-v5.10/arch/mips/include/asm/ |
| D | pgtable.h | 30 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \ 305 static inline int pte_write(pte_t pte) { return pte.pte_low & _PAGE_WRITE; } 311 pte.pte_low &= ~_PAGE_WRITE; 338 pte.pte_low |= _PAGE_WRITE; 350 if (pte.pte_low & _PAGE_WRITE) { 369 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } 375 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); 393 pte_val(pte) |= _PAGE_WRITE; 402 if (pte_val(pte) & _PAGE_WRITE) 603 return !!(pmd_val(pmd) & _PAGE_WRITE); [all …]
|
| D | pgtable-bits.h | 155 #define _PAGE_WRITE (1 << _PAGE_WRITE_SHIFT) macro 280 #define __WRITEABLE (_PAGE_SILENT_WRITE | _PAGE_WRITE | _PAGE_MODIFIED)
|
| /Linux-v5.10/arch/mips/mm/ |
| D | cache.c | 172 …0] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_WRITE | _PAGE_NO_READ… in setup_protection_map() 173 …rotection_map[11] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_WRITE); in setup_protection_map() 176 protection_map[14] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_WRITE); in setup_protection_map() 177 protection_map[15] = __pgprot(_page_cachable_default | _PAGE_PRESENT | _PAGE_WRITE); in setup_protection_map()
|
| /Linux-v5.10/arch/riscv/mm/ |
| D | ptdump.c | 142 .mask = _PAGE_WRITE, 143 .val = _PAGE_WRITE, 227 if ((st->current_prot & (_PAGE_WRITE | _PAGE_EXEC)) != in note_prot_wx() 228 (_PAGE_WRITE | _PAGE_EXEC)) in note_prot_wx()
|
| D | pageattr.c | 134 __pgprot(_PAGE_WRITE)); in set_memory_ro() 139 return __set_memory(addr, numpages, __pgprot(_PAGE_READ | _PAGE_WRITE), in set_memory_rw()
|
| /Linux-v5.10/arch/powerpc/mm/ptdump/ |
| D | book3s64.c | 24 .mask = _PAGE_WRITE, 25 .val = _PAGE_WRITE,
|
| /Linux-v5.10/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) 398 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_WRITE)); in __pte_write() 437 pte_update(mm, addr, ptep, _PAGE_WRITE, 0, 0); in ptep_set_wrprotect() 451 pte_update(mm, addr, ptep, _PAGE_WRITE, 0, 1); in huge_ptep_set_wrprotect() 558 return __pte_raw(pte_raw(pte) & cpu_to_be64(~_PAGE_WRITE)); in pte_clear_savedwrite() 638 return __pte_raw(pte_raw(pte) & cpu_to_be64(~_PAGE_WRITE)); in pte_wrprotect() 1200 pmd_hugepage_update(mm, addr, pmdp, _PAGE_WRITE, 0); in pmdp_set_wrprotect() 1360 if ((!(old_val & _PAGE_WRITE)) && (new_val & _PAGE_WRITE)) in is_pte_rw_upgrade()
|
| /Linux-v5.10/arch/openrisc/include/asm/ |
| D | pgtable.h | 145 #define _PAGE_WRITE (_PAGE_UWE | _PAGE_SWE) macro 234 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 241 pte_val(pte) &= ~(_PAGE_WRITE); in pte_wrprotect() 271 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
|
| /Linux-v5.10/arch/s390/include/asm/ |
| D | pgtable.h | 174 #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 | \ 848 return (pte_val(pte) & _PAGE_WRITE) != 0; in pte_write() 917 if ((pte_val(pte) & _PAGE_DIRTY) && (pte_val(pte) & _PAGE_WRITE)) in pte_modify() 924 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect() 931 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite() [all …]
|
| /Linux-v5.10/arch/csky/abiv2/inc/abi/ |
| D | pgtable-bits.h | 12 #define _PAGE_WRITE (1<<9) macro
|
| /Linux-v5.10/arch/csky/abiv1/inc/abi/ |
| D | pgtable-bits.h | 12 #define _PAGE_WRITE (1<<2) macro
|
| /Linux-v5.10/arch/hexagon/mm/ |
| D | ioremap.c | 18 pgprot_t prot = __pgprot(_PAGE_PRESENT|_PAGE_READ|_PAGE_WRITE in ioremap()
|
| /Linux-v5.10/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()
|
| /Linux-v5.10/arch/riscv/kernel/ |
| D | efi.c | 67 val = pte_val(pte) & ~_PAGE_WRITE; in set_permissions()
|
| /Linux-v5.10/arch/s390/mm/ |
| D | hugetlbpage.c | 52 rste |= move_set_bit(pte_val(pte), _PAGE_WRITE, in __pte_to_rste() 109 _PAGE_WRITE); in __rste_to_pte()
|