Home
last modified time | relevance | path

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

12

/linux-6.15/mm/
H A Dmprotect.c88 unsigned long end, pgprot_t newprot, unsigned long cp_flags) in change_pte_range() argument
170 ptent = pte_modify(oldpte, newprot); in change_pte_range()
355 unsigned long end, pgprot_t newprot, unsigned long cp_flags) in change_pmd_range() argument
395 addr, newprot, cp_flags); in change_pmd_range()
409 ret = change_pte_range(tlb, vma, pmd, addr, next, newprot, in change_pmd_range()
425 unsigned long end, pgprot_t newprot, unsigned long cp_flags) in change_pud_range() argument
462 addr, newprot, cp_flags); in change_pud_range()
484 unsigned long end, pgprot_t newprot, unsigned long cp_flags) in change_p4d_range() argument
539 pgprot_t newprot = vma->vm_page_prot; in change_protection() local
551 newprot = PAGE_NONE; in change_protection()
[all …]
/linux-6.15/arch/mips/include/asm/
H A Dpgtable.h514 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument
518 pte.pte_low |= pgprot_val(newprot) & ~_PFNX_MASK;
519 pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK);
523 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument
527 pte.pte_low |= pgprot_val(newprot);
528 pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK);
532 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) argument
535 pte_val(pte) |= pgprot_val(newprot) & ~_PAGE_CHG_MASK;
725 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) argument
728 (pgprot_val(newprot) & ~_PAGE_CHG_MASK);
/linux-6.15/arch/arc/include/asm/
H A Dhugepage.h49 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
55 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-6.15/include/asm-generic/
H A Dhugetlb.h40 static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) in huge_pte_modify() argument
42 return pte_modify(pte, newprot); in huge_pte_modify()
/linux-6.15/arch/sparc/include/asm/
H A Dpgtable_32.h301 static pte_t pte_modify(pte_t pte, pgprot_t newprot) __attribute_const__;
302 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
305 pgprot_val(newprot)); in pte_modify()
/linux-6.15/arch/powerpc/mm/book3s64/
H A Dpgtable.c277 pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
283 return pmd_set_protbits(__pmd(pmdv), newprot); in pmd_modify()
286 pud_t pud_modify(pud_t pud, pgprot_t newprot) in pud_modify() argument
292 return pud_set_protbits(__pud(pudv), newprot); in pud_modify()
/linux-6.15/include/linux/
H A Dpgtable.h1370 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() argument
1373 newprot = pgprot_noncached(newprot); in pgprot_modify()
1375 newprot = pgprot_writecombine(newprot); in pgprot_modify()
1377 newprot = pgprot_device(newprot); in pgprot_modify()
1378 return newprot; in pgprot_modify()
H A Dhuge_mm.h37 pmd_t *pmd, unsigned long addr, pgprot_t newprot,
418 pud_t *pudp, unsigned long addr, pgprot_t newprot,
423 pud_t *pudp, unsigned long addr, pgprot_t newprot, in change_huge_pud() argument
680 unsigned long addr, pgprot_t newprot, in change_huge_pud() argument
/linux-6.15/arch/m68k/include/asm/
H A Dsun3_pgtable.h85 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
87 pte_val(pte) = (pte_val(pte) & SUN3_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
H A Dmcf_pgtable.h105 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
107 pte_val(pte) = (pte_val(pte) & CF_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
H A Dmotorola_pgtable.h90 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
92 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
/linux-6.15/arch/loongarch/include/asm/
H A Dpgtable.h435 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
438 (pgprot_val(newprot) & ~_PAGE_CHG_MASK)); in pte_modify()
569 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
572 (pgprot_val(newprot) & ~_HPAGE_CHG_MASK); in pmd_modify()
/linux-6.15/arch/sh/include/asm/
H A Dpgtable_32.h391 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
394 pte.pte_low |= pgprot_val(newprot); in pte_modify()
397 pte.pte_high |= pgprot_val(newprot) >> 32; in pte_modify()
/linux-6.15/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-6.15/arch/arm/include/asm/
H A Dpgtable-3level.h223 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
227 pmd_val(pmd) = (pmd_val(pmd) & ~mask) | (pgprot_val(newprot) & mask); in pmd_modify()
H A Dpgtable.h269 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
273 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify()
/linux-6.15/arch/csky/include/asm/
H A Dpgtable.h257 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
260 (pgprot_val(newprot))); in pte_modify()
/linux-6.15/arch/x86/include/asm/
H A Dpgtable.h822 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
832 val |= check_pgprot(newprot) & ~_PAGE_CHG_MASK; in pte_modify()
855 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
861 val |= check_pgprot(newprot) & ~_HPAGE_CHG_MASK; in pmd_modify()
878 static inline pud_t pud_modify(pud_t pud, pgprot_t newprot) in pud_modify() argument
884 val |= check_pgprot(newprot) & ~_HPAGE_CHG_MASK; in pud_modify()
906 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() argument
909 pgprotval_t addbits = pgprot_val(newprot) & ~_PAGE_CHG_MASK; in pgprot_modify()
/linux-6.15/arch/um/include/asm/
H A Dpgtable.h277 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
279 pte_set_val(pte, (pte_val(pte) & _PAGE_CHG_MASK), newprot); in pte_modify()
/linux-6.15/arch/alpha/include/asm/
H A Dpgtable.h206 extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
207 { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } in pte_modify()
/linux-6.15/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-6.15/arch/xtensa/include/asm/
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-6.15/arch/openrisc/include/asm/
H A Dpgtable.h312 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
314 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
/linux-6.15/arch/microblaze/include/asm/
H A Dpgtable.h296 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
298 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()

12