| /linux/arch/arc/include/asm/ |
| H A D | hugepage.h | 47 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument 53 return __pmd((pmd_val(pmd) & (_PAGE_CHG_MASK | _PAGE_HW_SZ)) | pgprot_val(newprot)); in pmd_modify()
|
| H A D | pgtable-bits-arcv2.h | 98 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 100 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
|
| /linux/include/asm-generic/ |
| H A D | hugetlb.h | 35 static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) in huge_pte_modify() argument 37 return pte_modify(pte, newprot); in huge_pte_modify()
|
| /linux/arch/m68k/include/asm/ |
| H A D | sun3_pgtable.h | 79 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 81 pte_val(pte) = (pte_val(pte) & SUN3_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
|
| H A D | motorola_pgtable.h | 84 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 86 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
|
| H A D | mcf_pgtable.h | 99 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 101 pte_val(pte) = (pte_val(pte) & CF_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
|
| /linux/arch/sh/include/asm/ |
| H A D | pgtable_32.h | 383 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 386 pte.pte_low |= pgprot_val(newprot); in pte_modify() 389 pte.pte_high |= pgprot_val(newprot) >> 32; in pte_modify()
|
| /linux/arch/loongarch/include/asm/ |
| H A D | pgtable.h | 462 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 468 (pgprot_val(newprot) & ~_PAGE_CHG_MASK)); in pte_modify() 588 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument 594 (pgprot_val(newprot) & ~_HPAGE_CHG_MASK)); in pmd_modify()
|
| /linux/arch/x86/include/asm/ |
| H A D | pgtable.h | 771 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 781 val |= check_pgprot(newprot) & ~_PAGE_CHG_MASK; in pte_modify() 804 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument 810 val |= check_pgprot(newprot) & ~_HPAGE_CHG_MASK; in pmd_modify() 827 static inline pud_t pud_modify(pud_t pud, pgprot_t newprot) in pud_modify() argument 833 val |= check_pgprot(newprot) & ~_HPAGE_CHG_MASK; in pud_modify() 855 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() argument 858 pgprotval_t addbits = pgprot_val(newprot) & ~_PAGE_CHG_MASK; in pgprot_modify()
|
| /linux/arch/arm/include/asm/ |
| H A 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()
|
| /linux/arch/riscv/include/asm/ |
| H A D | pgtable.h | 543 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 545 unsigned long newprot_val = pgprot_val(newprot); in pte_modify() 795 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument 797 return pte_pmd(pte_modify(pmd_pte(pmd), newprot)); in pmd_modify() 1148 static inline pud_t pud_modify(pud_t pud, pgprot_t newprot) in pud_modify() argument 1150 return pte_pud(pte_modify(pud_pte(pud), newprot)); in pud_modify()
|
| /linux/arch/powerpc/include/asm/nohash/ |
| H A D | pgtable.h | 295 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 297 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
|
| /linux/arch/powerpc/include/asm/book3s/32/ |
| H A D | pgtable.h | 517 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 519 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
|
| /linux/arch/parisc/include/asm/ |
| H A D | pgtable.h | 346 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 347 { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } in pte_modify()
|
| /linux/arch/powerpc/include/asm/book3s/64/ |
| H A D | pgtable.h | 626 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 630 cpu_to_be64(pgprot_val(newprot))); in pte_modify() 1107 extern pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot); 1108 extern pud_t pud_modify(pud_t pud, pgprot_t newprot);
|
| /linux/arch/s390/include/asm/ |
| H A D | pgtable.h | 1018 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 1021 pte = set_pte_bit(pte, newprot); in pte_modify() 1573 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument 1583 pmd = set_pmd_bit(pmd, __pgprot(massage_pgprot_pmd(newprot))); in pmd_modify()
|
| /linux/arch/arm64/include/asm/ |
| H A D | pgtable.h | 1225 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument 1239 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify() 1249 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument 1251 return pte_pmd(pte_modify(pmd_pte(pmd), newprot)); in pmd_modify()
|
| /linux/tools/testing/vma/include/ |
| H A D | dup.h | 787 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() argument 789 return __pgprot(pgprot_val(oldprot) | pgprot_val(newprot)); in pgprot_modify()
|
| /linux/mm/ |
| H A D | huge_memory.c | 2661 pmd_t *pmd, unsigned long addr, pgprot_t newprot, in change_huge_pmd() argument 2727 entry = pmd_modify(oldpmd, newprot); in change_huge_pmd() 2762 pud_t *pudp, unsigned long addr, pgprot_t newprot, in change_huge_pud() argument 2791 entry = pud_modify(oldpud, newprot); in change_huge_pud()
|
| H A D | hugetlb.c | 6400 pgprot_t newprot, unsigned long cp_flags) in hugetlb_change_protection() argument 6513 pte = huge_pte_modify(old_pte, newprot); in hugetlb_change_protection()
|