Home
last modified time | relevance | path

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

12

/linux/arch/um/include/asm/
A 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)
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 …]
/linux/arch/powerpc/include/asm/nohash/32/
A Dpte-40x.h48 #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)
80 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
81 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
A 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)
A 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)
A Dpgtable.h175 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite()
192 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect()
315 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()
/linux/arch/sh/include/asm/
A 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);
A Dpgtable.h158 prot |= _PAGE_RW; in pte_access_permitted()
/linux/arch/powerpc/include/asm/book3s/32/
A Dpgtable.h31 #define _PAGE_RW 0x400 /* software: user write access allowed */ macro
49 #define _PAGE_KERNEL_RW (_PAGE_DIRTY | _PAGE_RW)
50 #define _PAGE_KERNEL_RWX (_PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC)
105 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
106 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
355 pte_update(mm, addr, ptep, _PAGE_RW, 0, 0); in ptep_set_wrprotect()
364 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
390 static inline int pte_write(pte_t pte) { return !!(pte_val(pte) & _PAGE_RW);} in pte_write()
458 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect()
488 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite()
/linux/arch/powerpc/include/asm/nohash/64/
A Dpgtable.h103 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite()
118 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect()
230 if ((pte_val(*ptep) & _PAGE_RW) == 0) in ptep_set_wrprotect()
233 pte_update(mm, addr, ptep, _PAGE_RW, 0, 0); in ptep_set_wrprotect()
240 if ((pte_val(*ptep) & _PAGE_RW) == 0) in huge_ptep_set_wrprotect()
243 pte_update(mm, addr, ptep, _PAGE_RW, 0, 1); in huge_ptep_set_wrprotect()
276 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
/linux/arch/microblaze/include/asm/
A Dpgtable.h151 #define _PAGE_RW 0x040 /* software: Writes permitted */ macro
183 #define _PAGE_WRENABLE (_PAGE_RW | _PAGE_DIRTY | _PAGE_HWWRITE)
193 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
195 __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
260 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write()
271 { pte_val(pte) &= ~(_PAGE_RW | _PAGE_HWWRITE); return pte; } in pte_wrprotect()
284 { pte_val(pte) |= _PAGE_RW; return pte; } in pte_mkwrite()
/linux/arch/powerpc/include/asm/nohash/
A 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_BAP_UX)
/linux/arch/powerpc/mm/ptdump/
A Dshared.c19 .mask = _PAGE_RW,
20 .val = _PAGE_RW,
/linux/arch/powerpc/mm/nohash/
A D40x.c103 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()
A Dfsl_book3e.c126 TLBCAM[index].MAS3 |= (flags & _PAGE_RW) ? MAS3_SW : 0; in settlbcam()
134 TLBCAM[index].MAS3 |= (flags & _PAGE_RW) ? MAS3_UW : 0; in settlbcam()
/linux/arch/x86/include/asm/
A Dpgtable.h156 return pte_flags(pte) & _PAGE_RW; in pte_write()
317 return pte_clear_flags(pte, _PAGE_RW); in pte_wrprotect()
337 return pte_set_flags(pte, _PAGE_RW); in pte_mkwrite()
413 return pmd_clear_flags(pmd, _PAGE_RW); in pmd_wrprotect()
438 return pmd_set_flags(pmd, _PAGE_RW); in pmd_mkwrite()
467 return pud_clear_flags(pud, _PAGE_RW); in pud_wrprotect()
492 return pud_set_flags(pud, _PAGE_RW); in pud_mkwrite()
1105 return pmd_flags(pmd) & _PAGE_RW; in pmd_write()
1132 return pud_flags(pud) & _PAGE_RW; in pud_write()
1366 need_pte_bits |= _PAGE_RW; in __pte_access_permitted()
A Dpgtable_types.h42 #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW) macro
97 #define _PAGE_SWP_SOFT_DIRTY _PAGE_RW
162 #define __RW _PAGE_RW
/linux/arch/x86/mm/
A Ddump_pagetables.c192 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()
/linux/arch/x86/platform/efi/
A Defi_64.c191 pf = _PAGE_NX | _PAGE_RW | _PAGE_ENC; in efi_setup_page_tables()
264 unsigned long flags = _PAGE_RW; in __map_region()
392 pf |= _PAGE_RW; in efi_update_mem_attr()
440 pf |= _PAGE_RW; in efi_runtime_update_mappings()
/linux/arch/powerpc/kernel/
A Dhead_40x.S313 rlwinm r9, r11, 1, _PAGE_RW /* dirty => rw */
315 rlwimi r11, r9, 0, _PAGE_RW /* replace rw by hwwrite */
393 rlwinm r9, r11, 1, _PAGE_RW /* dirty => rw */
395 rlwimi r11, r9, 0, _PAGE_RW /* replace rw by hwwrite */
/linux/arch/powerpc/include/asm/book3s/64/
A Dpgtable.h21 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) macro
118 #define _PAGE_KERNEL_RW (_PAGE_PRIVILEGED | _PAGE_RW | _PAGE_DIRTY)
122 _PAGE_RW | _PAGE_EXEC)
149 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_RW)
150 #define PAGE_SHARED_X __pgprot(_PAGE_BASE | _PAGE_RW | _PAGE_EXEC)
689 return __pte_raw(pte_raw(pte) | cpu_to_be64(_PAGE_RW)); in pte_mkwrite()
/linux/arch/x86/mm/pat/
A Dset_memory.c443 return _PAGE_RW; in protect_rodata()
497 return _PAGE_RW; in protect_kernel_text_ro()
1946 return change_page_attr_clear(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_ro()
1951 return change_page_attr_set(&addr, numpages, __pgprot(_PAGE_RW), 0); in set_memory_rw()
2183 .mask_set = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_p()
2203 .mask_clr = __pgprot(_PAGE_PRESENT | _PAGE_RW), in __set_pages_np()
2282 .mask_clr = __pgprot(~page_flags & (_PAGE_NX|_PAGE_RW)), in kernel_map_pages_in_pgd()
2325 .mask_clr = __pgprot(_PAGE_PRESENT | _PAGE_RW), in kernel_unmap_pages_in_pgd()
/linux/arch/parisc/mm/
A Dioremap.c65 pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | in ioremap()
/linux/arch/x86/kernel/
A Despfix_64.c93 #define PGTABLE_PROT ((_KERNPG_TABLE & ~_PAGE_RW) | _PAGE_NX)
/linux/drivers/gpu/drm/
A Ddrm_vm.c481 pgprot_val(vma->vm_page_prot) &= ~_PAGE_RW; in drm_mmap_dma()
565 pgprot_val(vma->vm_page_prot) &= ~_PAGE_RW; in drm_mmap_locked()
/linux/arch/powerpc/mm/book3s32/
A Dhash_low.S116 rlwinm r0,r9,28,_PAGE_RW /* MSR[PR] => _PAGE_RW */
117 rlwinm r5,r5,12,_PAGE_RW /* Ks => _PAGE_RW */

Completed in 41 milliseconds

12