/linux-6.3-rc2/arch/powerpc/include/asm/nohash/32/ |
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) 80 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 81 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
|
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)
|
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)
|
A D | pgtable.h | 176 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite() 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()
|
/linux-6.3-rc2/arch/um/include/asm/ |
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() [all …]
|
/linux-6.3-rc2/arch/powerpc/include/asm/nohash/64/ |
A D | pgtable.h | 90 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite() 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()
|
/linux-6.3-rc2/arch/powerpc/include/asm/book3s/32/ |
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() 473 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 503 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite()
|
/linux-6.3-rc2/arch/sh/include/asm/ |
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);
|
A D | pgtable.h | 139 prot |= _PAGE_RW; in pte_access_permitted()
|
/linux-6.3-rc2/arch/microblaze/include/asm/ |
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()
|
/linux-6.3-rc2/arch/powerpc/include/asm/nohash/ |
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)
|
/linux-6.3-rc2/arch/powerpc/mm/nohash/ |
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()
|
A D | e500.c | 120 TLBCAM[index].MAS3 |= (flags & _PAGE_RW) ? MAS3_SW : 0; in settlbcam() 128 TLBCAM[index].MAS3 |= (flags & _PAGE_RW) ? MAS3_UW : 0; in settlbcam()
|
/linux-6.3-rc2/arch/x86/include/asm/ |
A D | pgtable.h | 160 return pte_flags(pte) & _PAGE_RW; in pte_write() 294 return pte_clear_flags(pte, _PAGE_RW); in pte_wrprotect() 357 return pte_set_flags(pte, _PAGE_RW); in pte_mkwrite() 406 return pmd_clear_flags(pmd, _PAGE_RW); in pmd_wrprotect() 458 return pmd_set_flags(pmd, _PAGE_RW); in pmd_mkwrite() 487 return pud_clear_flags(pud, _PAGE_RW); in pud_wrprotect() 512 return pud_set_flags(pud, _PAGE_RW); in pud_mkwrite() 1126 return pmd_flags(pmd) & _PAGE_RW; in pmd_write() 1161 return pud_flags(pud) & _PAGE_RW; in pud_write() 1415 need_pte_bits |= _PAGE_RW; in __pte_access_permitted()
|
A D | pgtable_types.h | 42 #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW) macro 97 #define _PAGE_SWP_SOFT_DIRTY _PAGE_RW 164 #define __RW _PAGE_RW
|
A D | tlbflush.h | 277 const pteval_t flush_on_change = _PAGE_RW | _PAGE_USER | _PAGE_PWT | in pte_flags_need_flush()
|
/linux-6.3-rc2/arch/x86/mm/pat/ |
A D | set_memory.c | 478 return _PAGE_RW; in protect_rodata() 532 return _PAGE_RW; in protect_kernel_text_ro() 637 if (!((pgprot_val(old) ^ pgprot_val(new)) & (_PAGE_RW | _PAGE_NX))) in verify_rwx() 640 if ((pgprot_val(new) & (_PAGE_RW | _PAGE_NX)) != _PAGE_RW) in verify_rwx() 2076 return change_page_attr_clear(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_ro() 2081 pgprot_t clr = __pgprot(_PAGE_RW); in set_memory_rox() 2091 return change_page_attr_set(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_rw() 2318 .mask_set = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_p() 2338 .mask_clr = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_np() 2417 .mask_clr = __pgprot(~page_flags & (_PAGE_NX|_PAGE_RW)), in kernel_map_pages_in_pgd() [all …]
|
/linux-6.3-rc2/arch/x86/mm/ |
A D | dump_pagetables.c | 192 if (pr & _PAGE_RW) in printk_prot() 260 effective = (higher_prot & prot & (_PAGE_USER | _PAGE_RW)) | in effective_prot() 312 if (st->check_wx && (eff & _PAGE_RW) && !(eff & _PAGE_NX)) in note_page()
|
/linux-6.3-rc2/arch/powerpc/mm/ptdump/ |
A D | shared.c | 19 .mask = _PAGE_RW,
|
/linux-6.3-rc2/arch/x86/platform/efi/ |
A D | efi_64.c | 192 pf = _PAGE_NX | _PAGE_RW | _PAGE_ENC; in efi_setup_page_tables() 272 unsigned long flags = _PAGE_RW; in __map_region() 405 pf |= _PAGE_RW; in efi_update_mem_attr() 454 pf |= _PAGE_RW; in efi_runtime_update_mappings()
|
/linux-6.3-rc2/arch/powerpc/kernel/ |
A D | head_40x.S | 320 rlwinm r9, r11, 1, _PAGE_RW /* dirty => rw */ 322 rlwimi r11, r9, 0, _PAGE_RW /* replace rw by hwwrite */ 404 rlwinm r9, r11, 1, _PAGE_RW /* dirty => rw */ 406 rlwimi r11, r9, 0, _PAGE_RW /* replace rw by hwwrite */
|
/linux-6.3-rc2/arch/parisc/mm/ |
A D | ioremap.c | 65 pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | in ioremap()
|
/linux-6.3-rc2/arch/powerpc/include/asm/book3s/64/ |
A D | pgtable.h | 20 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) macro 117 #define _PAGE_KERNEL_RW (_PAGE_PRIVILEGED | _PAGE_RW | _PAGE_DIRTY) 120 #define _PAGE_KERNEL_RWX (_PAGE_PRIVILEGED | _PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 147 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_RW) 148 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_RW | _PAGE_EXEC) 608 return __pte_raw(pte_raw(pte) | cpu_to_be64(_PAGE_RW)); in pte_mkwrite()
|
/linux-6.3-rc2/arch/x86/kernel/ |
A D | espfix_64.c | 93 #define PGTABLE_PROT ((_KERNPG_TABLE & ~_PAGE_RW) | _PAGE_NX)
|
/linux-6.3-rc2/arch/powerpc/mm/book3s32/ |
A D | hash_low.S | 116 rlwinm r0,r9,28,_PAGE_RW /* MSR[PR] => _PAGE_RW */ 117 rlwinm r5,r5,12,_PAGE_RW /* Ks => _PAGE_RW */
|