Home
last modified time | relevance | path

Searched refs:_PAGE_WRITE (Results 1 – 25 of 50) sorted by relevance

12

/linux-6.6.21/arch/arc/include/asm/
Dpgtable-bits-arcv2.h21 #define _PAGE_WRITE (1 << 2) /* User Write (H) */ macro
48 #define PAGE_U_W_R __pgprot(___DEF | _PAGE_READ | _PAGE_WRITE)
51 | _PAGE_READ | _PAGE_WRITE | _PAGE_EXECUTE)
53 | _PAGE_READ | _PAGE_WRITE | _PAGE_EXECUTE)
80 #define pte_write(pte) (pte_val(pte) & _PAGE_WRITE)
89 PTE_BIT_FUNC(wrprotect, &= ~(_PAGE_WRITE));
90 PTE_BIT_FUNC(mkwrite_novma, |= (_PAGE_WRITE));
/linux-6.6.21/arch/csky/include/asm/
Dpgtable.h58 #define PAGE_WRITE __pgprot(_PAGE_BASE | _PAGE_READ | _PAGE_WRITE | \
63 _PAGE_WRITE | _PAGE_DIRTY | _PAGE_MODIFIED | \
68 _PAGE_WRITE | _PAGE_DIRTY | _PAGE_MODIFIED | \
73 (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
148 return (pte).pte_low & _PAGE_WRITE; in pte_write()
163 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); in pte_wrprotect()
181 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite_novma()
190 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty()
/linux-6.6.21/arch/nios2/include/asm/
Dpgtable.h36 ((w) ? _PAGE_WRITE : 0))
48 _PAGE_WRITE | _PAGE_EXEC | _PAGE_GLOBAL)
51 _PAGE_WRITE | _PAGE_ACCESSED)
85 { return pte_val(pte) & _PAGE_WRITE; } in pte_write()
116 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect()
134 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite_novma()
152 const unsigned long mask = _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC; in pte_modify()
Dpgtable-bits.h22 #define _PAGE_WRITE (1<<22) macro
/linux-6.6.21/arch/parisc/include/asm/
Dpgtable.h191 #define _PAGE_WRITE (1 << xlate_pabit(_PAGE_WRITE_BIT)) macro
192 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE)
205 #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | _PAGE_DIRTY | _PAGE_ACCESSED)
209 #define _PAGE_KERNEL_RWX (_PAGE_KERNEL_EXEC | _PAGE_WRITE)
210 #define _PAGE_KERNEL (_PAGE_KERNEL_RO | _PAGE_WRITE)
232 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE)
237 #define PAGE_WRITEONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_WRITE)
240 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)
317 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write()
322 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; } in pte_wrprotect()
[all …]
/linux-6.6.21/arch/hexagon/include/asm/
Dpgtable.h34 #define _PAGE_WRITE __HVM_PTE_W macro
118 _PAGE_EXECUTE | _PAGE_WRITE | _dflt_cache_att)
120 _PAGE_WRITE | _PAGE_EXECUTE | _dflt_cache_att)
298 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect()
305 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite_novma()
325 return pte_val(pte) & _PAGE_WRITE; in pte_write()
/linux-6.6.21/arch/mips/include/asm/
Dpgtable.h291 static inline int pte_write(pte_t pte) { return pte.pte_low & _PAGE_WRITE; }
297 pte.pte_low &= ~_PAGE_WRITE;
324 pte.pte_low |= _PAGE_WRITE;
336 if (pte.pte_low & _PAGE_WRITE) {
355 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; }
361 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE);
379 pte_val(pte) |= _PAGE_WRITE;
388 if (pte_val(pte) & _PAGE_WRITE)
415 return !!(pmd_val(pmd) & _PAGE_WRITE);
645 pmd_val(pmd) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE);
[all …]
Dpgtable-bits.h155 #define _PAGE_WRITE (1 << _PAGE_WRITE_SHIFT) macro
280 #define __WRITEABLE (_PAGE_SILENT_WRITE | _PAGE_WRITE | _PAGE_MODIFIED)
/linux-6.6.21/arch/riscv/include/asm/
Dpgtable-bits.h13 #define _PAGE_WRITE (1 << 2) /* Writable */ macro
39 #define _PAGE_LEAF (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)
Dpgtable.h182 #define PAGE_WRITE __pgprot(_PAGE_BASE | _PAGE_READ | _PAGE_WRITE)
186 _PAGE_EXEC | _PAGE_WRITE)
194 | _PAGE_WRITE \
201 #define PAGE_KERNEL_READ __pgprot(_PAGE_KERNEL & ~_PAGE_WRITE)
203 #define PAGE_KERNEL_READ_EXEC __pgprot((_PAGE_KERNEL & ~_PAGE_WRITE) \
362 return pte_val(pte) & _PAGE_WRITE; in pte_write()
399 return __pte(pte_val(pte) & ~(_PAGE_WRITE)); in pte_wrprotect()
406 return __pte(pte_val(pte) | _PAGE_WRITE); in pte_mkwrite_novma()
589 atomic_long_and(~(unsigned long)_PAGE_WRITE, (atomic_long_t *)ptep); in ptep_set_wrprotect()
Dpgtable-32.h33 _PAGE_WRITE | _PAGE_EXEC | \
/linux-6.6.21/arch/hexagon/mm/
Dinit.c262 _PAGE_WRITE | CACHEDEF),
264 _PAGE_READ | _PAGE_WRITE |
272 _PAGE_EXECUTE | _PAGE_WRITE |
276 _PAGE_WRITE | CACHEDEF)
/linux-6.6.21/arch/mips/mm/
Dcache.c195 protection_map[10] = PM(_PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_WRITE | in setup_protection_map()
197 protection_map[11] = PM(_PAGE_PRESENT | _PAGE_NO_EXEC | _PAGE_WRITE); in setup_protection_map()
200 protection_map[14] = PM(_PAGE_PRESENT | _PAGE_WRITE); in setup_protection_map()
201 protection_map[15] = PM(_PAGE_PRESENT | _PAGE_WRITE); in setup_protection_map()
/linux-6.6.21/arch/csky/abiv2/inc/abi/
Dpgtable-bits.h9 #define _PAGE_WRITE (1<<9) macro
29 #define _PAGE_PROT_NONE _PAGE_WRITE
/linux-6.6.21/arch/loongarch/mm/
Dcache.c190 _PAGE_NO_EXEC | _PAGE_WRITE),
193 _PAGE_NO_EXEC | _PAGE_WRITE),
200 _PAGE_WRITE),
203 _PAGE_WRITE)
Dtlbex.S245 andi ra, t0, _PAGE_PRESENT | _PAGE_WRITE
246 xori ra, ra, _PAGE_PRESENT | _PAGE_WRITE
280 andi t0, ra, _PAGE_PRESENT | _PAGE_WRITE
281 xori t0, t0, _PAGE_PRESENT | _PAGE_WRITE
401 andi ra, t0, _PAGE_WRITE
435 andi t0, ra, _PAGE_WRITE
/linux-6.6.21/arch/loongarch/include/asm/
Dpgtable-bits.h33 #define _PAGE_WRITE (_ULCAST_(1) << _PAGE_WRITE_SHIFT) macro
75 #define __WRITEABLE (_PAGE_DIRTY | _PAGE_WRITE)
82 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_WRITE | \
Dpgtable.h373 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write()
398 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty()
405 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite_novma()
413 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); in pte_wrprotect()
509 return !!(pmd_val(pmd) & _PAGE_WRITE); in pmd_write()
514 pmd_val(pmd) |= _PAGE_WRITE; in pmd_mkwrite_novma()
522 pmd_val(pmd) &= ~(_PAGE_WRITE | _PAGE_DIRTY); in pmd_wrprotect()
540 if (pmd_val(pmd) & _PAGE_WRITE) in pmd_mkdirty()
/linux-6.6.21/arch/powerpc/mm/ptdump/
Dbook3s64.c24 .mask = _PAGE_WRITE,
25 .val = _PAGE_WRITE,
/linux-6.6.21/arch/riscv/mm/
Dptdump.c169 .mask = _PAGE_WRITE,
170 .val = _PAGE_WRITE,
254 if ((st->current_prot & (_PAGE_WRITE | _PAGE_EXEC)) != in note_prot_wx()
255 (_PAGE_WRITE | _PAGE_EXEC)) in note_prot_wx()
Dpageattr.c351 return __set_memory(addr, numpages, __pgprot(_PAGE_READ | _PAGE_WRITE), in set_memory_rw_nx()
358 __pgprot(_PAGE_WRITE)); in set_memory_ro()
363 return __set_memory(addr, numpages, __pgprot(_PAGE_READ | _PAGE_WRITE), in set_memory_rw()
/linux-6.6.21/arch/openrisc/include/asm/
Dpgtable.h144 #define _PAGE_WRITE (_PAGE_UWE | _PAGE_SWE) macro
218 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write()
225 pte_val(pte) &= ~(_PAGE_WRITE); in pte_wrprotect()
255 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite_novma()
/linux-6.6.21/arch/powerpc/include/asm/book3s/64/
Dpgtable.h18 #define _PAGE_WRITE 0x00002 /* write access allowed */ macro
20 #define _PAGE_RW (_PAGE_READ | _PAGE_WRITE)
21 #define _PAGE_RWX (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)
407 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_WRITE)); in pte_write()
420 pte_update(mm, addr, ptep, _PAGE_WRITE, 0, 0); in ptep_set_wrprotect()
428 pte_update(mm, addr, ptep, _PAGE_WRITE, 0, 1); in huge_ptep_set_wrprotect()
576 return __pte_raw(pte_raw(pte) & cpu_to_be64(~_PAGE_WRITE)); in pte_wrprotect()
1234 pmd_hugepage_update(mm, addr, pmdp, _PAGE_WRITE, 0); in pmdp_set_wrprotect()
1242 pud_hugepage_update(mm, addr, pudp, _PAGE_WRITE, 0); in pudp_set_wrprotect()
1476 if ((!(old_val & _PAGE_WRITE)) && (new_val & _PAGE_WRITE)) in is_pte_rw_upgrade()
/linux-6.6.21/arch/s390/include/asm/
Dpgtable.h171 #define _PAGE_WRITE 0x020 /* SW pte write bit */ macro
412 #define PAGE_RW __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
414 #define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
417 #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
419 #define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
423 #define PAGE_KERNEL_EXEC __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
880 return (pte_val(pte) & _PAGE_WRITE) != 0; in pte_write()
993 if ((pte_val(pte) & _PAGE_DIRTY) && (pte_val(pte) & _PAGE_WRITE)) in pte_modify()
1000 pte = clear_pte_bit(pte, __pgprot(_PAGE_WRITE)); in pte_wrprotect()
1006 pte = set_pte_bit(pte, __pgprot(_PAGE_WRITE)); in pte_mkwrite_novma()
[all …]
/linux-6.6.21/arch/csky/abiv1/inc/abi/
Dpgtable-bits.h9 #define _PAGE_WRITE (1<<2) macro

12