/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/32/ |
H A D | pte-40x.h | 48 #define _PAGE_RW 0x100 /* hardware: WR, anded with dirty in exception */ macro 60 #define _PAGE_KERNEL_RW (_PAGE_DIRTY | _PAGE_RW) 61 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 77 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 78 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
|
H A D | pte-44x.h | 76 #define _PAGE_RW 0x00000002 /* S: Write permission */ macro 93 #define _PAGE_KERNEL_RW (_PAGE_DIRTY | _PAGE_RW) 94 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 120 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 121 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
|
H A D | pte-fsl-booke.h | 22 #define _PAGE_RW 0x00004 /* S: Write permission (SW) */ macro 36 #define _PAGE_KERNEL_RW (_PAGE_DIRTY | _PAGE_RW) 37 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 66 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 67 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/nohash/32/ |
H A D | pte-44x.h | 66 #define _PAGE_RW 0x00000002 /* S: Write permission */ macro 83 #define _PAGE_KERNEL_RW (_PAGE_DIRTY | _PAGE_RW) 84 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 110 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 111 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
|
H A D | pte-40x.h | 48 #define _PAGE_RW 0x100 /* hardware: WR, anded with dirty in exception */ macro 60 #define _PAGE_KERNEL_RW (_PAGE_DIRTY | _PAGE_RW) 61 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 77 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 78 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
|
H A D | pte-85xx.h | 22 #define _PAGE_RW 0x00004 /* S: Write permission (SW) */ macro 36 #define _PAGE_KERNEL_RW (_PAGE_DIRTY | _PAGE_RW) 37 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 66 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 67 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
|
H A D | pgtable.h | 176 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite_novma() 193 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 322 pte_update(mm, addr, ptep, _PAGE_RW, 0, 0); in ptep_set_wrprotect() 333 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
|
/kernel/linux/linux-5.10/arch/um/include/asm/ |
H A D | pgtable.h | 16 #define _PAGE_RW 0x020 macro 53 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED | _PAGE_DIRTY) 54 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY) 57 (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED) 59 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED) 62 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED) 146 return((pte_get_bits(pte, _PAGE_RW)) && in pte_write() 196 if (likely(pte_get_bits(pte, _PAGE_RW))) in pte_wrprotect() 197 pte_clear_bits(pte, _PAGE_RW); in pte_wrprotect() 225 if (unlikely(pte_get_bits(pte, _PAGE_RW))) in pte_mkwrite() [all...] |
/kernel/linux/linux-6.6/arch/um/include/asm/ |
H A D | pgtable.h | 16 #define _PAGE_RW 0x020 macro 56 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED | _PAGE_DIRTY) 57 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY) 60 (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED) 62 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED) 65 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED) 133 return((pte_get_bits(pte, _PAGE_RW)) && in pte_write() 183 if (likely(pte_get_bits(pte, _PAGE_RW))) in pte_wrprotect() 184 pte_clear_bits(pte, _PAGE_RW); in pte_wrprotect() 212 if (unlikely(pte_get_bits(pte, _PAGE_RW))) in pte_mkwrite_novma() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/include/asm/book3s/32/ |
H A D | pgtable.h | 31 #define _PAGE_RW 0x400 /* software: user write access allowed */ macro 52 #define _PAGE_KERNEL_RW (_PAGE_DIRTY | _PAGE_RW) 53 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 108 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 109 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 346 pte_update(mm, addr, ptep, _PAGE_RW, 0, 0); in ptep_set_wrprotect() 355 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags() 405 static inline int pte_write(pte_t pte) { return !!(pte_val(pte) & _PAGE_RW);} in pte_write() 468 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 498 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite_novma() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/64/ |
H A D | pgtable.h | 105 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite() 120 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 237 if ((pte_val(*ptep) & _PAGE_RW) == 0) in ptep_set_wrprotect() 240 pte_update(mm, addr, ptep, _PAGE_RW, 0, 0); in ptep_set_wrprotect() 247 if ((pte_val(*ptep) & _PAGE_RW) == 0) in huge_ptep_set_wrprotect() 250 pte_update(mm, addr, ptep, _PAGE_RW, 0, 1); in huge_ptep_set_wrprotect() 283 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
|
/kernel/linux/linux-6.6/arch/microblaze/include/asm/ |
H A D | pgtable.h | 151 #define _PAGE_RW 0x040 /* software: Writes permitted */ macro 186 #define _PAGE_WRENABLE (_PAGE_RW | _PAGE_DIRTY | _PAGE_HWWRITE) 196 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 198 __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 246 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() 257 { pte_val(pte) &= ~(_PAGE_RW | _PAGE_HWWRITE); return pte; } in pte_wrprotect() 270 { pte_val(pte) |= _PAGE_RW; return pte; } in pte_mkwrite_novma() 362 pte_update(ptep, (_PAGE_RW | _PAGE_HWWRITE), 0);
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/nohash/64/ |
H A D | pgtable.h | 90 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite_novma() 105 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 218 if ((pte_val(*ptep) & _PAGE_RW) == 0) in ptep_set_wrprotect() 221 pte_update(mm, addr, ptep, _PAGE_RW, 0, 0); in ptep_set_wrprotect() 228 if ((pte_val(*ptep) & _PAGE_RW) == 0) in huge_ptep_set_wrprotect() 231 pte_update(mm, addr, ptep, _PAGE_RW, 0, 1); in huge_ptep_set_wrprotect() 264 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/book3s/32/ |
H A D | pgtable.h | 13 #define _PAGE_KERNEL_RW (_PAGE_DIRTY | _PAGE_RW) 14 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 69 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 70 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 317 pte_update(mm, addr, ptep, _PAGE_RW, 0, 0); in ptep_set_wrprotect() 326 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags() 352 static inline int pte_write(pte_t pte) { return !!(pte_val(pte) & _PAGE_RW);} in pte_write() 420 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 450 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite()
|
H A D | hash.h | 30 #define _PAGE_RW 0x400 /* software: user write access allowed */ macro
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
H A D | pgtable_32.h | 47 #define _PAGE_RW 0x020 /* PR0-bit : write access allowed */ macro 56 #define _PAGE_PR_MASK (_PAGE_RW | _PAGE_USER) 242 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \ 256 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_CACHABLE | \ 261 __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | \ 270 __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | \ 349 #define pte_write(pte) ((pte).pte_low & _PAGE_RW) 365 PTE_BIT_FUNC(low, wrprotect, &= ~_PAGE_RW); 366 PTE_BIT_FUNC(low, mkwrite, |= _PAGE_RW);
|
/kernel/linux/linux-6.6/arch/sh/include/asm/ |
H A D | pgtable_32.h | 47 #define _PAGE_RW 0x020 /* PR0-bit : write access allowed */ macro 56 #define _PAGE_PR_MASK (_PAGE_RW | _PAGE_USER) 242 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \ 256 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_CACHABLE | \ 261 __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | \ 270 __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | \ 348 #define pte_write(pte) ((pte).pte_low & _PAGE_RW) 364 PTE_BIT_FUNC(low, wrprotect, &= ~_PAGE_RW); 365 PTE_BIT_FUNC(low, mkwrite_novma, |= _PAGE_RW);
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | pgtable.h | 136 (pte_flags(pte) & (_PAGE_RW | _PAGE_DIRTY)) == _PAGE_DIRTY; in pte_shstk() 152 (pmd_flags(pmd) & (_PAGE_RW | _PAGE_DIRTY | _PAGE_PSE)) == in pmd_shstk() 176 * _PAGE_RW. Check for them separately from _PAGE_RW itself. in pte_write() 178 return (pte_flags(pte) & _PAGE_RW) || pte_shstk(pte); in pte_write() 186 * _PAGE_RW. Check for them separately from _PAGE_RW itself. in pmd_write() 188 return (pmd_flags(pmd) & _PAGE_RW) || pmd_shstk(pmd); in pmd_write() 194 return pud_flags(pud) & _PAGE_RW; in pud_write() 377 pte = pte_clear_flags(pte, _PAGE_RW); in pte_wrprotect() [all...] |
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/ |
H A D | pte-book3e.h | 52 #define _PAGE_RW (_PAGE_BAP_SW | _PAGE_BAP_UW) /* User write permission */ macro 95 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 96 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/nohash/ |
H A D | pte-e500.h | 51 #define _PAGE_RW (_PAGE_BAP_SW | _PAGE_BAP_UW) /* User write permission */ macro 94 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 95 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_BAP_UX)
|
/kernel/linux/linux-5.10/arch/microblaze/include/asm/ |
H A D | pgtable.h | 194 #define _PAGE_RW 0x040 /* software: Writes permitted */ macro 226 #define _PAGE_WRENABLE (_PAGE_RW | _PAGE_DIRTY | _PAGE_HWWRITE) 236 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 238 __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 303 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() 314 { pte_val(pte) &= ~(_PAGE_RW | _PAGE_HWWRITE); return pte; } in pte_wrprotect() 327 { pte_val(pte) |= _PAGE_RW; return pte; } in pte_mkwrite() 426 pte_update(ptep, (_PAGE_RW | _PAGE_HWWRITE), 0);
|
/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/ |
H A D | 40x.c | 103 unsigned long val = p | _PMD_SIZE_16M | _PAGE_EXEC | _PAGE_RW; in mmu_mapin_ram() 118 unsigned long val = p | _PMD_SIZE_4M | _PAGE_EXEC | _PAGE_RW; in mmu_mapin_ram()
|
/kernel/linux/linux-6.6/arch/powerpc/mm/nohash/ |
H A D | 40x.c | 107 unsigned long val = p | _PMD_SIZE_16M | _PAGE_EXEC | _PAGE_RW; in mmu_mapin_ram() 122 unsigned long val = p | _PMD_SIZE_4M | _PAGE_EXEC | _PAGE_RW; in mmu_mapin_ram()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | pgtable.h | 185 return pte_flags(pte) & _PAGE_RW; in pte_write() 346 return pte_clear_flags(pte, _PAGE_RW); in pte_wrprotect() 366 return pte_set_flags(pte, _PAGE_RW); in pte_mkwrite() 442 return pmd_clear_flags(pmd, _PAGE_RW); in pmd_wrprotect() 467 return pmd_set_flags(pmd, _PAGE_RW); in pmd_mkwrite() 496 return pud_clear_flags(pud, _PAGE_RW); in pud_wrprotect() 521 return pud_set_flags(pud, _PAGE_RW); in pud_mkwrite() 1134 return pmd_flags(pmd) & _PAGE_RW; in pmd_write() 1161 return pud_flags(pud) & _PAGE_RW; in pud_write() 1413 * _PAGE_PRESENT, _PAGE_USER, and _PAGE_RW i [all...] |
/kernel/linux/linux-6.6/arch/x86/mm/pat/ |
H A D | set_memory.c | 479 return _PAGE_RW; in protect_rodata() 533 return _PAGE_RW; in protect_kernel_text_ro() 638 if (!((pgprot_val(old) ^ pgprot_val(new)) & (_PAGE_RW | _PAGE_NX))) in verify_rwx() 641 if ((pgprot_val(new) & (_PAGE_RW | _PAGE_NX)) != _PAGE_RW) in verify_rwx() 2077 return change_page_attr_clear(&addr, numpages, __pgprot(_PAGE_RW | _PAGE_DIRTY), 0); in set_memory_ro() 2082 pgprot_t clr = __pgprot(_PAGE_RW | _PAGE_DIRTY); in set_memory_rox() 2092 return change_page_attr_set(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_rw() 2317 .mask_set = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_p() 2337 .mask_clr = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_np() [all...] |