newprot 223 arch/alpha/include/asm/pgtable.h extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 224 arch/alpha/include/asm/pgtable.h { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } newprot 44 arch/arc/include/asm/hugepage.h static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) newprot 50 arch/arc/include/asm/hugepage.h return __pmd((pmd_val(pmd) & (_PAGE_CHG_MASK | _PAGE_HW_SZ)) | pgprot_val(newprot)); newprot 320 arch/arc/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 322 arch/arc/include/asm/pgtable.h return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); newprot 248 arch/arm/include/asm/pgtable-3level.h static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) newprot 252 arch/arm/include/asm/pgtable-3level.h pmd_val(pmd) = (pmd_val(pmd) & ~mask) | (pgprot_val(newprot) & mask); newprot 321 arch/arm/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 325 arch/arm/include/asm/pgtable.h pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); newprot 658 arch/arm64/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 665 arch/arm64/include/asm/pgtable.h pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); newprot 669 arch/arm64/include/asm/pgtable.h static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) newprot 671 arch/arm64/include/asm/pgtable.h return pte_pmd(pte_modify(pmd_pte(pmd), newprot)); newprot 281 arch/csky/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 284 arch/csky/include/asm/pgtable.h (pgprot_val(newprot))); newprot 262 arch/ia64/include/asm/pgtable.h #define pte_modify(_pte, newprot) \ newprot 263 arch/ia64/include/asm/pgtable.h (__pte((pte_val(_pte) & ~_PAGE_CHG_MASK) | (pgprot_val(newprot) & _PAGE_CHG_MASK))) newprot 159 arch/m68k/include/asm/mcf_pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 161 arch/m68k/include/asm/mcf_pgtable.h pte_val(pte) = (pte_val(pte) & CF_PAGE_CHG_MASK) | pgprot_val(newprot); newprot 103 arch/m68k/include/asm/motorola_pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 105 arch/m68k/include/asm/motorola_pgtable.h pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); newprot 105 arch/m68k/include/asm/sun3_pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 107 arch/m68k/include/asm/sun3_pgtable.h pte_val(pte) = (pte_val(pte) & SUN3_PAGE_CHG_MASK) | pgprot_val(newprot); newprot 383 arch/microblaze/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 385 arch/microblaze/include/asm/pgtable.h pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); newprot 448 arch/mips/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 452 arch/mips/include/asm/pgtable.h pte.pte_low |= pgprot_val(newprot) & ~_PFNX_MASK; newprot 453 arch/mips/include/asm/pgtable.h pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK); newprot 457 arch/mips/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 461 arch/mips/include/asm/pgtable.h pte.pte_low |= pgprot_val(newprot); newprot 462 arch/mips/include/asm/pgtable.h pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK); newprot 466 arch/mips/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 469 arch/mips/include/asm/pgtable.h (pgprot_val(newprot) & ~_PAGE_CHG_MASK)); newprot 611 arch/mips/include/asm/pgtable.h static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) newprot 614 arch/mips/include/asm/pgtable.h (pgprot_val(newprot) & ~_PAGE_CHG_MASK); newprot 372 arch/nds32/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 375 arch/nds32/include/asm/pgtable.h pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); newprot 179 arch/nios2/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 183 arch/nios2/include/asm/pgtable.h pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); newprot 331 arch/openrisc/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 333 arch/openrisc/include/asm/pgtable.h pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); newprot 427 arch/parisc/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 428 arch/parisc/include/asm/pgtable.h { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } newprot 513 arch/powerpc/include/asm/book3s/32/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 515 arch/powerpc/include/asm/book3s/32/pgtable.h return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); newprot 711 arch/powerpc/include/asm/book3s/64/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 715 arch/powerpc/include/asm/book3s/64/pgtable.h cpu_to_be64(pgprot_val(newprot))); newprot 1139 arch/powerpc/include/asm/book3s/64/pgtable.h extern pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot); newprot 176 arch/powerpc/include/asm/nohash/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 178 arch/powerpc/include/asm/nohash/pgtable.h return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); newprot 141 arch/powerpc/mm/book3s64/pgtable.c pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) newprot 147 arch/powerpc/mm/book3s64/pgtable.c return pmd_set_protbits(__pmd(pmdv), newprot); newprot 292 arch/riscv/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 294 arch/riscv/include/asm/pgtable.h return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); newprot 119 arch/s390/include/asm/hugetlb.h static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) newprot 121 arch/s390/include/asm/hugetlb.h return pte_modify(pte, newprot); newprot 922 arch/s390/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 925 arch/s390/include/asm/pgtable.h pte_val(pte) |= pgprot_val(newprot); newprot 1405 arch/s390/include/asm/pgtable.h static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) newprot 1411 arch/s390/include/asm/pgtable.h pmd_val(pmd) |= massage_pgprot_pmd(newprot); newprot 1419 arch/s390/include/asm/pgtable.h pmd_val(pmd) |= massage_pgprot_pmd(newprot); newprot 392 arch/sh/include/asm/pgtable_32.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 395 arch/sh/include/asm/pgtable_32.h pte.pte_low |= pgprot_val(newprot); newprot 398 arch/sh/include/asm/pgtable_32.h pte.pte_high |= pgprot_val(newprot) >> 32; newprot 292 arch/sh/include/asm/pgtable_64.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 293 arch/sh/include/asm/pgtable_64.h { set_pte(&pte, __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot))); return pte; } newprot 306 arch/sparc/include/asm/pgtable_32.h static pte_t pte_modify(pte_t pte, pgprot_t newprot) __attribute_const__; newprot 307 arch/sparc/include/asm/pgtable_32.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 310 arch/sparc/include/asm/pgtable_32.h pgprot_val(newprot)); newprot 339 arch/sparc/include/asm/pgtable_64.h static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) newprot 343 arch/sparc/include/asm/pgtable_64.h pte = pte_modify(pte, newprot); newprot 295 arch/um/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 297 arch/um/include/asm/pgtable.h pte_set_val(pte, (pte_val(pte) & _PAGE_CHG_MASK), newprot); newprot 239 arch/unicore32/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 242 arch/unicore32/include/asm/pgtable.h pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); newprot 604 arch/x86/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 613 arch/x86/include/asm/pgtable.h val |= check_pgprot(newprot) & ~_PAGE_CHG_MASK; newprot 618 arch/x86/include/asm/pgtable.h static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) newprot 623 arch/x86/include/asm/pgtable.h val |= check_pgprot(newprot) & ~_HPAGE_CHG_MASK; newprot 633 arch/x86/include/asm/pgtable.h static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) newprot 636 arch/x86/include/asm/pgtable.h pgprotval_t addbits = pgprot_val(newprot) & ~_PAGE_CHG_MASK; newprot 300 arch/xtensa/include/asm/pgtable.h static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) newprot 302 arch/xtensa/include/asm/pgtable.h return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); newprot 30 include/asm-generic/hugetlb.h static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) newprot 32 include/asm-generic/hugetlb.h return pte_modify(pte, newprot); newprot 511 include/asm-generic/pgtable.h static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) newprot 514 include/asm-generic/pgtable.h newprot = pgprot_noncached(newprot); newprot 516 include/asm-generic/pgtable.h newprot = pgprot_writecombine(newprot); newprot 518 include/asm-generic/pgtable.h newprot = pgprot_device(newprot); newprot 519 include/asm-generic/pgtable.h return newprot; newprot 48 include/linux/huge_mm.h unsigned long addr, pgprot_t newprot, newprot 140 include/linux/hugetlb.h unsigned long address, unsigned long end, pgprot_t newprot); newprot 198 include/linux/hugetlb.h unsigned long address, unsigned long end, pgprot_t newprot) newprot 1629 include/linux/mm.h unsigned long end, pgprot_t newprot, newprot 1925 mm/huge_memory.c unsigned long addr, pgprot_t newprot, int prot_numa) newprot 1995 mm/huge_memory.c entry = pmd_modify(entry, newprot); newprot 4554 mm/hugetlb.c unsigned long address, unsigned long end, pgprot_t newprot) newprot 4615 mm/hugetlb.c pte = pte_mkhuge(huge_pte_modify(old_pte, newprot)); newprot 39 mm/mprotect.c unsigned long addr, unsigned long end, pgprot_t newprot, newprot 113 mm/mprotect.c ptent = pte_modify(oldpte, newprot); newprot 191 mm/mprotect.c pgprot_t newprot, int dirty_accountable, int prot_numa) newprot 232 mm/mprotect.c newprot, prot_numa); newprot 246 mm/mprotect.c this_pages = change_pte_range(vma, pmd, addr, next, newprot, newprot 263 mm/mprotect.c pgprot_t newprot, int dirty_accountable, int prot_numa) newprot 274 mm/mprotect.c pages += change_pmd_range(vma, pud, addr, next, newprot, newprot 283 mm/mprotect.c pgprot_t newprot, int dirty_accountable, int prot_numa) newprot 294 mm/mprotect.c pages += change_pud_range(vma, p4d, addr, next, newprot, newprot 302 mm/mprotect.c unsigned long addr, unsigned long end, pgprot_t newprot, newprot 319 mm/mprotect.c pages += change_p4d_range(vma, pgd, addr, next, newprot, newprot 332 mm/mprotect.c unsigned long end, pgprot_t newprot, newprot 338 mm/mprotect.c pages = hugetlb_change_protection(vma, start, end, newprot); newprot 340 mm/mprotect.c pages = change_protection_range(vma, start, end, newprot, dirty_accountable, prot_numa);