Home
last modified time | relevance | path

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

/linux/arch/arc/include/asm/
H A Dhugepage.h47 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 Dpgtable-bits-arcv2.h98 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 Dhugetlb.h35 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 Dsun3_pgtable.h79 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 Dmotorola_pgtable.h84 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 Dmcf_pgtable.h99 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 Dpgtable_32.h383 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 Dpgtable.h462 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 Dpgtable.h771 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 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()
/linux/arch/riscv/include/asm/
H A Dpgtable.h543 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 Dpgtable.h295 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 Dpgtable.h517 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 Dpgtable.h346 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 Dpgtable.h626 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 Dpgtable.h1018 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 Dpgtable.h1225 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 Ddup.h787 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 Dhuge_memory.c2661 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 Dhugetlb.c6400 pgprot_t newprot, unsigned long cp_flags) in hugetlb_change_protection() argument
6513 pte = huge_pte_modify(old_pte, newprot); in hugetlb_change_protection()