/arch/powerpc/include/asm/nohash/32/ |
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)
|
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)
|
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)
|
D | pgtable.h | 177 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite() 194 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect()
|
/arch/um/include/asm/ |
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 …]
|
/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);
|
D | pgtable.h | 160 prot |= _PAGE_RW; in pte_access_permitted()
|
/arch/powerpc/include/asm/nohash/64/ |
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()
|
/arch/powerpc/include/asm/nohash/ |
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)
|
D | pgtable.h | 45 return pte_val(pte) & _PAGE_RW; in pte_write()
|
/arch/powerpc/include/asm/book3s/32/ |
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()
|
D | hash.h | 30 #define _PAGE_RW 0x400 /* software: user write access allowed */ macro
|
/arch/microblaze/include/asm/ |
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()
|
/arch/powerpc/mm/nohash/ |
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()
|
D | fsl_booke.c | 126 TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_SW : 0); in settlbcam() 133 TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_UW : 0); in settlbcam()
|
/arch/x86/include/asm/ |
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() 1421 need_pte_bits |= _PAGE_RW; in __pte_access_permitted()
|
D | pgtable_types.h | 44 #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW) macro 99 #define _PAGE_SWP_SOFT_DIRTY _PAGE_RW 165 #define __RW _PAGE_RW
|
/arch/powerpc/mm/ptdump/ |
D | shared.c | 19 .mask = _PAGE_RW,
|
/arch/parisc/mm/ |
D | ioremap.c | 65 pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | in ioremap()
|
/arch/x86/mm/ |
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()
|
/arch/x86/platform/efi/ |
D | efi_64.c | 194 pf = _PAGE_NX | _PAGE_RW | _PAGE_ENC; in efi_setup_page_tables() 267 unsigned long flags = _PAGE_RW; in __map_region() 394 pf |= _PAGE_RW; in efi_update_mem_attr() 442 pf |= _PAGE_RW; in efi_runtime_update_mappings()
|
/arch/powerpc/kernel/ |
D | head_40x.S | 292 rlwinm r9, r11, 1, _PAGE_RW /* dirty => rw */ 294 rlwimi r11, r9, 0, _PAGE_RW /* replace rw by hwwrite */ 373 rlwinm r9, r11, 1, _PAGE_RW /* dirty => rw */ 375 rlwimi r11, r9, 0, _PAGE_RW /* replace rw by hwwrite */
|
/arch/powerpc/include/asm/book3s/64/ |
D | pgtable.h | 21 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) macro 118 #define _PAGE_KERNEL_RW (_PAGE_PRIVILEGED | _PAGE_RW | _PAGE_DIRTY) 121 _PAGE_RW | _PAGE_EXEC) 148 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_RW) 149 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_RW | _PAGE_EXEC) 668 return __pte_raw(pte_raw(pte) | cpu_to_be64(_PAGE_RW)); in pte_mkwrite()
|
/arch/x86/mm/pat/ |
D | set_memory.c | 432 return _PAGE_RW; in protect_rodata() 486 return _PAGE_RW; in protect_kernel_text_ro() 1935 return change_page_attr_clear(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_ro() 1940 return change_page_attr_set(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_rw() 2155 .mask_set = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_p() 2175 .mask_clr = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_np() 2254 .mask_clr = __pgprot(~page_flags & (_PAGE_NX|_PAGE_RW)), in kernel_map_pages_in_pgd() 2297 .mask_clr = __pgprot(_PAGE_PRESENT | _PAGE_RW), in kernel_unmap_pages_in_pgd()
|
/arch/x86/kernel/ |
D | espfix_64.c | 93 #define PGTABLE_PROT ((_KERNPG_TABLE & ~_PAGE_RW) | _PAGE_NX)
|