| /linux/arch/sh/mm/ |
| H A D | ioremap.c | 76 pgprot_t pgprot) in ioremap_prot() argument 84 mapped = __ioremap_29bit(phys_addr, size, pgprot); in ioremap_prot() 92 return ioremap_fixed(phys_addr, size, pgprot); in ioremap_prot() 98 mapped = pmb_remap_caller(phys_addr, size, pgprot, in ioremap_prot() 103 return generic_ioremap_prot(phys_addr, size, pgprot); in ioremap_prot()
|
| /linux/mm/ |
| H A D | execmem.c | 29 pgprot_t pgprot, unsigned long vm_flags) in execmem_vmalloc() argument 42 pgprot, vm_flags, NUMA_NO_NODE, in execmem_vmalloc() 48 pgprot, vm_flags, NUMA_NO_NODE, in execmem_vmalloc() 82 pgprot_t pgprot, unsigned long vm_flags) in execmem_vmalloc() argument 466 pgprot_t pgprot = range->pgprot; in execmem_alloc() local 474 p = execmem_vmalloc(range, size, pgprot, vm_flags); in execmem_alloc() 515 if (!r->alignment || !r->start || !r->end || !pgprot_val(r->pgprot)) { in execmem_validate() 543 r->pgprot = PAGE_KERNEL; in execmem_init_missing() 545 r->pgprot = default_range->pgprot; in execmem_init_missing() 569 info->ranges[EXECMEM_DEFAULT].pgprot = PAGE_KERNEL_EXEC; in __execmem_init()
|
| H A D | memremap.c | 189 ¶ms->pgprot); in pagemap_range() 271 .pgprot = PAGE_KERNEL, in memremap_pages() 312 params.pgprot = pgprot_decrypted(params.pgprot); in memremap_pages() 317 params.pgprot = pgprot_noncached(params.pgprot); in memremap_pages()
|
| H A D | hugetlb_vmemmap.c | 67 pgprot_t pgprot = PAGE_KERNEL; in vmemmap_split_pmd() local 69 entry = mk_pte(head + i, pgprot); in vmemmap_split_pmd() 214 pgprot_t pgprot = PAGE_KERNEL_RO; in vmemmap_remap_pte() local 220 pgprot = PAGE_KERNEL; in vmemmap_remap_pte() 231 entry = mk_pte(walk->reuse_page, pgprot); in vmemmap_remap_pte() 258 pgprot_t pgprot = PAGE_KERNEL; in vmemmap_restore_pte() local 275 set_pte_at(&init_mm, addr, pte, mk_pte(page, pgprot)); in vmemmap_restore_pte()
|
| /linux/arch/arm64/mm/ |
| H A D | ioremap.c | 18 pgprot_t pgprot) in ioremap_prot() argument 35 WARN_ON(ioremap_prot_hook(phys_addr, size, &pgprot))) { in ioremap_prot() 39 return generic_ioremap_prot(phys_addr, size, pgprot); in ioremap_prot()
|
| /linux/arch/x86/mm/ |
| H A D | init.c | 100 enum page_cache_mode pgprot2cachemode(pgprot_t pgprot) in pgprot2cachemode() argument 104 masked = pgprot_val(pgprot) & _PAGE_CACHE_MASK; in pgprot2cachemode() 1077 pgprot_t pgprot; in execmem_arch_setup() local 1086 pgprot = PAGE_KERNEL_ROX; in execmem_arch_setup() 1089 pgprot = PAGE_KERNEL; in execmem_arch_setup() 1099 .pgprot = pgprot, in execmem_arch_setup() 1106 .pgprot = PAGE_KERNEL_ROX, in execmem_arch_setup() 1113 .pgprot = pgprot, in execmem_arch_setup() 1120 .pgprot = PAGE_KERNEL, in execmem_arch_setup() 1127 .pgprot = PAGE_KERNEL, in execmem_arch_setup()
|
| /linux/arch/powerpc/mm/book3s64/ |
| H A D | pgtable.c | 237 static pmd_t pmd_set_protbits(pmd_t pmd, pgprot_t pgprot) in pmd_set_protbits() argument 239 return __pmd(pmd_val(pmd) | pgprot_val(pgprot)); in pmd_set_protbits() 242 static pud_t pud_set_protbits(pud_t pud, pgprot_t pgprot) in pud_set_protbits() argument 244 return __pud(pud_val(pud) | pgprot_val(pgprot)); in pud_set_protbits() 252 pmd_t pfn_pmd(unsigned long pfn, pgprot_t pgprot) in pfn_pmd() argument 258 return __pmd_mkhuge(pmd_set_protbits(__pmd(pmdv), pgprot)); in pfn_pmd() 261 pud_t pfn_pud(unsigned long pfn, pgprot_t pgprot) in pfn_pud() argument 267 return __pud_mkhuge(pud_set_protbits(__pud(pudv), pgprot)); in pfn_pud()
|
| /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() argument 261 return __pte((pfn << PFN_PTE_SHIFT) | pgprot_val(pgprot)); in pfn_pte() 279 static inline pte_t mk_pte_phys(unsigned long page, pgprot_t pgprot) in mk_pte_phys() argument 281 return __pte(((page) >> 4) | pgprot_val(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() argument 286 return __pte(((page) >> 4) | (space << 28) | pgprot_val(pgprot)); in mk_pte_io()
|
| /linux/arch/x86/mm/pat/ |
| H A D | set_memory.c | 1251 pgprot_t pgprot; in collapse_pmd_page() local 1285 pgprot = pgprot_4k_2_large(pte_pgprot(first)); in collapse_pmd_page() 1286 pgprot_val(pgprot) |= _PAGE_PSE; in collapse_pmd_page() 1287 _pmd = pfn_pmd(pfn, pgprot); in collapse_pmd_page() 1562 unsigned num_pages, pmd_t *pmd, pgprot_t pgprot) in populate_pte() argument 1568 pgprot = pgprot_clear_protnone_bits(pgprot); in populate_pte() 1571 set_pte(pte, pfn_pte(cpa->pfn, pgprot)); in populate_pte() 1581 unsigned num_pages, pud_t *pud, pgprot_t pgprot) in populate_pmd() argument 1606 populate_pte(cpa, start, pre_end, cur_pages, pmd, pgprot); in populate_pmd() 1617 pmd_pgprot = pgprot_4k_2_large(pgprot); in populate_pmd() [all …]
|
| /linux/arch/m68k/include/asm/ |
| H A D | page.h | 26 typedef struct { unsigned long pgprot; } pgprot_t; member 41 #define pgprot_val(x) ((x).pgprot)
|
| /linux/arch/x86/include/asm/ |
| H A D | pgtable.h | 710 static inline pgprotval_t massage_pgprot(pgprot_t pgprot) in massage_pgprot() argument 712 pgprotval_t protval = pgprot_val(pgprot); in massage_pgprot() 720 static inline pgprotval_t check_pgprot(pgprot_t pgprot) in check_pgprot() argument 722 pgprotval_t massaged_val = massage_pgprot(pgprot); in check_pgprot() 726 WARN_ONCE(pgprot_val(pgprot) != massaged_val, in check_pgprot() 729 (u64)pgprot_val(pgprot), in check_pgprot() 730 (u64)pgprot_val(pgprot) ^ massaged_val, in check_pgprot() 737 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument 741 WARN_ON_ONCE((pgprot_val(pgprot) & (_PAGE_DIRTY | _PAGE_RW)) == in pfn_pte() 743 pfn ^= protnone_mask(pgprot_val(pgprot)); in pfn_pte() [all …]
|
| H A D | pgtable_types.h | 201 #define pgprot_val(x) ((x).pgprot) 293 typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; argument 500 static inline pgprot_t pgprot_4k_2_large(pgprot_t pgprot) in pgprot_4k_2_large() argument 502 return __pgprot(protval_4k_2_large(pgprot_val(pgprot))); in pgprot_4k_2_large() 510 static inline pgprot_t pgprot_large_2_4k(pgprot_t pgprot) in pgprot_large_2_4k() argument 512 return __pgprot(protval_large_2_4k(pgprot_val(pgprot))); in pgprot_large_2_4k()
|
| /linux/arch/sh/include/asm/ |
| H A D | page.h | 64 typedef struct { unsigned long long pgprot; } pgprot_t; member 72 typedef struct { unsigned long pgprot; } pgprot_t; member 79 #define pgprot_val(x) ((x).pgprot)
|
| /linux/arch/arm/include/asm/ |
| H A D | pgtable-2level-types.h | 24 typedef struct { pteval_t pgprot; } pgprot_t; member 29 #define pgprot_val(x) ((x).pgprot)
|
| H A D | pgtable-3level-types.h | 27 typedef struct { pteval_t pgprot; } pgprot_t; member 32 #define pgprot_val(x) ((x).pgprot)
|
| /linux/arch/arm64/include/asm/ |
| H A D | pgtable-types.h | 57 typedef struct { ptdesc_t pgprot; } pgprot_t; member 58 #define pgprot_val(x) ((x).pgprot)
|
| /linux/arch/openrisc/include/asm/ |
| H A D | page.h | 46 unsigned long pgprot; member 52 #define pgprot_val(x) ((x).pgprot)
|
| H A D | pgtable.h | 277 static inline pte_t __mk_pte(void *page, pgprot_t pgprot) in __mk_pte() argument 281 pte_val(pte) = __pa(page) | pgprot_val(pgprot); in __mk_pte() 285 #define mk_pte_phys(physpage, pgprot) \ argument 289 pte_val(__pte) = (physpage) + pgprot_val(pgprot); \
|
| /linux/arch/nios2/include/asm/ |
| H A D | page.h | 58 typedef struct { unsigned long pgprot; } pgprot_t; member 62 #define pgprot_val(x) ((x).pgprot)
|
| /linux/arch/powerpc/mm/ |
| H A D | mem.c | 83 params->pgprot); in arch_create_linear_mapping() 428 .pgprot = prot, in execmem_arch_setup() 436 .pgprot = kprobes_prot, in execmem_arch_setup() 442 .pgprot = PAGE_KERNEL, in execmem_arch_setup()
|
| /linux/arch/csky/include/asm/ |
| H A D | page.h | 52 typedef struct { unsigned long pgprot; } pgprot_t; member 56 #define pgprot_val(x) ((x).pgprot)
|
| /linux/arch/powerpc/include/asm/ |
| H A D | pgtable-types.h | 70 typedef struct { unsigned long pgprot; } pgprot_t; member 71 #define pgprot_val(x) ((x).pgprot)
|
| /linux/arch/alpha/include/asm/ |
| H A D | page.h | 29 typedef struct { unsigned long pgprot; } pgprot_t; member 34 #define pgprot_val(x) ((x).pgprot)
|
| /linux/arch/hexagon/include/asm/ |
| H A D | page.h | 65 typedef struct { unsigned long pgprot; } pgprot_t; member 70 #define pgprot_val(x) ((x).pgprot)
|
| /linux/arch/arc/include/asm/ |
| H A D | page.h | 78 unsigned long pgprot; member 81 #define pgprot_val(x) ((x).pgprot)
|