Home
last modified time | relevance | path

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

12

/linux/mm/
H A Dmprotect.c216 unsigned long end, pgprot_t newprot, unsigned long cp_flags) in change_pte_range() argument
272 ptent = pte_modify(oldpte, newprot); in change_pte_range()
453 unsigned long end, pgprot_t newprot, unsigned long cp_flags) in change_pmd_range() argument
493 addr, newprot, cp_flags); in change_pmd_range()
507 ret = change_pte_range(tlb, vma, pmd, addr, next, newprot, in change_pmd_range()
523 unsigned long end, pgprot_t newprot, unsigned long cp_flags) in change_pud_range() argument
560 addr, newprot, cp_flags); in change_pud_range()
570 pages += change_pmd_range(tlb, vma, pudp, addr, next, newprot, in change_pud_range()
582 unsigned long end, pgprot_t newprot, unsigned long cp_flags) in change_p4d_range() argument
596 pages += change_pud_range(tlb, vma, p4d, addr, next, newprot, in change_p4d_range()
[all …]
/linux/arch/mips/include/asm/
H A Dpgtable.h508 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument
512 pte.pte_low |= pgprot_val(newprot) & ~_PFNX_MASK;
513 pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK);
517 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument
521 pte.pte_low |= pgprot_val(newprot);
522 pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK);
526 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument
529 pte_val(pte) |= pgprot_val(newprot) & ~_PAGE_CHG_MASK;
715 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) argument
718 (pgprot_val(newprot) & ~_PAGE_CHG_MASK);
/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/powerpc/mm/book3s64/
H A Dpgtable.c270 pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
276 return pmd_set_protbits(__pmd(pmdv), newprot); in pmd_modify()
279 pud_t pud_modify(pud_t pud, pgprot_t newprot) in pud_modify() argument
285 return pud_set_protbits(__pud(pudv), newprot); in pud_modify()
/linux/arch/sparc/include/asm/
H A Dpgtable_32.h296 static pte_t pte_modify(pte_t pte, pgprot_t newprot) __attribute_const__;
297 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
300 pgprot_val(newprot)); in pte_modify()
/linux/include/linux/
H A Dpgtable.h1524 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() argument
1527 newprot = pgprot_noncached(newprot); in pgprot_modify()
1529 newprot = pgprot_writecombine(newprot); in pgprot_modify()
1531 newprot = pgprot_device(newprot); in pgprot_modify()
1532 return newprot; in pgprot_modify()
H A Dhuge_mm.h37 pmd_t *pmd, unsigned long addr, pgprot_t newprot,
467 pud_t *pudp, unsigned long addr, pgprot_t newprot,
472 pud_t *pudp, unsigned long addr, pgprot_t newprot, in change_huge_pud() argument
757 unsigned long addr, pgprot_t newprot, in change_huge_pud() argument
/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.h460 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
466 (pgprot_val(newprot) & ~_PAGE_CHG_MASK)); in pte_modify()
586 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
592 (pgprot_val(newprot) & ~_HPAGE_CHG_MASK)); in pmd_modify()
/linux/arch/x86/include/asm/
H A Dpgtable.h778 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
788 val |= check_pgprot(newprot) & ~_PAGE_CHG_MASK; in pte_modify()
811 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
817 val |= check_pgprot(newprot) & ~_HPAGE_CHG_MASK; in pmd_modify()
834 static inline pud_t pud_modify(pud_t pud, pgprot_t newprot) in pud_modify() argument
840 val |= check_pgprot(newprot) & ~_HPAGE_CHG_MASK; in pud_modify()
862 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() argument
865 pgprotval_t addbits = pgprot_val(newprot) & ~_PAGE_CHG_MASK; in pgprot_modify()
/linux/arch/riscv/include/asm/
H A Dpgtable.h552 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
554 unsigned long newprot_val = pgprot_val(newprot); in pte_modify()
790 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
792 return pte_pmd(pte_modify(pmd_pte(pmd), newprot)); in pmd_modify()
1129 static inline pud_t pud_modify(pud_t pud, pgprot_t newprot) in pud_modify() argument
1131 return pte_pud(pte_modify(pud_pte(pud), newprot)); in pud_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()
H A Dpgtable.h268 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
272 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify()
/linux/arch/nios2/include/asm/
H A Dpgtable.h153 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
157 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify()
/linux/arch/csky/include/asm/
H A Dpgtable.h252 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
255 (pgprot_val(newprot))); in pte_modify()
/linux/arch/alpha/include/asm/
H A Dpgtable.h176 extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
177 { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } in pte_modify()
/linux/arch/um/include/asm/
H A Dpgtable.h279 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
281 pte_set_val(pte, (pte_val(pte) & _PAGE_CHG_MASK), newprot); in pte_modify()
/linux/arch/powerpc/include/asm/nohash/
H A Dpgtable.h284 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
286 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
/linux/arch/openrisc/include/asm/
H A Dpgtable.h293 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
295 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
/linux/arch/microblaze/include/asm/
H A Dpgtable.h287 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
289 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()

12