/linux-4.1.27/arch/powerpc/include/asm/ |
D | pte-common.h | 41 #define _PAGE_RW 0 macro 57 #define _PAGE_KERNEL_RW (_PAGE_DIRTY | _PAGE_RW | _PAGE_HWWRITE) 60 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_HWWRITE | _PAGE_EXEC) 105 _PAGE_RW | _PAGE_HWWRITE | _PAGE_DIRTY | _PAGE_EXEC) 131 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 132 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | \
|
D | pte-hash64.h | 26 #define _PAGE_RW 0x0200 /* software: user write access allowed */ macro 30 #define _PAGE_KERNEL_RW (_PAGE_RW | _PAGE_DIRTY) /* user access blocked by key */
|
D | pgtable-ppc64.h | 278 if ((pte_val(*ptep) & _PAGE_RW) == 0) in ptep_set_wrprotect() 281 pte_update(mm, addr, ptep, _PAGE_RW, 0, 0); in ptep_set_wrprotect() 287 if ((pte_val(*ptep) & _PAGE_RW) == 0) in huge_ptep_set_wrprotect() 290 pte_update(mm, addr, ptep, _PAGE_RW, 0, 1); in huge_ptep_set_wrprotect() 330 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags() 581 if ((pmd_val(*pmdp) & _PAGE_RW) == 0) in pmdp_set_wrprotect() 584 pmd_hugepage_update(mm, addr, pmdp, _PAGE_RW, 0); in pmdp_set_wrprotect()
|
D | pgtable.h | 34 { return (pte_val(pte) & (_PAGE_RW | _PAGE_RO)) != _PAGE_RO; } in pte_write() 82 pte_val(pte) &= ~(_PAGE_RW | _PAGE_HWWRITE); in pte_wrprotect() 90 pte_val(pte) |= _PAGE_RW; return pte; } in pte_mkwrite()
|
D | pte-44x.h | 75 #define _PAGE_RW 0x00000002 /* S: Write permission */ macro
|
D | pte-fsl-booke.h | 21 #define _PAGE_RW 0x00004 /* S: Write permission (SW) */ macro
|
D | pte-40x.h | 46 #define _PAGE_RW 0x040 /* software: Writes permitted */ macro
|
D | pte-hash32.h | 28 #define _PAGE_RW 0x400 /* software: user write access allowed */ macro
|
D | pte-book3e.h | 50 #define _PAGE_RW (_PAGE_BAP_SW | _PAGE_BAP_UW) /* User write permission */ macro
|
D | pgtable-ppc32.h | 277 pte_update(ptep, (_PAGE_RW | _PAGE_HWWRITE), _PAGE_RO); in ptep_set_wrprotect() 289 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
|
/linux-4.1.27/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-4.1.27/arch/sh/include/asm/ |
D | pgtable_32.h | 46 #define _PAGE_RW 0x020 /* PR0-bit : write access allowed */ macro 55 #define _PAGE_PR_MASK (_PAGE_RW | _PAGE_USER) 241 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \ 255 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_CACHABLE | \ 260 __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | \ 269 __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, |= _PAGE_RW);
|
/linux-4.1.27/arch/x86/include/asm/ |
D | pgtable_types.h | 35 #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW) macro 94 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \ 96 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | \ 129 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \ 132 #define PAGE_SHARED_EXEC __pgprot(_PAGE_PRESENT | _PAGE_RW | \ 145 (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_GLOBAL) 148 #define __PAGE_KERNEL_RO (__PAGE_KERNEL & ~_PAGE_RW) 149 #define __PAGE_KERNEL_RX (__PAGE_KERNEL_EXEC & ~_PAGE_RW)
|
D | pgtable.h | 115 return pte_flags(pte) & _PAGE_RW; in pte_write() 203 return pte_clear_flags(pte, _PAGE_RW); in pte_wrprotect() 223 return pte_set_flags(pte, _PAGE_RW); in pte_mkwrite() 272 return pmd_clear_flags(pmd, _PAGE_RW); in pmd_wrprotect() 292 return pmd_set_flags(pmd, _PAGE_RW); in pmd_mkwrite() 799 return pmd_flags(pmd) & _PAGE_RW; in pmd_write()
|
/linux-4.1.27/arch/avr32/include/asm/ |
D | pgtable.h | 92 #define _PAGE_RW (1 << _PAGE_BIT_RW) macro 133 #define _PAGE_FLAGS_WRITE (_PAGE_FLAGS_READ | _PAGE_RW | _PAGE_DIRTY) 145 #define _PAGE_P(x) _PAGE_NORMAL((x) & ~(_PAGE_RW | _PAGE_DIRTY)) 194 return pte_val(pte) & _PAGE_RW; in pte_write() 212 set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_RW)); in pte_wrprotect() 227 set_pte(&pte, __pte(pte_val(pte) | _PAGE_RW)); in pte_mkwrite()
|
/linux-4.1.27/arch/microblaze/include/asm/ |
D | pgtable.h | 212 #define _PAGE_RW 0x040 /* software: Writes permitted */ macro 244 #define _PAGE_WRENABLE (_PAGE_RW | _PAGE_DIRTY | _PAGE_HWWRITE) 254 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW) 256 __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC) 333 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() 344 { pte_val(pte) &= ~(_PAGE_RW | _PAGE_HWWRITE); return pte; } in pte_wrprotect() 357 { pte_val(pte) |= _PAGE_RW; return pte; } in pte_mkwrite()
|
/linux-4.1.27/arch/powerpc/mm/ |
D | hugetlbpage-hash64.c | 58 if (access & _PAGE_RW) in __hash_page_huge() 63 rflags = 0x2 | (!(new_pte & _PAGE_RW)); in __hash_page_huge()
|
D | hugepage-hash64.c | 53 if (access & _PAGE_RW) in __hash_page_thp() 62 if ((new_pmd & _PAGE_USER) && !((new_pmd & _PAGE_RW) && in __hash_page_thp()
|
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 | 131 TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_SW : 0); in settlbcam() 138 TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_UW : 0); in settlbcam()
|
D | pgtable_32.c | 157 if ((flags & (_PAGE_RW | _PAGE_RO)) != _PAGE_RO) in ioremap_prot()
|
D | hash_utils_64.c | 172 if ((pteflags & _PAGE_USER) && !((pteflags & _PAGE_RW) && in htab_convert_pte_flags() 947 spp = ((spp & 2) ? _PAGE_USER : 0) | ((spp & 1) ? _PAGE_RW : 0); in subpage_protection()
|
D | pgtable_64.c | 290 if (flags & _PAGE_RW) in ioremap_prot()
|
D | hugetlbpage.c | 1068 mask |= _PAGE_RW; in gup_hugepte()
|
/linux-4.1.27/arch/x86/mm/ |
D | gup.c | 79 mask |= _PAGE_RW; in gup_pte_range() 127 mask |= _PAGE_RW; in gup_huge_pmd() 204 mask |= _PAGE_RW; in gup_huge_pud()
|
D | pageattr.c | 280 pgprot_val(forbidden) |= _PAGE_RW; in static_protections() 315 pgprot_val(forbidden) |= _PAGE_RW; in static_protections() 1653 return change_page_attr_clear(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_ro() 1658 return change_page_attr_set(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_rw() 1804 .mask_set = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_p() 1824 .mask_clr = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_np()
|
D | dump_pagetables.c | 138 if (pr & _PAGE_RW) in printk_prot()
|
/linux-4.1.27/arch/avr32/mm/ |
D | ioremap.c | 56 prot = __pgprot(_PAGE_PRESENT | _PAGE_GLOBAL | _PAGE_RW | _PAGE_DIRTY in __ioremap()
|
/linux-4.1.27/arch/parisc/mm/ |
D | ioremap.c | 66 pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | in __ioremap()
|
/linux-4.1.27/drivers/lguest/ |
D | page_tables.c | 459 gpte = __pte((vaddr & PAGE_MASK) | _PAGE_RW | _PAGE_PRESENT); in demand_page() 473 if ((errcode & 2) && !(pte_flags(gpte) & _PAGE_RW)) in demand_page() 570 return (flags & (_PAGE_PRESENT|_PAGE_RW)) == (_PAGE_PRESENT|_PAGE_RW); in page_writable()
|
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/ |
D | fault.c | 145 access |= (dsisr & MFC_DSISR_ACCESS_PUT) ? _PAGE_RW : 0UL; in spufs_handle_class1()
|
/linux-4.1.27/drivers/gpu/drm/ |
D | drm_vm.c | 498 pgprot_val(vma->vm_page_prot) &= ~_PAGE_RW; in drm_mmap_dma() 582 pgprot_val(vma->vm_page_prot) &= ~_PAGE_RW; in drm_mmap_locked() 721 pgprot & _PAGE_RW ? 'w' : 'r', in drm_vma_info()
|
/linux-4.1.27/arch/x86/kernel/ |
D | espfix_64.c | 101 #define PGTABLE_PROT ((_KERNPG_TABLE & ~_PAGE_RW) | _PAGE_NX)
|
D | relocate_kernel_64.S | 20 #define PAGE_ATTR (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY)
|
/linux-4.1.27/arch/sh/mm/ |
D | gup.c | 91 result |= _PAGE_RW; in gup_pte_range()
|
/linux-4.1.27/drivers/misc/cxl/ |
D | fault.c | 154 access |= _PAGE_RW; in cxl_handle_page_fault()
|
/linux-4.1.27/arch/parisc/include/asm/ |
D | pgtable.h | 188 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) macro
|
/linux-4.1.27/arch/x86/xen/ |
D | mmu.c | 1456 pte = __pte_ma(((pte_val_ma(*ptep) & _PAGE_RW) | ~_PAGE_RW) & in mask_rw_pte()
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | head_40x.S | 318 andi. r9, r11, _PAGE_RW /* Is it writeable? */
|
D | head_32.S | 659 li r1,_PAGE_RW|_PAGE_USER|_PAGE_PRESENT /* access flags */
|
/linux-4.1.27/arch/microblaze/kernel/ |
D | hw_exception_handler.S | 646 andi r6, r4, _PAGE_RW /* Is it writeable? */
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | i915_gem_gtt.c | 158 gen8_pte_t pte = valid ? _PAGE_PRESENT | _PAGE_RW : 0; in gen8_pte_encode() 180 gen8_pde_t pde = _PAGE_PRESENT | _PAGE_RW; in gen8_pde_encode()
|
/linux-4.1.27/arch/x86/kvm/ |
D | vmx.c | 4099 tmp = (i << 22) + (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | in init_rmode_identity_map()
|