Home
last modified time | relevance | path

Searched refs:pgprot_val (Results 1 – 25 of 152) sorted by relevance

1234567

/linux-6.1.9/arch/x86/power/
Dhibernate_64.c37 pgprot_val(pmd_text_prot) &= __default_kernel_pte_mask; in set_up_temporary_text_mapping()
38 pgprot_val(pgtable_prot) &= __default_kernel_pte_mask; in set_up_temporary_text_mapping()
69 __pmd((jump_address_phys & PMD_MASK) | pgprot_val(pmd_text_prot))); in set_up_temporary_text_mapping()
71 __pud(__pa(pmd) | pgprot_val(pgtable_prot))); in set_up_temporary_text_mapping()
73 p4d_t new_p4d = __p4d(__pa(pud) | pgprot_val(pgtable_prot)); in set_up_temporary_text_mapping()
74 pgd_t new_pgd = __pgd(__pa(p4d) | pgprot_val(pgtable_prot)); in set_up_temporary_text_mapping()
80 pgd_t new_pgd = __pgd(__pa(pud) | pgprot_val(pgtable_prot)); in set_up_temporary_text_mapping()
/linux-6.1.9/arch/m68k/include/asm/
Dfb.h15 pgprot_val(vma->vm_page_prot) |= SUN3_PAGE_NOCACHE; in fb_pgprotect()
22 pgprot_val(vma->vm_page_prot) |= _PAGE_NOCACHE030; in fb_pgprotect()
24 pgprot_val(vma->vm_page_prot) &= _CACHEMASK040; in fb_pgprotect()
26 pgprot_val(vma->vm_page_prot) |= _PAGE_NOCACHE_S; in fb_pgprotect()
Dpgtable_mm.h165 # define pgprot_noncached(prot) (__pgprot(pgprot_val(prot) | CF_PAGE_NOCACHE))
174 ? (__pgprot(pgprot_val(prot) | __SUN3_PAGE_NOCACHE)) \
176 ? (__pgprot(pgprot_val(prot) | _PAGE_NOCACHE030)) \
178 ? (__pgprot((pgprot_val(prot) & _CACHEMASK040) | _PAGE_NOCACHE_S)) \
/linux-6.1.9/arch/x86/mm/pat/
Dset_memory.c510 return (pgprot_val(prot) & ~val) != pgprot_val(prot); in conflicts()
527 lvltxt[warnlvl], txt, start, end, pfn, (unsigned long long)pgprot_val(prot), in check_conflict()
548 if (!(pgprot_val(prot) & _PAGE_PRESENT)) in static_protections()
579 return __pgprot(pgprot_val(prot) & ~forbidden); in static_protections()
606 if (!((pgprot_val(old) ^ pgprot_val(new)) & (_PAGE_RW | _PAGE_NX))) in verify_rwx()
609 if ((pgprot_val(new) & (_PAGE_RW | _PAGE_NX)) != _PAGE_RW) in verify_rwx()
614 (unsigned long long)pgprot_val(old), in verify_rwx()
615 (unsigned long long)pgprot_val(new), in verify_rwx()
803 if (!(pgprot_val(prot) & _PAGE_PRESENT)) in pgprot_clear_protnone_bits()
804 pgprot_val(prot) &= ~_PAGE_GLOBAL; in pgprot_clear_protnone_bits()
[all …]
/linux-6.1.9/arch/arm64/kernel/
Defi.c50 return code_is_misaligned ? pgprot_val(PAGE_KERNEL_EXEC) in create_mapping_protection()
51 : pgprot_val(PAGE_KERNEL); in create_mapping_protection()
57 return pgprot_val(PAGE_KERNEL_RO); in create_mapping_protection()
61 return pgprot_val(PAGE_KERNEL_ROX); in create_mapping_protection()
67 return pgprot_val(PAGE_KERNEL); in create_mapping_protection()
70 return pgprot_val(PAGE_KERNEL_EXEC); in create_mapping_protection()
/linux-6.1.9/arch/powerpc/include/asm/nohash/
Dpgtable.h103 pgprot_val(pgprot)); } in pfn_pte()
151 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
213 #define pgprot_noncached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
216 #define pgprot_noncached_wc(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
219 #define pgprot_cached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
223 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
230 (__pgprot(pgprot_val(prot) & ~_PAGE_CACHE_CTL))
/linux-6.1.9/arch/mips/include/asm/
Dpgtable-32.h163 (pgprot_val(prot) & ~_PFNX_MASK); in pfn_pte()
165 (pgprot_val(prot) & ~_PFN_MASK); in pfn_pte()
178 pte.pte_high = (pfn << 6) | (pgprot_val(prot) & 0x3f); in pfn_pte()
179 pte.pte_low = pgprot_val(prot); in pfn_pte()
188 #define pfn_pte(pfn, prot) __pte(((unsigned long long)(pfn) << _PFN_SHIFT) | pgprot_val(prot))
189 #define pfn_pmd(pfn, prot) __pmd(((unsigned long long)(pfn) << _PFN_SHIFT) | pgprot_val(prot))
Dpgtable.h452 unsigned long prot = pgprot_val(_prot);
463 unsigned long prot = pgprot_val(_prot);
507 pte.pte_low |= pgprot_val(newprot) & ~_PFNX_MASK;
508 pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK);
516 pte.pte_low |= pgprot_val(newprot);
517 pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK);
524 pte_val(pte) |= pgprot_val(newprot) & ~_PAGE_CHG_MASK;
674 (pgprot_val(newprot) & ~_PAGE_CHG_MASK);
/linux-6.1.9/arch/m68k/kernel/
Ddma.c29 pgprot_val(prot) &= ~_PAGE_CACHE040; in pgprot_dmacoherent()
30 pgprot_val(prot) |= _PAGE_GLOBAL040 | _PAGE_NOCACHE_S; in pgprot_dmacoherent()
32 pgprot_val(prot) |= _PAGE_NOCACHE030; in pgprot_dmacoherent()
/linux-6.1.9/arch/loongarch/include/asm/
Dio.h42 ioremap_prot((offset), (size), pgprot_val(PAGE_KERNEL_SUC))
58 ioremap_prot((offset), (size), pgprot_val(PAGE_KERNEL_WUC))
61 ioremap_prot((offset), (size), pgprot_val(PAGE_KERNEL))
Dpgtable-bits.h89 #define _PAGE_IOREMAP pgprot_val(PAGE_KERNEL_SUC)
95 unsigned long prot = pgprot_val(_prot); in pgprot_noncached()
106 unsigned long prot = pgprot_val(_prot); in pgprot_writecombine()
/linux-6.1.9/arch/x86/include/asm/
Dfb.h14 prot = pgprot_val(vma->vm_page_prot) & ~_PAGE_CACHE_MASK; in fb_pgprotect()
16 pgprot_val(vma->vm_page_prot) = in fb_pgprotect()
/linux-6.1.9/arch/csky/include/asm/
Dpgtable.h39 | pgprot_val(prot))
46 pgprot_val(pgprot))
218 unsigned long prot = pgprot_val(_prot); in pgprot_noncached()
228 unsigned long prot = pgprot_val(_prot); in pgprot_writecombine()
243 (pgprot_val(newprot))); in pte_modify()
/linux-6.1.9/arch/arm/include/asm/
Dpgtable.h92 #define _MOD_PROT(p, b) __pgprot(pgprot_val(p) | (b))
113 __pgprot((pgprot_val(prot) & ~(mask)) | (bits))
167 #define pfn_pte(pfn,prot) __pte(__pfn_to_phys(pfn) | pgprot_val(prot))
215 pte_val(pte) &= ~pgprot_val(prot); in clear_pte_bit()
221 pte_val(pte) |= pgprot_val(prot); in set_pte_bit()
269 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify()
Dpgtable-2level-types.h29 #define pgprot_val(x) ((x).pgprot) macro
47 #define pgprot_val(x) (x) macro
Dpgtable-3level-types.h32 #define pgprot_val(x) ((x).pgprot) macro
49 #define pgprot_val(x) (x) macro
/linux-6.1.9/arch/microblaze/include/asm/
Dpgtable.h52 (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
56 (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \
235 __pte(((pte_basic_t)(pfn) << PFN_SHIFT_OFFSET) | pgprot_val(prot))
281 pte_val(pte) = physpage | pgprot_val(pgprot); in mk_pte_phys()
289 pgprot_val(pgprot); \
295 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
/linux-6.1.9/arch/sparc/include/asm/
Dpgtable_32.h282 return __pte((page_to_pfn(page) << (PAGE_SHIFT-4)) | pgprot_val(pgprot)); in mk_pte()
287 return __pte(((page) >> 4) | pgprot_val(pgprot)); in mk_pte_phys()
292 return __pte(((page) >> 4) | (space << 28) | pgprot_val(pgprot)); in mk_pte_io()
298 pgprot_val(prot) &= ~pgprot_val(__pgprot(SRMMU_CACHE)); in pgprot_noncached()
306 pgprot_val(newprot)); in pte_modify()
/linux-6.1.9/arch/s390/include/asm/
Dpgtable.h528 return __pte(pte_val(pte) & ~pgprot_val(prot)); in clear_pte_bit()
533 return __pte(pte_val(pte) | pgprot_val(prot)); in set_pte_bit()
538 return __pmd(pmd_val(pmd) & ~pgprot_val(prot)); in clear_pmd_bit()
543 return __pmd(pmd_val(pmd) | pgprot_val(prot)); in set_pmd_bit()
548 return __pud(pud_val(pud) & ~pgprot_val(prot)); in clear_pud_bit()
553 return __pud(pud_val(pud) | pgprot_val(prot)); in set_pud_bit()
900 pte_flags |= pgprot_val(PAGE_KERNEL); in pte_pgprot()
902 pte_flags |= pgprot_val(PAGE_KERNEL_RO); in pte_pgprot()
1277 __pte = __pte(physpage | pgprot_val(pgprot)); in mk_pte_phys()
1480 if (pgprot_val(pgprot) == pgprot_val(PAGE_NONE)) in massage_pgprot_pmd()
[all …]
/linux-6.1.9/mm/
Dio-mapping.c26 __pgprot((pgprot_val(iomap->prot) & _PAGE_CACHE_MASK) | in io_mapping_map_user()
27 (pgprot_val(vma->vm_page_prot) & ~_PAGE_CACHE_MASK))); in io_mapping_map_user()
/linux-6.1.9/arch/powerpc/include/asm/book3s/32/
Dpgtable.h435 pgprot_val(pgprot)); in pfn_pte()
511 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
581 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_noncached()
588 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_noncached_wc()
595 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_cached()
602 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_cached_wthru()
609 return __pgprot(pgprot_val(prot) & ~_PAGE_CACHE_CTL); in pgprot_cached_noncoherent()
/linux-6.1.9/arch/um/include/asm/
Dpage.h48 ({ (p).pte = (phys) | pgprot_val(prot); })
74 #define pte_set_val(p, phys, prot) (p).pte = (phys | pgprot_val(prot))
85 #define pgprot_val(x) ((x).pgprot) macro
Dpgtable-2level.h40 #define pfn_pte(pfn, prot) __pte(pfn_to_phys(pfn) | pgprot_val(prot))
41 #define pfn_pmd(pfn, prot) __pmd(pfn_to_phys(pfn) | pgprot_val(prot))
/linux-6.1.9/arch/x86/mm/
Diomap_32.c35 pgprot_val(*prot) &= __default_kernel_pte_mask; in iomap_create_wc()
61 pgprot_val(prot) &= __default_kernel_pte_mask; in __iomap_local_pfn_prot()
/linux-6.1.9/arch/ia64/include/asm/
Dpgtable.h227 ({ pte_t __pte; pte_val(__pte) = ((pfn) << PAGE_SHIFT) | pgprot_val(pgprot); __pte; })
236 ({ pte_t __pte; pte_val(__pte) = physpage + pgprot_val(pgprot); __pte; })
239 (__pte((pte_val(_pte) & ~_PAGE_CHG_MASK) | (pgprot_val(newprot) & _PAGE_CHG_MASK)))
327 #define pgprot_cacheable(prot) __pgprot((pgprot_val(prot) & ~_PAGE_MA_MASK) | _PAGE_MA_WB)
328 #define pgprot_noncached(prot) __pgprot((pgprot_val(prot) & ~_PAGE_MA_MASK) | _PAGE_MA_UC)
329 #define pgprot_writecombine(prot) __pgprot((pgprot_val(prot) & ~_PAGE_MA_MASK) | _PAGE_MA_WC)

1234567