/Linux-v4.19/arch/powerpc/include/asm/ |
D | pte-common.h | 39 #define _PAGE_RW 0 macro 73 #define _PAGE_KERNEL_RW (_PAGE_PRIVILEGED | _PAGE_DIRTY | _PAGE_RW | \ 77 #define _PAGE_KERNEL_RWX (_PAGE_PRIVILEGED | _PAGE_DIRTY | _PAGE_RW | \ 128 _PAGE_RW | _PAGE_HWWRITE | _PAGE_DIRTY | _PAGE_EXEC) 155 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 156 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | \ 214 #define _PAGE_WRITE _PAGE_RW
|
/Linux-v4.19/arch/um/include/asm/ |
D | pgtable.h | 16 #define _PAGE_RW 0x020 macro 55 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED | _PAGE_DIRTY) 56 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY) 59 (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED) 61 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED) 64 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED) 145 return((pte_get_bits(pte, _PAGE_RW)) && in pte_write() 200 pte_clear_bits(pte, _PAGE_RW); in pte_wrprotect() 224 pte_set_bits(pte, _PAGE_RW); in pte_mkwrite()
|
/Linux-v4.19/arch/sh/include/asm/ |
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);
|
/Linux-v4.19/arch/x86/include/asm/ |
D | pgtable_types.h | 43 #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW) macro 98 #define _PAGE_SWP_SOFT_DIRTY _PAGE_RW 114 #define _PAGE_TABLE_NOENC (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER |\ 116 #define _KERNPG_TABLE_NOENC (_PAGE_PRESENT | _PAGE_RW | \ 155 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \ 158 #define PAGE_SHARED_EXEC __pgprot(_PAGE_PRESENT | _PAGE_RW | \ 171 (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_GLOBAL) 174 #define __PAGE_KERNEL_RO (__PAGE_KERNEL & ~_PAGE_RW) 175 #define __PAGE_KERNEL_RX (__PAGE_KERNEL_EXEC & ~_PAGE_RW) 189 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | \
|
D | pgtable.h | 168 return pte_flags(pte) & _PAGE_RW; in pte_write() 309 return pte_clear_flags(pte, _PAGE_RW); in pte_wrprotect() 329 return pte_set_flags(pte, _PAGE_RW); in pte_mkwrite() 388 return pmd_clear_flags(pmd, _PAGE_RW); in pmd_wrprotect() 413 return pmd_set_flags(pmd, _PAGE_RW); in pmd_mkwrite() 442 return pud_clear_flags(pud, _PAGE_RW); in pud_wrprotect() 467 return pud_set_flags(pud, _PAGE_RW); in pud_mkwrite() 1159 return pmd_flags(pmd) & _PAGE_RW; in pmd_write() 1186 return pud_flags(pud) & _PAGE_RW; in pud_write() 1407 need_pte_bits |= _PAGE_RW; in __pte_access_permitted()
|
/Linux-v4.19/arch/microblaze/include/asm/ |
D | pgtable.h | 214 #define _PAGE_RW 0x040 /* software: Writes permitted */ macro 246 #define _PAGE_WRENABLE (_PAGE_RW | _PAGE_DIRTY | _PAGE_HWWRITE) 256 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 258 __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 335 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() 346 { pte_val(pte) &= ~(_PAGE_RW | _PAGE_HWWRITE); return pte; } in pte_wrprotect() 359 { pte_val(pte) |= _PAGE_RW; return pte; } in pte_mkwrite()
|
/Linux-v4.19/arch/powerpc/include/asm/nohash/64/ |
D | pgtable.h | 236 if ((pte_val(*ptep) & _PAGE_RW) == 0) in ptep_set_wrprotect() 239 pte_update(mm, addr, ptep, _PAGE_RW, 0, 0); in ptep_set_wrprotect() 245 if ((pte_val(*ptep) & _PAGE_RW) == 0) in huge_ptep_set_wrprotect() 248 pte_update(mm, addr, ptep, _PAGE_RW, 0, 1); in huge_ptep_set_wrprotect() 281 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
|
/Linux-v4.19/arch/powerpc/include/asm/book3s/32/ |
D | pgtable.h | 222 pte_update(ptep, (_PAGE_RW | _PAGE_HWWRITE), _PAGE_RO); in ptep_set_wrprotect() 237 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags() 298 static inline int pte_write(pte_t pte) { return !!(pte_val(pte) & _PAGE_RW);} in pte_write() 354 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 369 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite()
|
D | hash.h | 29 #define _PAGE_RW 0x400 /* software: user write access allowed */ macro
|
/Linux-v4.19/arch/powerpc/include/asm/nohash/ |
D | pgtable.h | 16 return (pte_val(pte) & (_PAGE_RW | _PAGE_RO)) != _PAGE_RO; in pte_write() 84 ptev = pte_val(pte) & ~(_PAGE_RW | _PAGE_HWWRITE); in pte_wrprotect() 104 ptev |= _PAGE_RW; in pte_mkwrite()
|
D | pte-book3e.h | 52 #define _PAGE_RW (_PAGE_BAP_SW | _PAGE_BAP_UW) /* User write permission */ macro
|
/Linux-v4.19/arch/powerpc/mm/ |
D | dump_linuxpagetables.c | 120 .mask = _PAGE_RW | _PAGE_RO | _PAGE_NA, 121 .val = _PAGE_RW, 124 .mask = _PAGE_RW | _PAGE_RO | _PAGE_NA, 129 .mask = _PAGE_RW | _PAGE_RO | _PAGE_NA,
|
D | ppc_mmu_32.c | 133 wimgxpp |= (flags & _PAGE_RW)? BPP_RW: BPP_RX; in setbat() 151 wimgxpp |= (flags & _PAGE_RW)? in setbat()
|
D | fsl_booke_mmu.c | 133 TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_SW : 0); in settlbcam() 140 TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_UW : 0); in settlbcam()
|
/Linux-v4.19/arch/powerpc/include/asm/nohash/32/ |
D | pte-40x.h | 47 #define _PAGE_RW 0x040 /* software: Writes permitted */ macro
|
D | pte-44x.h | 76 #define _PAGE_RW 0x00000002 /* S: Write permission */ macro
|
D | pte-fsl-booke.h | 22 #define _PAGE_RW 0x00004 /* S: Write permission (SW) */ macro
|
D | pgtable.h | 247 pte_update(ptep, (_PAGE_RW | _PAGE_HWWRITE), _PAGE_RO); in ptep_set_wrprotect() 262 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
|
/Linux-v4.19/arch/x86/platform/efi/ |
D | efi_64.c | 356 pf = _PAGE_NX | _PAGE_RW | _PAGE_ENC; in efi_setup_page_tables() 373 pf = _PAGE_RW; in efi_setup_page_tables() 402 pf = _PAGE_RW | _PAGE_ENC; in efi_setup_page_tables() 413 unsigned long flags = _PAGE_RW; in __map_region() 547 pf |= _PAGE_RW; in efi_update_mem_attr() 601 pf |= _PAGE_RW; in efi_runtime_update_mappings()
|
/Linux-v4.19/arch/x86/mm/ |
D | dump_pagetables.c | 196 if (pr & _PAGE_RW) in printk_prot() 279 if (st->check_wx && (eff & _PAGE_RW) && !(eff & _PAGE_NX)) { in note_page() 340 return (prot1 & prot2 & (_PAGE_USER | _PAGE_RW)) | in effective_prot() 528 eff = _PAGE_USER | _PAGE_RW; in ptdump_walk_pgd_level_core()
|
D | pageattr.c | 325 pgprot_val(forbidden) |= _PAGE_RW; in static_protections() 360 pgprot_val(forbidden) |= _PAGE_RW; in static_protections() 1789 return change_page_attr_clear(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_ro() 1794 return change_page_attr_set(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_rw() 2036 .mask_set = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_p() 2056 .mask_clr = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_np() 2135 if (!(page_flags & _PAGE_RW)) in kernel_map_pages_in_pgd() 2136 cpa.mask_clr = __pgprot(_PAGE_RW); in kernel_map_pages_in_pgd()
|
/Linux-v4.19/arch/parisc/mm/ |
D | ioremap.c | 67 pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | in __ioremap()
|
/Linux-v4.19/arch/powerpc/include/asm/book3s/64/ |
D | pgtable.h | 24 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) macro 121 #define _PAGE_KERNEL_RW (_PAGE_PRIVILEGED | _PAGE_RW | _PAGE_DIRTY) 124 _PAGE_RW | _PAGE_EXEC) 166 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_RW) 167 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_RW | _PAGE_EXEC) 664 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite()
|
/Linux-v4.19/arch/x86/kernel/ |
D | espfix_64.c | 101 #define PGTABLE_PROT ((_KERNPG_TABLE & ~_PAGE_RW) | _PAGE_NX)
|
/Linux-v4.19/arch/sh/mm/ |
D | gup.c | 92 result |= _PAGE_RW; in gup_pte_range()
|