Home
last modified time | relevance | path

Searched refs:newprot (Results 1 – 15 of 15) 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/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.h471 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
477 (pgprot_val(newprot) & ~_PAGE_CHG_MASK)); in pte_modify()
599 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
605 (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/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/tools/testing/vma/include/
H A Ddup.h782 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() argument
784 return __pgprot(pgprot_val(oldprot) | pgprot_val(newprot)); in pgprot_modify()
/linux/mm/
H A Dhuge_memory.c2735 pmd_t *pmd, unsigned long addr, pgprot_t newprot, in change_huge_pmd() argument
2805 entry = pmd_modify(oldpmd, newprot); in change_huge_pmd()
2844 pud_t *pudp, unsigned long addr, pgprot_t newprot, in change_huge_pud() argument
2873 entry = pud_modify(oldpud, newprot); in change_huge_pud()
H A Dhugetlb.c6499 pgprot_t newprot, unsigned long cp_flags) in hugetlb_change_protection() argument
6625 pte = huge_pte_modify(old_pte, newprot); in hugetlb_change_protection()