| /OK3568_Linux_fs/kernel/mm/ |
| H A D | debug_vm_pgtable.c | 63 pgprot_t prot = protection_map[idx]; in pte_basic_tests() 92 pgprot_t prot) in pte_advanced_tests() 135 static void __init pte_savedwrite_tests(unsigned long pfn, pgprot_t prot) in pte_savedwrite_tests() 150 pgprot_t prot = protection_map[idx]; in pmd_basic_tests() 189 pgprot_t prot, pgtable_t pgtable) in pmd_advanced_tests() 236 static void __init pmd_leaf_tests(unsigned long pfn, pgprot_t prot) in pmd_leaf_tests() 254 static void __init pmd_huge_tests(pmd_t *pmdp, unsigned long pfn, pgprot_t prot) in pmd_huge_tests() 273 static void __init pmd_huge_tests(pmd_t *pmdp, unsigned long pfn, pgprot_t prot) { } in pmd_huge_tests() 276 static void __init pmd_savedwrite_tests(unsigned long pfn, pgprot_t prot) in pmd_savedwrite_tests() 295 pgprot_t prot = protection_map[idx]; in pud_basic_tests() [all …]
|
| H A D | ioremap.c | 65 unsigned long end, phys_addr_t phys_addr, pgprot_t prot, in ioremap_pte_range() 86 pgprot_t prot) in ioremap_try_huge_pmd() 107 unsigned long end, phys_addr_t phys_addr, pgprot_t prot, in ioremap_pmd_range() 132 pgprot_t prot) in ioremap_try_huge_pud() 153 unsigned long end, phys_addr_t phys_addr, pgprot_t prot, in ioremap_pud_range() 178 pgprot_t prot) in ioremap_try_huge_p4d() 199 unsigned long end, phys_addr_t phys_addr, pgprot_t prot, in ioremap_p4d_range() 223 unsigned long end, phys_addr_t phys_addr, pgprot_t prot) in ioremap_page_range()
|
| H A D | early_ioremap.c | 34 pgprot_t __init __weak early_memremap_pgprot_adjust(resource_size_t phys_addr, in early_memremap_pgprot_adjust() 36 pgprot_t prot) in early_memremap_pgprot_adjust() 58 phys_addr_t phys, pgprot_t prot) in __late_set_fixmap() 106 __early_ioremap(resource_size_t phys_addr, unsigned long size, pgprot_t prot) in __early_ioremap() 226 pgprot_t prot = early_memremap_pgprot_adjust(phys_addr, size, in early_memremap() 235 pgprot_t prot = early_memremap_pgprot_adjust(phys_addr, size, in early_memremap_ro()
|
| H A D | mprotect.c | 39 unsigned long addr, unsigned long end, pgprot_t newprot, in change_pte_range() 214 pgprot_t newprot, unsigned long cp_flags) in change_pmd_range() 286 pgprot_t newprot, unsigned long cp_flags) in change_pud_range() 306 pgprot_t newprot, unsigned long cp_flags) in change_p4d_range() 325 unsigned long addr, unsigned long end, pgprot_t newprot, in change_protection_range() 355 unsigned long end, pgprot_t newprot, in change_protection() 374 return pfn_modify_allowed(pte_pfn(*pte), *(pgprot_t *)(walk->private)) ? in prot_none_pte_entry() 382 return pfn_modify_allowed(pte_pfn(*pte), *(pgprot_t *)(walk->private)) ? in prot_none_hugetlb_entry() 423 pgprot_t new_pgprot = vm_get_page_prot(newflags); in mprotect_fixup()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/include/asm/book3s/32/ |
| H A D | pgtable.h | 144 int map_kernel_page(unsigned long va, phys_addr_t pa, pgprot_t prot); 406 static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot) in pfn_pte() 483 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 553 static inline pgprot_t pgprot_noncached(pgprot_t prot) in pgprot_noncached() 560 static inline pgprot_t pgprot_noncached_wc(pgprot_t prot) in pgprot_noncached_wc() 567 static inline pgprot_t pgprot_cached(pgprot_t prot) in pgprot_cached() 574 static inline pgprot_t pgprot_cached_wthru(pgprot_t prot) in pgprot_cached_wthru() 581 static inline pgprot_t pgprot_cached_noncoherent(pgprot_t prot) in pgprot_cached_noncoherent() 587 static inline pgprot_t pgprot_writecombine(pgprot_t prot) in pgprot_writecombine()
|
| /OK3568_Linux_fs/kernel/include/xen/ |
| H A D | xen-ops.h | 66 xen_pfn_t *pfn, int nr, int *err_ptr, pgprot_t prot, 71 pgprot_t prot, unsigned int domid, in xen_remap_pfn() 85 int *err_ptr, pgprot_t prot, 98 int *err_ptr, pgprot_t prot, in xen_xlate_remap_gfn_array() 135 int *err_ptr, pgprot_t prot, in xen_remap_domain_gfn_array() 172 pgprot_t prot, unsigned int domid, in xen_remap_domain_mfn_array() 197 pgprot_t prot, unsigned int domid, in xen_remap_domain_gfn_range()
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/arch/x86/include/asm/ |
| H A D | pgtable_types.h | 177 #define __pgprot(x) ((pgprot_t) { (x) } ) 284 typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; typedef 288 static inline pgprot_t pgprot_nx(pgprot_t prot) in pgprot_nx() 493 static inline pgprot_t pgprot_4k_2_large(pgprot_t pgprot) in pgprot_4k_2_large() 503 static inline pgprot_t pgprot_large_2_4k(pgprot_t pgprot) in pgprot_large_2_4k() 517 extern pgprot_t pgprot_writecombine(pgprot_t prot); 520 extern pgprot_t pgprot_writethrough(pgprot_t prot); 527 pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, 528 unsigned long size, pgprot_t vma_prot);
|
| /OK3568_Linux_fs/kernel/arch/sparc/include/asm/ |
| H A D | pgtable_32.h | 295 static inline pte_t mk_pte(struct page *page, pgprot_t pgprot) in mk_pte() 300 static inline pte_t mk_pte_phys(unsigned long page, pgprot_t pgprot) in mk_pte_phys() 305 static inline pte_t mk_pte_io(unsigned long page, pgprot_t pgprot, int space) in mk_pte_io() 311 static inline pgprot_t pgprot_noncached(pgprot_t prot) in pgprot_noncached() 317 static pte_t pte_modify(pte_t pte, pgprot_t newprot) __attribute_const__; 318 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 398 unsigned long, pgprot_t); 402 unsigned long size, pgprot_t prot) in io_remap_pfn_range()
|
| H A D | pgtable_64.h | 214 pte_t mk_pte_io(unsigned long, pgprot_t, int, unsigned long); 218 extern pgprot_t PAGE_KERNEL; 219 extern pgprot_t PAGE_KERNEL_LOCKED; 220 extern pgprot_t PAGE_COPY; 221 extern pgprot_t PAGE_SHARED; 239 static inline pte_t pfn_pte(unsigned long pfn, pgprot_t prot) in pfn_pte() 249 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() 280 static inline pte_t pte_modify(pte_t pte, pgprot_t prot) in pte_modify() 339 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() 349 static inline pgprot_t pgprot_noncached(pgprot_t prot) in pgprot_noncached() [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | vmalloc.h | 112 pgprot_t prot, unsigned long vm_flags, int node, 121 unsigned long flags, pgprot_t prot); 122 void *vmap_pfn(unsigned long *pfns, unsigned int count, pgprot_t prot); 175 pgprot_t prot, struct page **pages); 176 int map_kernel_range(unsigned long start, unsigned long size, pgprot_t prot, 190 pgprot_t prot, struct page **pages) in map_kernel_range_noflush()
|
| H A D | pgtable.h | 868 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot) in pgprot_modify() 1015 static inline int track_pfn_remap(struct vm_area_struct *vma, pgprot_t *prot, in track_pfn_remap() 1026 static inline void track_pfn_insert(struct vm_area_struct *vma, pgprot_t *prot, in track_pfn_insert() 1057 extern int track_pfn_remap(struct vm_area_struct *vma, pgprot_t *prot, 1060 extern void track_pfn_insert(struct vm_area_struct *vma, pgprot_t *prot, 1303 int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot); 1306 static inline int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot) in p4d_set_huge() 1316 int pud_set_huge(pud_t *pud, phys_addr_t addr, pgprot_t prot); 1317 int pmd_set_huge(pmd_t *pmd, phys_addr_t addr, pgprot_t prot); 1324 static inline int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot) in p4d_set_huge() [all …]
|
| /OK3568_Linux_fs/kernel/arch/x86/mm/ |
| H A D | cpu_entry_area.c | 34 void cea_set_pte(void *cea_vaddr, phys_addr_t pa, pgprot_t flags) in cea_set_pte() 54 cea_map_percpu_pages(void *cea_vaddr, void *ptr, int pages, pgprot_t prot) in cea_map_percpu_pages() 137 pgprot_t gdt_prot = PAGE_KERNEL_RO; in setup_cpu_entry_area() 138 pgprot_t tss_prot = PAGE_KERNEL_RO; in setup_cpu_entry_area() 150 pgprot_t gdt_prot = boot_cpu_has(X86_FEATURE_XENPV) ? in setup_cpu_entry_area() 152 pgprot_t tss_prot = PAGE_KERNEL; in setup_cpu_entry_area()
|
| /OK3568_Linux_fs/kernel/arch/arm64/mm/ |
| H A D | pageattr.c | 16 pgprot_t set_mask; 17 pgprot_t clear_mask; 38 pgprot_t set_mask, pgprot_t clear_mask) in __change_memory_common() 54 pgprot_t set_mask, pgprot_t clear_mask) in change_memory_common()
|
| H A D | mmu.c | 82 pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, in phys_mem_access_prot() 83 unsigned long size, pgprot_t vma_prot) in phys_mem_access_prot() 155 phys_addr_t phys, pgprot_t prot) in init_pte() 180 pgprot_t prot, in alloc_init_cont_pte() 198 pgprot_t __prot = prot; in alloc_init_cont_pte() 214 phys_addr_t phys, pgprot_t prot, in init_pmd() 252 pgprot_t prot, in alloc_init_cont_pmd() 272 pgprot_t __prot = prot; in alloc_init_cont_pmd() 300 phys_addr_t phys, pgprot_t prot, in alloc_init_pud() 360 pgprot_t prot, in __create_pgd_mapping() [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/mm/ |
| H A D | ioremap.c | 14 pgprot_t prot = pgprot_noncached(PAGE_KERNEL); in ioremap() 25 pgprot_t prot = pgprot_noncached_wc(PAGE_KERNEL); in ioremap_wc() 36 pgprot_t prot = pgprot_cached(PAGE_KERNEL); in ioremap_coherent() 64 unsigned long size, pgprot_t prot) in early_ioremap_range() 79 pgprot_t prot, void *caller) in do_ioremap()
|
| /OK3568_Linux_fs/kernel/arch/csky/include/asm/ |
| H A D | pgtable.h | 225 extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, 226 unsigned long size, pgprot_t vma_prot); 236 static inline pgprot_t pgprot_noncached(pgprot_t _prot) in pgprot_noncached() 246 static inline pgprot_t pgprot_writecombine(pgprot_t _prot) in pgprot_writecombine() 260 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify()
|
| /OK3568_Linux_fs/kernel/arch/arm/mm/ |
| H A D | pageattr.c | 12 pgprot_t set_mask; 13 pgprot_t clear_mask; 36 pgprot_t set_mask, pgprot_t clear_mask) in change_memory_common()
|
| /OK3568_Linux_fs/kernel/arch/x86/mm/pat/ |
| H A D | set_memory.c | 39 pgprot_t mask_set; 40 pgprot_t mask_clr; 72 static inline pgprot_t cachemode2pgprot(enum page_cache_mode pcm) in cachemode2pgprot() 497 static inline bool conflicts(pgprot_t prot, pgprotval_t val) in conflicts() 502 static inline void check_conflict(int warnlvl, pgprot_t prot, pgprotval_t val, in check_conflict() 526 static inline pgprot_t static_protections(pgprot_t prot, unsigned long start, in static_protections() 748 static pgprot_t pgprot_clear_protnone_bits(pgprot_t prot) in pgprot_clear_protnone_bits() 769 pgprot_t old_prot, new_prot, req_prot, chk_prot; in __should_split_large_page() 924 pgprot_t ref_prot, unsigned long address, in split_set_pte() 928 pgprot_t prot; in split_set_pte() [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/include/asm/ |
| H A D | pgtable.h | 89 extern pgprot_t pgprot_user; 90 extern pgprot_t pgprot_kernel; 132 extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, 133 unsigned long size, pgprot_t vma_prot); 227 static inline pte_t clear_pte_bit(pte_t pte, pgprot_t prot) in clear_pte_bit() 233 static inline pte_t set_pte_bit(pte_t pte, pgprot_t prot) in set_pte_bit() 279 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
|
| /OK3568_Linux_fs/kernel/arch/mips/include/asm/ |
| H A D | pgtable.h | 460 static inline pgprot_t pgprot_noncached(pgprot_t _prot) 471 static inline pgprot_t pgprot_writecombine(pgprot_t _prot) 513 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) 522 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) 531 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) 571 unsigned long pfn, unsigned long size, pgprot_t prot); 684 extern pmd_t mk_pmd(struct page *page, pgprot_t prot); 699 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot)
|
| /OK3568_Linux_fs/kernel/arch/riscv/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, in __set_memory() 108 pgprot_t clear_mask) in __set_memory()
|
| /OK3568_Linux_fs/kernel/arch/alpha/include/asm/ |
| H A D | page.h | 34 typedef struct { unsigned long pgprot; } pgprot_t; typedef 44 #define __pgprot(x) ((pgprot_t) { (x) } ) 53 typedef unsigned long pgprot_t; typedef
|