Home
last modified time | relevance | path

Searched refs:_PAGE_RW (Results 1 – 43 of 43) sorted by relevance

/linux-4.1.27/arch/powerpc/include/asm/
Dpte-common.h41 #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 | \
Dpte-hash64.h26 #define _PAGE_RW 0x0200 /* software: user write access allowed */ macro
30 #define _PAGE_KERNEL_RW (_PAGE_RW | _PAGE_DIRTY) /* user access blocked by key */
Dpgtable-ppc64.h278 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()
Dpgtable.h34 { 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()
Dpte-44x.h75 #define _PAGE_RW 0x00000002 /* S: Write permission */ macro
Dpte-fsl-booke.h21 #define _PAGE_RW 0x00004 /* S: Write permission (SW) */ macro
Dpte-40x.h46 #define _PAGE_RW 0x040 /* software: Writes permitted */ macro
Dpte-hash32.h28 #define _PAGE_RW 0x400 /* software: user write access allowed */ macro
Dpte-book3e.h50 #define _PAGE_RW (_PAGE_BAP_SW | _PAGE_BAP_UW) /* User write permission */ macro
Dpgtable-ppc32.h277 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/
Dpgtable.h16 #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/
Dpgtable_32.h46 #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/
Dpgtable_types.h35 #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)
Dpgtable.h115 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/
Dpgtable.h92 #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/
Dpgtable.h212 #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/
Dhugetlbpage-hash64.c58 if (access & _PAGE_RW) in __hash_page_huge()
63 rflags = 0x2 | (!(new_pte & _PAGE_RW)); in __hash_page_huge()
Dhugepage-hash64.c53 if (access & _PAGE_RW) in __hash_page_thp()
62 if ((new_pmd & _PAGE_USER) && !((new_pmd & _PAGE_RW) && in __hash_page_thp()
Dppc_mmu_32.c133 wimgxpp |= (flags & _PAGE_RW)? BPP_RW: BPP_RX; in setbat()
151 wimgxpp |= (flags & _PAGE_RW)? in setbat()
Dfsl_booke_mmu.c131 TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_SW : 0); in settlbcam()
138 TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_UW : 0); in settlbcam()
Dpgtable_32.c157 if ((flags & (_PAGE_RW | _PAGE_RO)) != _PAGE_RO) in ioremap_prot()
Dhash_utils_64.c172 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()
Dpgtable_64.c290 if (flags & _PAGE_RW) in ioremap_prot()
Dhugetlbpage.c1068 mask |= _PAGE_RW; in gup_hugepte()
/linux-4.1.27/arch/x86/mm/
Dgup.c79 mask |= _PAGE_RW; in gup_pte_range()
127 mask |= _PAGE_RW; in gup_huge_pmd()
204 mask |= _PAGE_RW; in gup_huge_pud()
Dpageattr.c280 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()
Ddump_pagetables.c138 if (pr & _PAGE_RW) in printk_prot()
/linux-4.1.27/arch/avr32/mm/
Dioremap.c56 prot = __pgprot(_PAGE_PRESENT | _PAGE_GLOBAL | _PAGE_RW | _PAGE_DIRTY in __ioremap()
/linux-4.1.27/arch/parisc/mm/
Dioremap.c66 pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | in __ioremap()
/linux-4.1.27/drivers/lguest/
Dpage_tables.c459 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/
Dfault.c145 access |= (dsisr & MFC_DSISR_ACCESS_PUT) ? _PAGE_RW : 0UL; in spufs_handle_class1()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_vm.c498 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/
Despfix_64.c101 #define PGTABLE_PROT ((_KERNPG_TABLE & ~_PAGE_RW) | _PAGE_NX)
Drelocate_kernel_64.S20 #define PAGE_ATTR (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY)
/linux-4.1.27/arch/sh/mm/
Dgup.c91 result |= _PAGE_RW; in gup_pte_range()
/linux-4.1.27/drivers/misc/cxl/
Dfault.c154 access |= _PAGE_RW; in cxl_handle_page_fault()
/linux-4.1.27/arch/parisc/include/asm/
Dpgtable.h188 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) macro
/linux-4.1.27/arch/x86/xen/
Dmmu.c1456 pte = __pte_ma(((pte_val_ma(*ptep) & _PAGE_RW) | ~_PAGE_RW) & in mask_rw_pte()
/linux-4.1.27/arch/powerpc/kernel/
Dhead_40x.S318 andi. r9, r11, _PAGE_RW /* Is it writeable? */
Dhead_32.S659 li r1,_PAGE_RW|_PAGE_USER|_PAGE_PRESENT /* access flags */
/linux-4.1.27/arch/microblaze/kernel/
Dhw_exception_handler.S646 andi r6, r4, _PAGE_RW /* Is it writeable? */
/linux-4.1.27/drivers/gpu/drm/i915/
Di915_gem_gtt.c158 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/
Dvmx.c4099 tmp = (i << 22) + (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | in init_rmode_identity_map()