Home
last modified time | relevance | path

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

12

/Linux-v5.4/arch/powerpc/include/asm/nohash/32/
Dpte-40x.h47 #define _PAGE_RW 0x040 /* software: Writes permitted */ macro
61 #define _PAGE_KERNEL_RW (_PAGE_DIRTY | _PAGE_RW | _PAGE_HWWRITE)
62 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_HWWRITE | _PAGE_EXEC)
81 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
82 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
91 return __pte(pte_val(pte) & ~(_PAGE_RW | _PAGE_HWWRITE)); in pte_wrprotect()
Dpte-44x.h76 #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)
Dpte-fsl-booke.h22 #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)
Dpgtable.h169 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite()
186 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect()
/Linux-v5.4/arch/um/include/asm/
Dpgtable.h16 #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)
143 return((pte_get_bits(pte, _PAGE_RW)) && in pte_write()
198 if (likely(pte_get_bits(pte, _PAGE_RW))) in pte_wrprotect()
199 pte_clear_bits(pte, _PAGE_RW); in pte_wrprotect()
227 if (unlikely(pte_get_bits(pte, _PAGE_RW))) in pte_mkwrite()
[all …]
/Linux-v5.4/arch/sh/include/asm/
Dpgtable_32.h47 #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);
Dpgtable.h177 prot |= _PAGE_RW; in pte_access_permitted()
/Linux-v5.4/arch/x86/include/asm/
Dpgtable_types.h43 #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW) macro
98 #define _PAGE_SWP_SOFT_DIRTY _PAGE_RW
113 #define _PAGE_TABLE_NOENC (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER |\
115 #define _KERNPG_TABLE_NOENC (_PAGE_PRESENT | _PAGE_RW | \
154 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | \
157 #define PAGE_SHARED_EXEC __pgprot(_PAGE_PRESENT | _PAGE_RW | \
170 (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_GLOBAL)
173 #define __PAGE_KERNEL_RO (__PAGE_KERNEL & ~_PAGE_RW)
174 #define __PAGE_KERNEL_RX (__PAGE_KERNEL_EXEC & ~_PAGE_RW)
188 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | \
Dpgtable.h184 return pte_flags(pte) & _PAGE_RW; in pte_write()
325 return pte_clear_flags(pte, _PAGE_RW); in pte_wrprotect()
345 return pte_set_flags(pte, _PAGE_RW); in pte_mkwrite()
404 return pmd_clear_flags(pmd, _PAGE_RW); in pmd_wrprotect()
429 return pmd_set_flags(pmd, _PAGE_RW); in pmd_mkwrite()
458 return pud_clear_flags(pud, _PAGE_RW); in pud_wrprotect()
483 return pud_set_flags(pud, _PAGE_RW); in pud_mkwrite()
1178 return pmd_flags(pmd) & _PAGE_RW; in pmd_write()
1205 return pud_flags(pud) & _PAGE_RW; in pud_write()
1432 need_pte_bits |= _PAGE_RW; in __pte_access_permitted()
/Linux-v5.4/arch/powerpc/include/asm/nohash/64/
Dpgtable.h102 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite()
117 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect()
265 if ((pte_val(*ptep) & _PAGE_RW) == 0) in ptep_set_wrprotect()
268 pte_update(mm, addr, ptep, _PAGE_RW, 0, 0); in ptep_set_wrprotect()
275 if ((pte_val(*ptep) & _PAGE_RW) == 0) in huge_ptep_set_wrprotect()
278 pte_update(mm, addr, ptep, _PAGE_RW, 0, 1); in huge_ptep_set_wrprotect()
311 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
/Linux-v5.4/arch/powerpc/include/asm/book3s/32/
Dpgtable.h14 #define _PAGE_KERNEL_RW (_PAGE_DIRTY | _PAGE_RW)
15 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC)
68 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
69 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
328 pte_update(ptep, _PAGE_RW, 0); in ptep_set_wrprotect()
337 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
382 static inline int pte_write(pte_t pte) { return !!(pte_val(pte) & _PAGE_RW);} in pte_write()
450 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect()
480 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite()
Dhash.h30 #define _PAGE_RW 0x400 /* software: user write access allowed */ macro
/Linux-v5.4/arch/powerpc/include/asm/nohash/
Dpte-book3e.h52 #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)
Dpgtable.h45 return pte_val(pte) & _PAGE_RW; in pte_write()
/Linux-v5.4/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-v5.4/arch/powerpc/mm/ptdump/
Dshared.c19 .mask = _PAGE_RW,
20 .val = _PAGE_RW,
/Linux-v5.4/arch/x86/platform/efi/
Defi_64.c359 pf = _PAGE_NX | _PAGE_RW | _PAGE_ENC; in efi_setup_page_tables()
376 pf = _PAGE_RW; in efi_setup_page_tables()
405 pf = _PAGE_RW | _PAGE_ENC; in efi_setup_page_tables()
416 unsigned long flags = _PAGE_RW; in __map_region()
550 pf |= _PAGE_RW; in efi_update_mem_attr()
604 pf |= _PAGE_RW; in efi_runtime_update_mappings()
/Linux-v5.4/arch/x86/mm/
Ddump_pagetables.c191 if (pr & _PAGE_RW) in printk_prot()
298 if (st->check_wx && (eff & _PAGE_RW) && !(eff & _PAGE_NX)) in note_page()
353 return (prot1 & prot2 & (_PAGE_USER | _PAGE_RW)) | in effective_prot()
540 eff = _PAGE_USER | _PAGE_RW; in ptdump_walk_pgd_level_core()
Dpageattr.c423 return _PAGE_RW; in protect_rodata()
477 return _PAGE_RW; in protect_kernel_text_ro()
1899 return change_page_attr_clear(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_ro()
1904 return change_page_attr_set(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_rw()
2119 .mask_set = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_p()
2139 .mask_clr = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_np()
2230 if (!(page_flags & _PAGE_RW)) in kernel_map_pages_in_pgd()
2231 cpa.mask_clr = __pgprot(_PAGE_RW); in kernel_map_pages_in_pgd()
2267 .mask_clr = __pgprot(_PAGE_PRESENT | _PAGE_RW), in kernel_unmap_pages_in_pgd()
/Linux-v5.4/arch/powerpc/mm/nohash/
Dfsl_booke.c128 TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_SW : 0); in settlbcam()
135 TLBCAM[index].MAS3 |= ((flags & _PAGE_RW) ? MAS3_UW : 0); in settlbcam()
/Linux-v5.4/arch/parisc/mm/
Dioremap.c67 pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | in __ioremap()
/Linux-v5.4/arch/powerpc/include/asm/book3s/64/
Dpgtable.h20 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) macro
116 #define _PAGE_KERNEL_RW (_PAGE_PRIVILEGED | _PAGE_RW | _PAGE_DIRTY)
119 _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)
660 return __pte_raw(pte_raw(pte) | cpu_to_be64(_PAGE_RW)); in pte_mkwrite()
/Linux-v5.4/arch/powerpc/mm/book3s32/
Dmmu.c267 wimgxpp |= (flags & _PAGE_RW)? BPP_RW: BPP_RX; in setbat()
286 wimgxpp |= (flags & _PAGE_RW)? in setbat()
/Linux-v5.4/arch/x86/kernel/
Despfix_64.c93 #define PGTABLE_PROT ((_KERNPG_TABLE & ~_PAGE_RW) | _PAGE_NX)
/Linux-v5.4/drivers/gpu/drm/
Ddrm_vm.c489 pgprot_val(vma->vm_page_prot) &= ~_PAGE_RW; in drm_mmap_dma()
573 pgprot_val(vma->vm_page_prot) &= ~_PAGE_RW; in drm_mmap_locked()

12