| /linux/arch/arm64/mm/ |
| H A D | ioremap.c | 18 pgprot_t pgprot) in __ioremap_prot() argument 36 WARN_ON(ioremap_prot_hook(phys_addr, size, &pgprot))) { in __ioremap_prot() 40 return generic_ioremap_prot(phys_addr, size, pgprot); in __ioremap_prot()
|
| /linux/tools/testing/vma/ |
| H A D | vma_internal.h | 51 typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; argument
|
| /linux/arch/x86/mm/pat/ |
| H A D | set_memory.c | 1258 pgprot_t pgprot; in collapse_pmd_page() local 1292 pgprot = pgprot_4k_2_large(pte_pgprot(first)); in collapse_pmd_page() 1293 pgprot_val(pgprot) |= _PAGE_PSE; in collapse_pmd_page() 1294 _pmd = pfn_pmd(pfn, pgprot); in collapse_pmd_page() 1573 unsigned num_pages, pmd_t *pmd, pgprot_t pgprot) in populate_pte() argument 1579 pgprot = pgprot_clear_protnone_bits(pgprot); in populate_pte() 1582 set_pte(pte, pfn_pte(cpa->pfn, pgprot)); in populate_pte() 1592 unsigned num_pages, pud_t *pud, pgprot_t pgprot) in populate_pmd() argument 1617 populate_pte(cpa, start, pre_end, cur_pages, pmd, pgprot); in populate_pmd() 1628 pmd_pgprot = pgprot_4k_2_large(pgprot); in populate_pmd() [all …]
|
| /linux/arch/x86/include/asm/ |
| H A D | pgtable.h | 703 static inline pgprotval_t massage_pgprot(pgprot_t pgprot) in massage_pgprot() argument 705 pgprotval_t protval = pgprot_val(pgprot); in massage_pgprot() 713 static inline pgprotval_t check_pgprot(pgprot_t pgprot) in check_pgprot() argument 715 pgprotval_t massaged_val = massage_pgprot(pgprot); in check_pgprot() 719 WARN_ONCE(pgprot_val(pgprot) != massaged_val, in check_pgprot() 722 (u64)pgprot_val(pgprot), in check_pgprot() 723 (u64)pgprot_val(pgprot) ^ massaged_val, in check_pgprot() 730 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument 734 WARN_ON_ONCE((pgprot_val(pgprot) & (_PAGE_DIRTY | _PAGE_RW)) == in pfn_pte() 736 pfn ^= protnone_mask(pgprot_val(pgprot)); in pfn_pte() [all …]
|
| H A D | memtype.h | 27 enum page_cache_mode pgprot2cachemode(pgprot_t pgprot);
|
| /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)
|
| H A D | sun3_pgtable.h | 104 #define pfn_pte(pfn, pgprot) \ argument 105 ({ pte_t __pte; pte_val(__pte) = pfn | pgprot_val(pgprot); __pte; })
|
| /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/powerpc/mm/ |
| H A D | mem.c | 84 params->pgprot); in arch_create_linear_mapping() 430 .pgprot = prot, in execmem_arch_setup() 438 .pgprot = kprobes_prot, in execmem_arch_setup() 444 .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)
|
| H A D | pgtable-be-types.h | 67 typedef struct { unsigned long pgprot; } pgprot_t; member 68 #define pgprot_val(x) ((x).pgprot)
|
| /linux/arch/loongarch/include/asm/ |
| H A D | page.h | 52 typedef struct { unsigned long pgprot; } pgprot_t; member 53 #define pgprot_val(x) ((x).pgprot)
|
| /linux/arch/s390/include/asm/ |
| H A D | pgtable.h | 1352 static inline pte_t mk_pte_phys(unsigned long physpage, pgprot_t pgprot) in mk_pte_phys() argument 1356 __pte = __pte(physpage | pgprot_val(pgprot)); in mk_pte_phys() 1476 #define pfn_pte(pfn, pgprot) mk_pte_phys(((pfn) << PAGE_SHIFT), (pgprot)) argument 1542 static inline unsigned long massage_pgprot_pmd(pgprot_t pgprot) in massage_pgprot_pmd() argument 1548 if (pgprot_val(pgprot) == pgprot_val(PAGE_NONE)) in massage_pgprot_pmd() 1550 if (pgprot_val(pgprot) == pgprot_val(PAGE_RO)) in massage_pgprot_pmd() 1552 if (pgprot_val(pgprot) == pgprot_val(PAGE_RX)) in massage_pgprot_pmd() 1554 if (pgprot_val(pgprot) == pgprot_val(PAGE_RW)) in massage_pgprot_pmd() 1591 static inline pmd_t mk_pmd_phys(unsigned long physpage, pgprot_t pgprot) in mk_pmd_phys() argument 1593 return __pmd(physpage + massage_pgprot_pmd(pgprot)); in mk_pmd_phys() [all …]
|
| /linux/arch/um/include/asm/ |
| H A D | pgtable-4level.h | 105 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument 107 return __pmd((page_nr << PAGE_SHIFT) | pgprot_val(pgprot)); in pfn_pmd()
|
| /linux/arch/nios2/mm/ |
| H A D | ioremap.c | 28 pgprot_t pgprot = __pgprot(_PAGE_GLOBAL | _PAGE_PRESENT | _PAGE_READ in remap_area_pte() local 43 set_pte(pte, pfn_pte(pfn, pgprot)); in remap_area_pte()
|
| /linux/arch/riscv/include/asm/ |
| H A D | page.h | 66 unsigned long pgprot; member 73 #define pgprot_val(x) ((x).pgprot)
|
| /linux/arch/parisc/include/asm/ |
| H A D | pgtable.h | 330 #define __mk_pte(addr,pgprot) \ argument 334 pte_val(__pte) = ((((addr)>>PAGE_SHIFT)<<PFN_PTE_SHIFT) + pgprot_val(pgprot)); \ 339 static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot) in pfn_pte() argument 342 pte_val(pte) = (pfn << PFN_PTE_SHIFT) | pgprot_val(pgprot); in pfn_pte()
|
| /linux/arch/sparc/mm/ |
| H A D | execmem.c | 14 .pgprot = PAGE_KERNEL, in execmem_arch_setup()
|
| /linux/arch/x86/include/asm/xen/ |
| H A D | page.h | 314 static inline pte_t mfn_pte(unsigned long page_nr, pgprot_t pgprot) in mfn_pte() argument 319 massage_pgprot(pgprot); in mfn_pte()
|
| /linux/include/linux/ |
| H A D | execmem.h | 102 pgprot_t pgprot; member
|
| /linux/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_pages.c | 281 pgprot_t pgprot; in i915_gem_object_map_page() local 308 pgprot = PAGE_KERNEL; in i915_gem_object_map_page() 311 pgprot = pgprot_writecombine(PAGE_KERNEL_IO); in i915_gem_object_map_page() 325 vaddr = vmap(pages, n_pages, 0, pgprot); in i915_gem_object_map_page()
|