/linux-6.1.9/mm/ |
D | mprotect.c | 77 unsigned long end, pgprot_t newprot, unsigned long cp_flags) in change_pte_range() argument 171 ptent = pte_modify(oldpte, newprot); in change_pte_range() 351 unsigned long end, pgprot_t newprot, unsigned long cp_flags) in change_pmd_range() argument 404 addr, newprot, cp_flags); in change_pmd_range() 419 newprot, cp_flags); in change_pmd_range() 435 unsigned long end, pgprot_t newprot, unsigned long cp_flags) in change_pud_range() argument 447 pages += change_pmd_range(tlb, vma, pud, addr, next, newprot, in change_pud_range() 456 unsigned long end, pgprot_t newprot, unsigned long cp_flags) in change_p4d_range() argument 468 pages += change_pud_range(tlb, vma, p4d, addr, next, newprot, in change_p4d_range() 477 unsigned long end, pgprot_t newprot, unsigned long cp_flags) in change_protection_range() argument [all …]
|
D | userfaultfd.c | 729 pgprot_t newprot; in uffd_wp_range() local 732 newprot = vm_get_page_prot(dst_vma->vm_flags & ~(VM_WRITE)); in uffd_wp_range() 734 newprot = vm_get_page_prot(dst_vma->vm_flags); in uffd_wp_range() 737 change_protection(&tlb, dst_vma, start, start + len, newprot, in uffd_wp_range()
|
/linux-6.1.9/arch/mips/include/asm/ |
D | pgtable.h | 503 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument 507 pte.pte_low |= pgprot_val(newprot) & ~_PFNX_MASK; 508 pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK); 512 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument 516 pte.pte_low |= pgprot_val(newprot); 517 pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK); 521 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument 524 pte_val(pte) |= pgprot_val(newprot) & ~_PAGE_CHG_MASK; 671 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) argument 674 (pgprot_val(newprot) & ~_PAGE_CHG_MASK);
|
/linux-6.1.9/arch/arc/include/asm/ |
D | hugepage.h | 42 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument 48 return __pmd((pmd_val(pmd) & (_PAGE_CHG_MASK | _PAGE_HW_SZ)) | pgprot_val(newprot)); in pmd_modify()
|
D | pgtable-bits-arcv2.h | 95 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 97 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
|
/linux-6.1.9/arch/s390/include/asm/ |
D | hugetlb.h | 120 static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) in huge_pte_modify() argument 122 return pte_modify(pte, newprot); in huge_pte_modify()
|
/linux-6.1.9/include/asm-generic/ |
D | hugetlb.h | 33 static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) in huge_pte_modify() argument 35 return pte_modify(pte, newprot); in huge_pte_modify()
|
/linux-6.1.9/include/linux/ |
D | pgtable.h | 1005 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() argument 1008 newprot = pgprot_noncached(newprot); in pgprot_modify() 1010 newprot = pgprot_writecombine(newprot); in pgprot_modify() 1012 newprot = pgprot_device(newprot); in pgprot_modify() 1013 return newprot; in pgprot_modify()
|
/linux-6.1.9/arch/m68k/include/asm/ |
D | sun3_pgtable.h | 82 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 84 pte_val(pte) = (pte_val(pte) & SUN3_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
|
D | motorola_pgtable.h | 87 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 89 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
|
D | mcf_pgtable.h | 102 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 104 pte_val(pte) = (pte_val(pte) & CF_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
|
/linux-6.1.9/arch/sparc/include/asm/ |
D | pgtable_32.h | 302 static pte_t pte_modify(pte_t pte, pgprot_t newprot) __attribute_const__; 303 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 306 pgprot_val(newprot)); in pte_modify()
|
/linux-6.1.9/arch/loongarch/include/asm/ |
D | pgtable.h | 404 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 407 (pgprot_val(newprot) & ~_PAGE_CHG_MASK)); in pte_modify() 519 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument 522 (pgprot_val(newprot) & ~_HPAGE_CHG_MASK); in pmd_modify()
|
/linux-6.1.9/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()
|
/linux-6.1.9/arch/nios2/include/asm/ |
D | pgtable.h | 150 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 154 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify()
|
/linux-6.1.9/arch/powerpc/include/asm/nohash/ |
D | pgtable.h | 149 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 151 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
|
/linux-6.1.9/arch/arm/include/asm/ |
D | pgtable-3level.h | 222 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()
|
D | pgtable.h | 265 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 269 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify()
|
/linux-6.1.9/arch/csky/include/asm/ |
D | pgtable.h | 240 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 243 (pgprot_val(newprot))); in pte_modify()
|
/linux-6.1.9/arch/riscv/include/asm/ |
D | pgtable.h | 394 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 396 unsigned long newprot_val = pgprot_val(newprot); in pte_modify() 587 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument 589 return pte_pmd(pte_modify(pmd_pte(pmd), newprot)); in pmd_modify()
|
/linux-6.1.9/arch/um/include/asm/ |
D | pgtable.h | 272 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 274 pte_set_val(pte, (pte_val(pte) & _PAGE_CHG_MASK), newprot); in pte_modify()
|
/linux-6.1.9/arch/x86/include/asm/ |
D | pgtable.h | 610 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 619 val |= check_pgprot(newprot) & ~_PAGE_CHG_MASK; in pte_modify() 624 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument 629 val |= check_pgprot(newprot) & ~_HPAGE_CHG_MASK; in pmd_modify() 639 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() argument 642 pgprotval_t addbits = pgprot_val(newprot) & ~_PAGE_CHG_MASK; in pgprot_modify()
|
/linux-6.1.9/arch/openrisc/include/asm/ |
D | pgtable.h | 309 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 311 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
|
/linux-6.1.9/arch/alpha/include/asm/ |
D | pgtable.h | 203 extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 204 { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } in pte_modify()
|
/linux-6.1.9/arch/xtensa/include/asm/ |
D | pgtable.h | 279 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 281 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
|