| /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()
|
| H A D | init.c | 543 .pgprot = PAGE_KERNEL, in execmem_arch_setup() 551 .pgprot = PAGE_KERNEL_ROX, in execmem_arch_setup() 557 .pgprot = PAGE_KERNEL, in execmem_arch_setup()
|
| /linux/arch/x86/mm/ |
| H A D | init.c | 99 enum page_cache_mode pgprot2cachemode(pgprot_t pgprot) in pgprot2cachemode() argument 103 masked = pgprot_val(pgprot) & _PAGE_CACHE_MASK; in pgprot2cachemode() 1070 pgprot_t pgprot; in execmem_arch_setup() local 1079 pgprot = PAGE_KERNEL_ROX; in execmem_arch_setup() 1082 pgprot = PAGE_KERNEL; in execmem_arch_setup() 1092 .pgprot = pgprot, in execmem_arch_setup() 1099 .pgprot = PAGE_KERNEL_ROX, in execmem_arch_setup() 1106 .pgprot = pgprot, in execmem_arch_setup() 1113 .pgprot = pgprot, in execmem_arch_setup() 1120 .pgprot = PAGE_KERNEL, in execmem_arch_setup()
|
| /linux/arch/x86/mm/pat/ |
| H A D | set_memory.c | 1272 pgprot_t pgprot; in collapse_pmd_page() local 1306 pgprot = pgprot_4k_2_large(pte_pgprot(first)); in collapse_pmd_page() 1307 pgprot_val(pgprot) |= _PAGE_PSE; in collapse_pmd_page() 1308 _pmd = pfn_pmd(pfn, pgprot); in collapse_pmd_page() 1585 unsigned num_pages, pmd_t *pmd, pgprot_t pgprot) in populate_pte() argument 1591 pgprot = pgprot_clear_protnone_bits(pgprot); in populate_pte() 1594 set_pte(pte, pfn_pte(cpa->pfn, pgprot)); in populate_pte() 1604 unsigned num_pages, pud_t *pud, pgprot_t pgprot) in populate_pmd() argument 1629 populate_pte(cpa, start, pre_end, cur_pages, pmd, pgprot); in populate_pmd() 1640 pmd_pgprot = pgprot_4k_2_large(pgprot); in populate_pmd() [all …]
|
| /linux/tools/testing/vma/ |
| H A D | vma_internal.h | 51 typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; argument
|
| /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 …]
|
| /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/mm/ |
| 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()
|
| /linux/arch/powerpc/mm/ |
| H A D | mem.c | 84 params->pgprot); in arch_create_linear_mapping() 425 .pgprot = prot, in execmem_arch_setup() 433 .pgprot = kprobes_prot, in execmem_arch_setup() 439 .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/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/sparc/include/asm/ |
| H A D | page_32.h | 60 typedef struct { unsigned long pgprot; } pgprot_t; member 68 #define pgprot_val(x) ((x).pgprot)
|
| /linux/drivers/gpu/drm/panthor/ |
| H A D | panthor_device.c | 405 pgprot_t pgprot; in panthor_mmio_vm_fault() local 429 pgprot = vma->vm_page_prot; in panthor_mmio_vm_fault() 431 pgprot = pgprot_noncached(pgprot); in panthor_mmio_vm_fault() 433 ret = vmf_insert_pfn_prot(vma, vmf->address, pfn, pgprot); in panthor_mmio_vm_fault()
|
| /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/s390/mm/ |
| H A D | init.c | 282 if (WARN_ON_ONCE(pgprot_val(params->pgprot) != pgprot_val(PAGE_KERNEL))) in arch_add_memory() 326 .pgprot = PAGE_KERNEL, in execmem_arch_setup()
|