/kernel/linux/linux-5.10/mm/ |
D | mprotect.c | 41 unsigned long addr, unsigned long end, pgprot_t newprot, in change_pte_range() argument 119 ptent = pte_modify(oldpte, newprot); in change_pte_range() 223 pgprot_t newprot, unsigned long cp_flags) in change_pmd_range() argument 264 newprot, cp_flags); in change_pmd_range() 278 this_pages = change_pte_range(vma, pmd, addr, next, newprot, in change_pmd_range() 295 pgprot_t newprot, unsigned long cp_flags) in change_pud_range() argument 306 pages += change_pmd_range(vma, pud, addr, next, newprot, in change_pud_range() 315 pgprot_t newprot, unsigned long cp_flags) in change_p4d_range() argument 326 pages += change_pud_range(vma, p4d, addr, next, newprot, in change_p4d_range() 334 unsigned long addr, unsigned long end, pgprot_t newprot, in change_protection_range() argument [all …]
|
D | userfaultfd.c | 646 pgprot_t newprot; in mwriteprotect_range() local 683 newprot = vm_get_page_prot(dst_vma->vm_flags & ~(VM_WRITE)); in mwriteprotect_range() 685 newprot = vm_get_page_prot(dst_vma->vm_flags); in mwriteprotect_range() 687 change_protection(dst_vma, start, start + len, newprot, in mwriteprotect_range()
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
D | pgtable.h | 513 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument 517 pte.pte_low |= pgprot_val(newprot) & ~_PFNX_MASK; 518 pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK); 522 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument 526 pte.pte_low |= pgprot_val(newprot); 527 pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK); 531 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument 534 pte_val(pte) |= pgprot_val(newprot) & ~_PAGE_CHG_MASK; 699 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) argument 702 (pgprot_val(newprot) & ~_PAGE_CHG_MASK);
|
/kernel/linux/linux-5.10/arch/arc/include/asm/ |
D | hugepage.h | 43 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()
|
D | pgtable.h | 301 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 303 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
|
/kernel/linux/linux-5.10/include/asm-generic/ |
D | hugetlb.h | 30 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()
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
D | hugetlb.h | 115 static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) in huge_pte_modify() argument 117 return pte_modify(pte, newprot); in huge_pte_modify()
|
/kernel/linux/linux-5.10/include/linux/ |
D | pgtable.h | 868 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() argument 871 newprot = pgprot_noncached(newprot); in pgprot_modify() 873 newprot = pgprot_writecombine(newprot); in pgprot_modify() 875 newprot = pgprot_device(newprot); in pgprot_modify() 876 return newprot; in pgprot_modify()
|
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
D | pgtable_32.h | 317 static pte_t pte_modify(pte_t pte, pgprot_t newprot) __attribute_const__; 318 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 321 pgprot_val(newprot)); in pte_modify()
|
/kernel/linux/linux-5.10/arch/m68k/include/asm/ |
D | sun3_pgtable.h | 105 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()
|
D | motorola_pgtable.h | 114 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 116 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
|
D | mcf_pgtable.h | 159 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 161 pte_val(pte) = (pte_val(pte) & CF_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
D | pgtable_32.h | 392 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()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/ |
D | pgtable.h | 169 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()
|
/kernel/linux/linux-5.10/arch/nios2/include/asm/ |
D | pgtable.h | 171 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 175 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify()
|
/kernel/linux/linux-5.10/arch/arm/include/asm/ |
D | pgtable-3level.h | 224 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument 228 pmd_val(pmd) = (pmd_val(pmd) & ~mask) | (pgprot_val(newprot) & mask); in pmd_modify()
|
D | pgtable.h | 280 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()
|
/kernel/linux/linux-5.10/arch/csky/include/asm/ |
D | pgtable.h | 260 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 263 (pgprot_val(newprot))); in pte_modify()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | pgtable.h | 635 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 644 val |= check_pgprot(newprot) & ~_PAGE_CHG_MASK; in pte_modify() 649 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument 654 val |= check_pgprot(newprot) & ~_HPAGE_CHG_MASK; in pmd_modify() 664 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() argument 667 pgprotval_t addbits = pgprot_val(newprot) & ~_PAGE_CHG_MASK; in pgprot_modify()
|
/kernel/linux/linux-5.10/arch/um/include/asm/ |
D | pgtable.h | 288 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()
|
/kernel/linux/linux-5.10/arch/alpha/include/asm/ |
D | pgtable.h | 223 extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 224 { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } in pte_modify()
|
/kernel/linux/linux-5.10/arch/openrisc/include/asm/ |
D | pgtable.h | 328 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 330 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
|
/kernel/linux/linux-5.10/arch/xtensa/include/asm/ |
D | pgtable.h | 296 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 298 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
|
/kernel/linux/linux-5.10/arch/riscv/include/asm/ |
D | pgtable.h | 293 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 295 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
|
/kernel/linux/linux-5.10/arch/microblaze/include/asm/ |
D | pgtable.h | 353 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 355 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
|