Home
last modified time | relevance | path

Searched refs:newprot (Results 1 – 25 of 39) sorted by relevance

12

/Linux-v5.15/mm/
Dmprotect.c39 unsigned long addr, unsigned long end, pgprot_t newprot, in change_pte_range() argument
117 ptent = pte_modify(oldpte, newprot); in change_pte_range()
224 pgprot_t newprot, unsigned long cp_flags) in change_pmd_range() argument
265 newprot, cp_flags); in change_pmd_range()
279 this_pages = change_pte_range(vma, pmd, addr, next, newprot, in change_pmd_range()
296 pgprot_t newprot, unsigned long cp_flags) in change_pud_range() argument
307 pages += change_pmd_range(vma, pud, addr, next, newprot, in change_pud_range()
316 pgprot_t newprot, unsigned long cp_flags) in change_p4d_range() argument
327 pages += change_pud_range(vma, p4d, addr, next, newprot, in change_p4d_range()
335 unsigned long addr, unsigned long end, pgprot_t newprot, in change_protection_range() argument
[all …]
Duserfaultfd.c678 pgprot_t newprot; in mwriteprotect_range() local
715 newprot = vm_get_page_prot(dst_vma->vm_flags & ~(VM_WRITE)); in mwriteprotect_range()
717 newprot = vm_get_page_prot(dst_vma->vm_flags); in mwriteprotect_range()
719 change_protection(dst_vma, start, start + len, newprot, in mwriteprotect_range()
/Linux-v5.15/arch/mips/include/asm/
Dpgtable.h507 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument
511 pte.pte_low |= pgprot_val(newprot) & ~_PFNX_MASK;
512 pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK);
516 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument
520 pte.pte_low |= pgprot_val(newprot);
521 pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK);
525 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument
528 pte_val(pte) |= pgprot_val(newprot) & ~_PAGE_CHG_MASK;
693 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) argument
696 (pgprot_val(newprot) & ~_PAGE_CHG_MASK);
/Linux-v5.15/arch/arc/include/asm/
Dhugepage.h43 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
49 return __pmd((pmd_val(pmd) & (_PAGE_CHG_MASK | _PAGE_HW_SZ)) | pgprot_val(newprot)); in pmd_modify()
Dpgtable-bits-arcv2.h113 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
115 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
/Linux-v5.15/arch/s390/include/asm/
Dhugetlb.h113 static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) in huge_pte_modify() argument
115 return pte_modify(pte, newprot); in huge_pte_modify()
/Linux-v5.15/include/asm-generic/
Dhugetlb.h30 static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) in huge_pte_modify() argument
32 return pte_modify(pte, newprot); in huge_pte_modify()
/Linux-v5.15/include/linux/
Dpgtable.h940 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() argument
943 newprot = pgprot_noncached(newprot); in pgprot_modify()
945 newprot = pgprot_writecombine(newprot); in pgprot_modify()
947 newprot = pgprot_device(newprot); in pgprot_modify()
948 return newprot; in pgprot_modify()
/Linux-v5.15/arch/sparc/include/asm/
Dpgtable_32.h316 static pte_t pte_modify(pte_t pte, pgprot_t newprot) __attribute_const__;
317 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
320 pgprot_val(newprot)); in pte_modify()
/Linux-v5.15/arch/m68k/include/asm/
Dsun3_pgtable.h105 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
107 pte_val(pte) = (pte_val(pte) & SUN3_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
Dmotorola_pgtable.h116 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
118 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
Dmcf_pgtable.h161 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
163 pte_val(pte) = (pte_val(pte) & CF_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
/Linux-v5.15/arch/sh/include/asm/
Dpgtable_32.h392 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
395 pte.pte_low |= pgprot_val(newprot); in pte_modify()
398 pte.pte_high |= pgprot_val(newprot) >> 32; in pte_modify()
/Linux-v5.15/arch/riscv/include/asm/
Dpgtable.h369 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
371 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
518 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
520 return pte_pmd(pte_modify(pmd_pte(pmd), newprot)); in pmd_modify()
/Linux-v5.15/arch/nios2/include/asm/
Dpgtable.h169 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
173 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify()
/Linux-v5.15/arch/powerpc/include/asm/nohash/
Dpgtable.h169 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
171 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
/Linux-v5.15/arch/arm/include/asm/
Dpgtable-3level.h222 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
226 pmd_val(pmd) = (pmd_val(pmd) & ~mask) | (pgprot_val(newprot) & mask); in pmd_modify()
Dpgtable.h280 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
284 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify()
/Linux-v5.15/arch/csky/include/asm/
Dpgtable.h259 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
262 (pgprot_val(newprot))); in pte_modify()
/Linux-v5.15/arch/x86/include/asm/
Dpgtable.h606 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
615 val |= check_pgprot(newprot) & ~_PAGE_CHG_MASK; in pte_modify()
620 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
625 val |= check_pgprot(newprot) & ~_HPAGE_CHG_MASK; in pmd_modify()
635 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() argument
638 pgprotval_t addbits = pgprot_val(newprot) & ~_PAGE_CHG_MASK; in pgprot_modify()
/Linux-v5.15/arch/um/include/asm/
Dpgtable.h288 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
290 pte_set_val(pte, (pte_val(pte) & _PAGE_CHG_MASK), newprot); in pte_modify()
/Linux-v5.15/arch/openrisc/include/asm/
Dpgtable.h327 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
329 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
/Linux-v5.15/arch/xtensa/include/asm/
Dpgtable.h297 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
299 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
/Linux-v5.15/arch/alpha/include/asm/
Dpgtable.h220 extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
221 { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } in pte_modify()
/Linux-v5.15/arch/microblaze/include/asm/
Dpgtable.h310 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
312 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()

12