| /linux/arch/powerpc/include/asm/book3s/32/ |
| H A D | pgtable.h | 137 int map_kernel_page(unsigned long va, phys_addr_t pa, pgprot_t prot); 452 static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot) in pfn_pte() 517 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 572 static inline pgprot_t pgprot_noncached(pgprot_t prot) in pgprot_noncached() 579 static inline pgprot_t pgprot_noncached_wc(pgprot_t prot) in pgprot_noncached_wc() 586 static inline pgprot_t pgprot_cached(pgprot_t prot) in pgprot_cached() 593 static inline pgprot_t pgprot_cached_wthru(pgprot_t prot) in pgprot_cached_wthru() 600 static inline pgprot_t pgprot_cached_noncoherent(pgprot_t prot) in pgprot_cached_noncoherent() 606 static inline pgprot_t pgprot_writecombine(pgprot_t prot) in pgprot_writecombine()
|
| /linux/arch/powerpc/include/asm/ |
| H A D | pgtable.h | 58 static inline pgprot_t pte_pgprot(pte_t pte) in pte_pgprot() 66 static inline pgprot_t pgprot_nx(pgprot_t prot) in pgprot_nx() 92 extern const pgprot_t protection_map[16]; 114 pgprot_t __phys_mem_access_prot(unsigned long pfn, unsigned long size, 115 pgprot_t vma_prot); 118 static inline pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, in phys_mem_access_prot() 119 unsigned long size, pgprot_t vma_prot) in phys_mem_access_prot()
|
| /linux/arch/arm64/mm/ |
| H A D | pageattr.c | 20 pgprot_t set_mask; 21 pgprot_t clear_mask; 101 pgprot_t set_mask, pgprot_t clear_mask) in update_range_prot() 128 pgprot_t set_mask, pgprot_t clear_mask) in __change_memory_common() 145 pgprot_t set_mask, pgprot_t clear_mask) in change_memory_common() 250 pgprot_t clear_mask = __pgprot(PTE_VALID); in set_direct_map_invalid_noflush() 251 pgprot_t set_mask = __pgprot(0); in set_direct_map_invalid_noflush() 262 pgprot_t set_mask = __pgprot(PTE_VALID | PTE_WRITE); in set_direct_map_default_noflush() 263 pgprot_t clear_mask = __pgprot(PTE_RDONLY); in set_direct_map_default_noflush()
|
| /linux/include/xen/ |
| H A D | xen-ops.h | 47 xen_pfn_t *pfn, int nr, int *err_ptr, pgprot_t prot, 52 pgprot_t prot, unsigned int domid, in xen_remap_pfn() 66 int *err_ptr, pgprot_t prot, 79 int *err_ptr, pgprot_t prot, in xen_xlate_remap_gfn_array() 116 int *err_ptr, pgprot_t prot, in xen_remap_domain_gfn_array() 152 pgprot_t prot, unsigned int domid) in xen_remap_domain_mfn_array() 176 pgprot_t prot, unsigned int domid, in xen_remap_domain_gfn_range()
|
| /linux/arch/arm/mm/ |
| H A D | pageattr.c | 12 pgprot_t set_mask; 13 pgprot_t clear_mask; 39 pgprot_t set_mask, pgprot_t clear_mask) in __change_memory_common() 55 pgprot_t set_mask, pgprot_t clear_mask) in change_memory_common()
|
| /linux/arch/sh/include/asm/ |
| H A D | mmu.h | 63 unsigned long size, pgprot_t prot); 65 pgprot_t prot, void *caller); 72 unsigned long size, pgprot_t prot) in pmb_bolt_mapping() 79 pgprot_t prot, void *caller) in pmb_remap_caller() 100 pmb_remap(phys_addr_t phys, unsigned long size, pgprot_t prot) in pmb_remap()
|
| /linux/arch/powerpc/mm/ |
| H A D | ioremap.c | 13 pgprot_t prot = pgprot_noncached(PAGE_KERNEL); in ioremap() 22 pgprot_t prot = pgprot_noncached_wc(PAGE_KERNEL); in ioremap_wc() 31 pgprot_t prot = pgprot_cached(PAGE_KERNEL); in ioremap_coherent() 37 void __iomem *ioremap_prot(phys_addr_t addr, size_t size, pgprot_t prot) in ioremap_prot() 51 unsigned long size, pgprot_t prot) in early_ioremap_range()
|
| /linux/include/linux/ |
| H A D | vmalloc.h | 93 static inline bool arch_vmap_p4d_supported(pgprot_t prot) in arch_vmap_p4d_supported() 100 static inline bool arch_vmap_pud_supported(pgprot_t prot) in arch_vmap_pud_supported() 107 static inline bool arch_vmap_pmd_supported(pgprot_t prot) in arch_vmap_pmd_supported() 137 static inline pgprot_t arch_vmap_pgprot_tagged(pgprot_t prot) in arch_vmap_pgprot_tagged() 176 pgprot_t prot, unsigned long vm_flags, int node, 218 unsigned long flags, pgprot_t prot); 219 void *vmap_pfn(unsigned long *pfns, unsigned int count, pgprot_t prot); 229 int vmap_pages_range(unsigned long addr, unsigned long end, pgprot_t prot,
|
| H A D | io.h | 29 phys_addr_t phys_addr, pgprot_t prot); 31 phys_addr_t phys_addr, pgprot_t prot); 34 phys_addr_t phys_addr, pgprot_t prot) in ioremap_page_range() 39 phys_addr_t phys_addr, pgprot_t prot) in vmap_page_range() 81 pgprot_t __init early_memremap_pgprot_adjust(resource_size_t phys_addr, 82 unsigned long size, pgprot_t prot);
|
| H A D | highmem-internal.h | 9 void *__kmap_local_pfn_prot(unsigned long pfn, pgprot_t prot); 10 void *__kmap_local_page_prot(const struct page *page, pgprot_t prot); 90 static inline void *kmap_local_page_prot(const struct page *page, pgprot_t prot) in kmap_local_page_prot() 105 static inline void *kmap_atomic_prot(const struct page *page, pgprot_t prot) in kmap_atomic_prot() 201 static inline void *kmap_local_page_prot(const struct page *page, pgprot_t prot) in kmap_local_page_prot() 228 static inline void *kmap_atomic_prot(const struct page *page, pgprot_t prot) in kmap_atomic_prot()
|
| H A D | pgtable.h | 1699 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() 1834 pgprot_t *prot) in pfnmap_setup_cachemode() 1840 pgprot_t *prot) in pfnmap_track() 1873 pgprot_t *prot); 1893 int pfnmap_track(unsigned long pfn, unsigned long size, pgprot_t *prot); 1915 static inline void pfnmap_setup_cachemode_pfn(unsigned long pfn, pgprot_t *prot) in pfnmap_setup_cachemode_pfn() 2033 int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot); 2036 static inline int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot) in p4d_set_huge() 2043 int pud_set_huge(pud_t *pud, phys_addr_t addr, pgprot_t prot); 2044 int pmd_set_huge(pmd_t *pmd, phys_addr_t addr, pgprot_t prot); [all …]
|
| /linux/arch/x86/include/asm/ |
| H A D | pgtable_types.h | 202 #define __pgprot(x) ((pgprot_t) { (x) } ) 293 typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; typedef 297 static inline pgprot_t pgprot_nx(pgprot_t prot) in pgprot_nx() 500 static inline pgprot_t pgprot_4k_2_large(pgprot_t pgprot) in pgprot_4k_2_large() 510 static inline pgprot_t pgprot_large_2_4k(pgprot_t pgprot) in pgprot_large_2_4k() 522 extern pgprot_t pgprot_writecombine(pgprot_t prot); 525 extern pgprot_t pgprot_writethrough(pgprot_t prot); 532 pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, 533 unsigned long size, pgprot_t vma_prot);
|
| /linux/arch/loongarch/include/asm/ |
| H A D | pgtable-bits.h | 131 static inline pgprot_t pgprot_nx(pgprot_t _prot) in pgprot_nx() 138 static inline pgprot_t pgprot_noncached(pgprot_t _prot) in pgprot_noncached() 151 static inline pgprot_t pgprot_writecombine(pgprot_t _prot) in pgprot_writecombine()
|
| /linux/arch/arm64/include/asm/ |
| H A D | vmalloc.h | 10 static inline bool arch_vmap_pud_supported(pgprot_t prot) in arch_vmap_pud_supported() 16 static inline bool arch_vmap_pmd_supported(pgprot_t prot) in arch_vmap_pmd_supported() 69 static inline pgprot_t arch_vmap_pgprot_tagged(pgprot_t prot) in arch_vmap_pgprot_tagged()
|
| H A D | mmu.h | 75 phys_addr_t size, pgprot_t prot); 78 pgprot_t prot, bool page_mappings_only); 79 extern void *fixmap_remap_fdt(phys_addr_t dt_phys, int *size, pgprot_t prot);
|
| /linux/arch/csky/include/asm/ |
| H A D | pgtable.h | 222 extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, 223 unsigned long size, pgprot_t vma_prot); 233 static inline pgprot_t pgprot_noncached(pgprot_t _prot) in pgprot_noncached() 243 static inline pgprot_t pgprot_writecombine(pgprot_t _prot) in pgprot_writecombine() 252 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify()
|
| /linux/arch/x86/mm/ |
| H A D | cpu_entry_area.c | 79 void cea_set_pte(void *cea_vaddr, phys_addr_t pa, pgprot_t flags) in cea_set_pte() 99 cea_map_percpu_pages(void *cea_vaddr, void *ptr, int pages, pgprot_t prot) in cea_map_percpu_pages() 182 pgprot_t gdt_prot = PAGE_KERNEL_RO; in setup_cpu_entry_area() 183 pgprot_t tss_prot = PAGE_KERNEL_RO; in setup_cpu_entry_area() 192 pgprot_t gdt_prot = PAGE_KERNEL; in setup_cpu_entry_area() 193 pgprot_t tss_prot = PAGE_KERNEL; in setup_cpu_entry_area()
|
| /linux/arch/x86/mm/pat/ |
| H A D | set_memory.c | 44 pgprot_t mask_set; 45 pgprot_t mask_clr; 78 static inline pgprot_t cachemode2pgprot(enum page_cache_mode pcm) in cachemode2pgprot() 587 static inline bool conflicts(pgprot_t prot, pgprotval_t val) in conflicts() 592 static inline void check_conflict(int warnlvl, pgprot_t prot, pgprotval_t val, in check_conflict() 616 static inline pgprot_t static_protections(pgprot_t prot, unsigned long start, in static_protections() 664 static inline pgprot_t verify_rwx(pgprot_t old, pgprot_t new, unsigned long start, in verify_rwx() 905 static pgprot_t pgprot_clear_protnone_bits(pgprot_t prot) in pgprot_clear_protnone_bits() 926 pgprot_t old_prot, new_prot, req_prot, chk_prot; in __should_split_large_page() 1085 pgprot_t ref_prot, unsigned long address, in split_set_pte() [all …]
|
| H A D | memtype.c | 769 pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, in phys_mem_access_prot() 770 unsigned long size, pgprot_t vma_prot) in phys_mem_access_prot() 778 static inline void pgprot_set_cachemode(pgprot_t *prot, enum page_cache_mode pcm) in pgprot_set_cachemode() 785 unsigned long size, pgprot_t *vma_prot) in phys_mem_access_prot_allowed() 839 static int reserve_pfn_range(u64 paddr, unsigned long size, pgprot_t *vma_prot) in reserve_pfn_range() 908 int pfnmap_setup_cachemode(unsigned long pfn, unsigned long size, pgprot_t *prot) in pfnmap_setup_cachemode() 930 int pfnmap_track(unsigned long pfn, unsigned long size, pgprot_t *prot) in pfnmap_track() 944 pgprot_t pgprot_writecombine(pgprot_t prot) in pgprot_writecombine() 951 pgprot_t pgprot_writethrough(pgprot_t prot) in pgprot_writethrough()
|
| /linux/mm/ |
| H A D | early_ioremap.c | 43 pgprot_t __init __weak early_memremap_pgprot_adjust(resource_size_t phys_addr, in early_memremap_pgprot_adjust() 45 pgprot_t prot) in early_memremap_pgprot_adjust() 62 phys_addr_t phys, pgprot_t prot) in __late_set_fixmap() 108 __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot) in __early_ioremap() 228 pgprot_t prot = early_memremap_pgprot_adjust(phys_addr, size, in early_memremap() 237 pgprot_t prot = early_memremap_pgprot_adjust(phys_addr, size, in early_memremap_ro()
|
| /linux/arch/arm/include/asm/ |
| H A D | pgtable.h | 88 extern pgprot_t pgprot_user; 89 extern pgprot_t pgprot_kernel; 131 extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, 132 unsigned long size, pgprot_t vma_prot); 216 static inline pte_t clear_pte_bit(pte_t pte, pgprot_t prot) in clear_pte_bit() 222 static inline pte_t set_pte_bit(pte_t pte, pgprot_t prot) in set_pte_bit() 268 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify()
|
| H A D | pgtable-2level-types.h | 24 typedef struct { pteval_t pgprot; } pgprot_t; typedef 33 #define __pgprot(x) ((pgprot_t) { (x) } ) 42 typedef pteval_t pgprot_t; typedef
|
| H A D | pgtable-3level-types.h | 27 typedef struct { pteval_t pgprot; } pgprot_t; typedef 37 #define __pgprot(x) ((pgprot_t) { (x) } ) 44 typedef pteval_t pgprot_t; typedef
|
| /linux/arch/sparc/include/asm/ |
| H A D | pgtable_32.h | 259 static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot) in pfn_pte() 279 static inline pte_t mk_pte_phys(unsigned long page, pgprot_t pgprot) in mk_pte_phys() 284 static inline pte_t mk_pte_io(unsigned long page, pgprot_t pgprot, int space) in mk_pte_io() 290 static inline pgprot_t pgprot_noncached(pgprot_t prot) in pgprot_noncached() 296 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()
|
| /linux/arch/loongarch/mm/ |
| H A D | pageattr.c | 13 pgprot_t set_mask; 14 pgprot_t clear_mask; 107 static int __set_memory(unsigned long addr, int numpages, pgprot_t set_mask, pgprot_t clear_mask) in __set_memory() 224 pgprot_t set, clear; in set_direct_map_valid_noflush()
|