Home
last modified time | relevance | path

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

/linux/arch/um/include/asm/
H A Dpgtable.h16 #define _PAGE_RW 0x020 macro
58 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED | _PAGE_DIRTY)
59 #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY)
62 (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED)
64 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED)
67 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED)
135 return((pte_get_bits(pte, _PAGE_RW)) && in pte_write()
174 pte_clear_bits(pte, _PAGE_RW); in pte_wrprotect()
198 pte_set_bits(pte, _PAGE_RW); in pte_mkwrite_novma()
/linux/arch/sh/include/asm/
H 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 | \
348 #define pte_write(pte) ((pte).pte_low & _PAGE_RW)
364 PTE_BIT_FUNC(low, wrprotect, &= ~_PAGE_RW);
365 PTE_BIT_FUNC(low, mkwrite_novma, |= _PAGE_RW);
H A Dpgtable.h142 prot |= _PAGE_RW; in pte_access_permitted()
/linux/arch/powerpc/include/asm/
H A Dpgtable-masks.h10 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) macro
18 #define _PAGE_KERNEL_RW (_PAGE_RW | _PAGE_DIRTY)
25 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_RW)
/linux/arch/microblaze/include/asm/
H A Dpgtable.h150 #define _PAGE_RW 0x040 /* software: Writes permitted */ macro
185 #define _PAGE_WRENABLE (_PAGE_RW | _PAGE_DIRTY | _PAGE_HWWRITE)
195 #define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW)
197 __pgprot(_PAGE_BASE | _PAGE_USER | _PAGE_RW | _PAGE_EXEC)
245 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write()
256 { pte_val(pte) &= ~(_PAGE_RW | _PAGE_HWWRITE); return pte; } in pte_wrprotect()
269 { pte_val(pte) |= _PAGE_RW; return pte; } in pte_mkwrite_novma()
/linux/arch/x86/include/asm/
H A Dpgtable.h163 (pte_flags(pte) & (_PAGE_RW | _PAGE_DIRTY)) == _PAGE_DIRTY; in pte_shstk()
185 (pmd_flags(pmd) & (_PAGE_RW | _PAGE_DIRTY | _PAGE_PSE)) == in pmd_shstk()
208 (pud_flags(pud) & (_PAGE_RW | _PAGE_DIRTY | _PAGE_PSE)) == in pud_shstk()
218 return (pte_flags(pte) & _PAGE_RW) || pte_shstk(pte); in pte_write()
228 return (pmd_flags(pmd) & _PAGE_RW) || pmd_shstk(pmd); in pmd_write()
234 return pud_flags(pud) & _PAGE_RW; in pud_write()
410 pte = pte_clear_flags(pte, _PAGE_RW); in pte_wrprotect()
461 pte = pte_clear_flags(pte, _PAGE_RW); in pte_mkwrite_shstk()
473 return pte_set_flags(pte, _PAGE_RW); in pte_mkwrite_novma()
525 pmd = pmd_clear_flags(pmd, _PAGE_RW); in pmd_wrprotect()
[all …]
/linux/arch/x86/mm/pat/
H A Dset_memory.c522 return _PAGE_RW; in protect_rodata()
576 return _PAGE_RW; in protect_kernel_text_ro()
682 if (!((pgprot_val(old) ^ pgprot_val(new)) & (_PAGE_RW | _PAGE_NX))) in verify_rwx()
685 if ((pgprot_val(new) & (_PAGE_RW | _PAGE_NX)) != _PAGE_RW) in verify_rwx()
728 *rw &= pgd_flags(*pgd) & _PAGE_RW; in lookup_address_in_pgd_attr()
739 *rw &= p4d_flags(*p4d) & _PAGE_RW; in lookup_address_in_pgd_attr()
750 *rw &= pud_flags(*pud) & _PAGE_RW; in lookup_address_in_pgd_attr()
761 *rw &= pmd_flags(*pmd) & _PAGE_RW; in lookup_address_in_pgd_attr()
2317 return change_page_attr_clear(&addr, numpages, __pgprot(_PAGE_RW | _PAGE_DIRTY), 0); in set_memory_ro()
2322 pgprot_t clr = __pgprot(_PAGE_RW | _PAGE_DIRTY); in set_memory_rox()
[all …]
/linux/arch/powerpc/include/asm/nohash/
H A Dpgtable.h142 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
158 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite_novma()
H A Dpte-e500.h53 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) macro
/linux/arch/x86/platform/efi/
H A Defi_64.c193 pf = _PAGE_NX | _PAGE_RW | _PAGE_ENC; in efi_setup_page_tables()
273 unsigned long flags = _PAGE_RW; in __map_region()
406 pf |= _PAGE_RW; in efi_update_mem_attr()
/linux/arch/powerpc/include/asm/book3s/32/
H A Dpgtable.h334 (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in __ptep_set_access_flags()
488 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite_novma()
/linux/arch/x86/kernel/
H A Despfix_64.c93 #define PGTABLE_PROT ((_KERNPG_TABLE & ~_PAGE_RW) | _PAGE_NX)
H A Dmachine_kexec_64.c679 __pgprot(_PAGE_PRESENT | _PAGE_NX | _PAGE_RW)); in kexec_mark_dm_crypt_keys()
/linux/arch/powerpc/include/asm/nohash/32/
H A Dpte-8xx.h53 #define _PAGE_RW 0 macro
/linux/arch/powerpc/include/asm/book3s/64/
H A Dpgtable.h115 #define _PAGE_KERNEL_RW (_PAGE_PRIVILEGED | _PAGE_RW | _PAGE_DIRTY)
118 #define _PAGE_KERNEL_RWX (_PAGE_PRIVILEGED | _PAGE_DIRTY | _PAGE_RW | _PAGE_EXEC)
588 return __pte_raw(pte_raw(pte) | cpu_to_be64(_PAGE_RW)); in pte_mkwrite_novma()
/linux/arch/parisc/include/asm/
H A Dpgtable.h192 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE) macro
/linux/arch/powerpc/mm/book3s64/
H A Dradix_pgtable.c1556 _PAGE_ACCESSED | _PAGE_RW | _PAGE_EXEC); in radix__ptep_set_access_flags()
1570 if (!cpu_has_feature(CPU_FTR_ARCH_31) && (change & _PAGE_RW) && in radix__ptep_set_access_flags()
/linux/arch/microblaze/kernel/
H A Dhw_exception_handler.S534 andi r6, r4, _PAGE_RW /* Is it writeable? */
/linux/arch/powerpc/kernel/
H A Dhead_book3s_32.S562 li r1, _PAGE_RW | _PAGE_DIRTY | _PAGE_PRESENT | _PAGE_ACCESSED
/linux/arch/x86/coco/sev/
H A Dcore.c1220 pflags = _PAGE_NX | _PAGE_RW; in sev_es_efi_map_ghcbs_cas()