| /linux-6.15/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() 172 pte_clear_bits(pte, _PAGE_RW); in pte_wrprotect() 196 pte_set_bits(pte, _PAGE_RW); in pte_mkwrite_novma()
|
| /linux-6.15/arch/powerpc/include/asm/ |
| H A D | pgtable-masks.h | 10 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) macro 18 #define _PAGE_KERNEL_RW (_PAGE_RW | _PAGE_DIRTY) 25 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_RW)
|
| /linux-6.15/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);
|
| H A D | pgtable.h | 142 prot |= _PAGE_RW; in pte_access_permitted()
|
| /linux-6.15/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()
|
| /linux-6.15/arch/x86/include/asm/ |
| H A D | pgtable.h | 234 return pud_flags(pud) & _PAGE_RW; in pud_write() 442 pte = pte_clear_flags(pte, _PAGE_RW); in pte_wrprotect() 493 pte = pte_clear_flags(pte, _PAGE_RW); in pte_mkwrite_shstk() 505 return pte_set_flags(pte, _PAGE_RW); in pte_mkwrite_novma() 562 pmd = pmd_clear_flags(pmd, _PAGE_RW); in pmd_wrprotect() 630 return pmd_set_flags(pmd, _PAGE_RW); in pmd_mkwrite_novma() 700 pud = pud_set_flags(pud, _PAGE_RW); in pud_mkwrite() 847 if (oldval & _PAGE_RW) in pte_modify() 870 if (oldval & _PAGE_RW) in pmd_modify() 893 if (oldval & _PAGE_RW) in pud_modify() [all …]
|
| H A D | pgtable_types.h | 53 #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW) macro 109 #define _PAGE_SWP_SOFT_DIRTY _PAGE_RW 192 #define __RW _PAGE_RW
|
| H A D | tlbflush.h | 381 const pteval_t flush_on_change = _PAGE_RW | _PAGE_USER | _PAGE_PWT | in pte_flags_need_flush()
|
| /linux-6.15/arch/x86/mm/pat/ |
| H A D | set_memory.c | 528 return _PAGE_RW; in protect_rodata() 582 return _PAGE_RW; in protect_kernel_text_ro() 691 if ((pgprot_val(new) & (_PAGE_RW | _PAGE_NX)) != _PAGE_RW) in verify_rwx() 734 *rw &= pgd_flags(*pgd) & _PAGE_RW; in lookup_address_in_pgd_attr() 745 *rw &= p4d_flags(*p4d) & _PAGE_RW; in lookup_address_in_pgd_attr() 756 *rw &= pud_flags(*pud) & _PAGE_RW; in lookup_address_in_pgd_attr() 767 *rw &= pmd_flags(*pmd) & _PAGE_RW; in lookup_address_in_pgd_attr() 2312 pgprot_t clr = __pgprot(_PAGE_RW | _PAGE_DIRTY); in set_memory_rox() 2599 .mask_set = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_p() 2619 .mask_clr = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY), in __set_pages_np() [all …]
|
| /linux-6.15/arch/x86/mm/ |
| H 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.15/drivers/firmware/efi/libstub/ |
| H A D | x86-mixed.S | 187 movl $_PAGE_PRESENT | _PAGE_RW | _PAGE_PSE, %ecx 188 leal (_PAGE_PRESENT | _PAGE_RW)(%eax), %edx
|
| /linux-6.15/arch/powerpc/include/asm/nohash/ |
| H A D | pgtable.h | 142 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags() 158 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite_novma()
|
| H A D | pte-e500.h | 53 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) macro
|
| /linux-6.15/arch/x86/platform/efi/ |
| H 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()
|
| /linux-6.15/arch/powerpc/include/asm/book3s/32/ |
| H A D | pgtable.h | 334 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags() 488 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite_novma()
|
| /linux-6.15/arch/x86/kernel/ |
| H A D | espfix_64.c | 93 #define PGTABLE_PROT ((_KERNPG_TABLE & ~_PAGE_RW) | _PAGE_NX)
|
| H A D | relocate_kernel_64.S | 24 #define PAGE_ATTR (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY)
|
| /linux-6.15/arch/powerpc/include/asm/nohash/32/ |
| H A D | pte-8xx.h | 53 #define _PAGE_RW 0 macro
|
| /linux-6.15/arch/parisc/include/asm/ |
| H A D | io.h | 130 #define _PAGE_IOREMAP (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | \
|
| H A D | pgtable.h | 192 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) macro
|
| /linux-6.15/arch/powerpc/include/asm/book3s/64/ |
| H A D | pgtable.h | 116 #define _PAGE_KERNEL_RW (_PAGE_PRIVILEGED | _PAGE_RW | _PAGE_DIRTY) 119 #define _PAGE_KERNEL_RWX (_PAGE_PRIVILEGED | _PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC) 589 return __pte_raw(pte_raw(pte) | cpu_to_be64(_PAGE_RW)); in pte_mkwrite_novma()
|
| /linux-6.15/arch/powerpc/mm/book3s64/ |
| H A D | radix_pgtable.c | 1550 _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in radix__ptep_set_access_flags() 1564 if (!cpu_has_feature(CPU_FTR_ARCH_31) && (change & _PAGE_RW) && in radix__ptep_set_access_flags()
|
| /linux-6.15/arch/microblaze/kernel/ |
| H A D | hw_exception_handler.S | 534 andi r6, r4, _PAGE_RW /* Is it writeable? */
|
| /linux-6.15/arch/powerpc/kernel/ |
| H A D | head_book3s_32.S | 562 li r1, _PAGE_RW | _PAGE_DIRTY | _PAGE_PRESENT | _PAGE_ACCESSED
|
| /linux-6.15/arch/x86/xen/ |
| H A D | mmu_pv.c | 1523 pte &= ~_PAGE_RW; in xen_make_pte_init()
|