/arch/powerpc/include/asm/ |
D | pgtable-ppc32.h | 172 #define _PAGE_RW 0x040 /* software: Writes permitted */ macro 260 #define _PAGE_RW 0x00000002 /* S: Write permission */ macro 301 #define _PAGE_RW 0x00004 /* S: Write permission (SW) */ macro 337 #define _PAGE_RW 0x0040 /* software: user write access allowed */ macro 370 #define _PAGE_RW 0x400 /* software: user write access allowed */ macro 439 _PAGE_RW | _PAGE_HWWRITE | _PAGE_DIRTY | \ 455 #define _PAGE_WRENABLE (_PAGE_RW | _PAGE_DIRTY | _PAGE_HWWRITE) 482 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 483 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 554 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() [all …]
|
D | pgtable-ppc64.h | 93 #define _PAGE_RW 0x0200 /* software: user write access allowed */ macro 101 #define _PAGE_WRENABLE (_PAGE_RW | _PAGE_DIRTY) 106 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_RW | _PAGE_USER) 107 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_RW | _PAGE_USER | _PAGE_EXEC) 122 _PAGE_4K_PFN | _PAGE_RW | _PAGE_USER | \ 242 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW;} in pte_write() 249 pte_val(pte) &= ~(_PAGE_RW); return pte; } in pte_wrprotect() 255 pte_val(pte) |= _PAGE_RW; return pte; } in pte_mkwrite() 317 if ((pte_val(*ptep) & _PAGE_RW) == 0) in ptep_set_wrprotect() 319 old = pte_update(mm, addr, ptep, _PAGE_RW, 0); in ptep_set_wrprotect() [all …]
|
/arch/um/include/asm/ |
D | pgtable.h | 16 #define _PAGE_RW 0x020 macro 57 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED | _PAGE_DIRTY) 58 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY) 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) 145 return((pte_get_bits(pte, _PAGE_RW)) && in pte_write() 208 pte_clear_bits(pte, _PAGE_RW); in pte_wrprotect() 232 pte_set_bits(pte, _PAGE_RW); in pte_mkwrite()
|
/arch/sh/include/asm/ |
D | pgtable_32.h | 48 #define _PAGE_RW 0x020 /* PR0-bit : write access allowed */ macro 57 #define _PAGE_PR_MASK (_PAGE_RW | _PAGE_USER) 229 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \ 243 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_CACHABLE | \ 248 __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | \ 257 __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | \ 336 #define pte_write(pte) ((pte).pte_low & _PAGE_RW) 352 PTE_BIT_FUNC(low, wrprotect, &= ~_PAGE_RW); 353 PTE_BIT_FUNC(low, mkwrite, |= _PAGE_RW);
|
/arch/x86/include/asm/ |
D | pgtable.h | 31 #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW) macro 57 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \ 59 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | \ 73 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \ 76 #define PAGE_SHARED_EXEC __pgprot(_PAGE_PRESENT | _PAGE_RW | \ 89 (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_GLOBAL) 92 #define __PAGE_KERNEL_RO (__PAGE_KERNEL & ~_PAGE_RW) 93 #define __PAGE_KERNEL_RX (__PAGE_KERNEL_EXEC & ~_PAGE_RW) 202 return pte_flags(pte) & _PAGE_RW; in pte_write() 255 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() [all …]
|
/arch/avr32/include/asm/ |
D | pgtable.h | 95 #define _PAGE_RW (1 << _PAGE_BIT_RW) macro 137 #define _PAGE_FLAGS_WRITE (_PAGE_FLAGS_READ | _PAGE_RW | _PAGE_DIRTY) 149 #define _PAGE_P(x) _PAGE_NORMAL((x) & ~(_PAGE_RW | _PAGE_DIRTY)) 198 return pte_val(pte) & _PAGE_RW; in pte_write() 224 set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_RW)); in pte_wrprotect() 239 set_pte(&pte, __pte(pte_val(pte) | _PAGE_RW)); in pte_mkwrite()
|
/arch/powerpc/mm/ |
D | fsl_booke_mmu.c | 128 TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_SW : 0); in settlbcam() 133 TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_UW : 0); in settlbcam() 137 TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_UW : 0); in settlbcam()
|
D | ppc_mmu_32.c | 136 wimgxpp |= (flags & _PAGE_RW)? BPP_RW: BPP_RX; in setbat() 156 wimgxpp |= (flags & _PAGE_RW)? in setbat()
|
D | gup.c | 30 result |= _PAGE_RW; in gup_pte_range() 74 mask |= _PAGE_RW; in gup_huge_pte()
|
D | pgtable_64.c | 203 if (flags & _PAGE_RW) in ioremap_flags()
|
D | pgtable_32.c | 140 if (flags & _PAGE_RW) in ioremap_flags()
|
D | hash_utils_64.c | 165 if ((pteflags & _PAGE_USER) && !((pteflags & _PAGE_RW) && in htab_convert_pte_flags() 838 spp = ((spp & 2) ? _PAGE_USER : 0) | ((spp & 1) ? _PAGE_RW : 0); in subpage_protection()
|
D | hugetlbpage.c | 604 rflags = 0x2 | (!(new_pte & _PAGE_RW)); in hash_huge_page()
|
/arch/x86/mm/ |
D | gup.c | 78 mask |= _PAGE_RW; in gup_pte_range() 118 mask |= _PAGE_RW; in gup_huge_pmd() 175 mask |= _PAGE_RW; in gup_huge_pud()
|
D | pageattr.c | 271 pgprot_val(forbidden) |= _PAGE_RW; in static_protections() 1021 return change_page_attr_clear(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_ro() 1027 return change_page_attr_set(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_rw() 1095 .mask_set = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_p() 1114 .mask_clr = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_np()
|
D | dump_pagetables.c | 86 if (pr & _PAGE_RW) in printk_prot()
|
/arch/avr32/mm/ |
D | ioremap.c | 55 prot = __pgprot(_PAGE_PRESENT | _PAGE_GLOBAL | _PAGE_RW | _PAGE_DIRTY in __ioremap()
|
/arch/parisc/mm/ |
D | ioremap.c | 66 pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | in __ioremap()
|
/arch/powerpc/platforms/cell/spufs/ |
D | fault.c | 146 access |= (dsisr & MFC_DSISR_ACCESS_PUT) ? _PAGE_RW : 0UL; in spufs_handle_class1()
|
/arch/x86/mach-voyager/ |
D | voyager_basic.c | 141 pg0[0] = ((map_addr & PAGE_MASK) | _PAGE_RW | _PAGE_PRESENT); in voyager_memory_detect()
|
/arch/x86/kernel/ |
D | relocate_kernel_64.S | 20 #define PAGE_ATTR (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY)
|
/arch/x86/xen/ |
D | enlighten.c | 980 (unsigned long)pgprot_val(prot) & _PAGE_RW ? "WRITE" : "READ"); in xen_kmap_atomic_pte() 991 pte = __pte_ma(((pte_val_ma(*ptep) & _PAGE_RW) | ~_PAGE_RW) & in mask_rw_pte()
|
/arch/parisc/include/asm/ |
D | pgtable.h | 160 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) macro
|
/arch/powerpc/kernel/ |
D | head_8xx.S | 524 andi. r11, r10, _PAGE_RW /* Is it writeable? */
|
D | head_40x.S | 322 andi. r9, r11, _PAGE_RW /* Is it writeable? */
|