Home
last modified time | relevance | path

Searched refs:pgprot (Results 1 – 25 of 45) sorted by relevance

12

/linux/arch/arm64/mm/
H A Dioremap.c18 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 Dinit.c543 .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 Dinit.c99 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 Dset_memory.c1272 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 Dvma_internal.h51 typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; argument
/linux/arch/x86/include/asm/
H A Dpgtable.h703 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 Dpage.h26 typedef struct { unsigned long pgprot; } pgprot_t; member
41 #define pgprot_val(x) ((x).pgprot)
H A Dsun3_pgtable.h104 #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 Dpage.h64 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 Dpgtable-2level-types.h24 typedef struct { pteval_t pgprot; } pgprot_t; member
29 #define pgprot_val(x) ((x).pgprot)
H A Dpgtable-3level-types.h27 typedef struct { pteval_t pgprot; } pgprot_t; member
32 #define pgprot_val(x) ((x).pgprot)
/linux/mm/
H A Dmemremap.c189 &params->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 Dmem.c84 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 Dpage.h52 typedef struct { unsigned long pgprot; } pgprot_t; member
56 #define pgprot_val(x) ((x).pgprot)
/linux/arch/powerpc/include/asm/
H A Dpgtable-types.h70 typedef struct { unsigned long pgprot; } pgprot_t; member
71 #define pgprot_val(x) ((x).pgprot)
H A Dpgtable-be-types.h67 typedef struct { unsigned long pgprot; } pgprot_t; member
68 #define pgprot_val(x) ((x).pgprot)
/linux/arch/loongarch/include/asm/
H A Dpage.h52 typedef struct { unsigned long pgprot; } pgprot_t; member
53 #define pgprot_val(x) ((x).pgprot)
/linux/arch/um/include/asm/
H A Dpgtable-4level.h105 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 Dpage_32.h60 typedef struct { unsigned long pgprot; } pgprot_t; member
68 #define pgprot_val(x) ((x).pgprot)
/linux/drivers/gpu/drm/panthor/
H A Dpanthor_device.c405 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 Dioremap.c28 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 Dpage.h66 unsigned long pgprot; member
73 #define pgprot_val(x) ((x).pgprot)
/linux/arch/parisc/include/asm/
H A Dpgtable.h330 #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 Dexecmem.c14 .pgprot = PAGE_KERNEL, in execmem_arch_setup()
/linux/arch/s390/mm/
H A Dinit.c282 if (WARN_ON_ONCE(pgprot_val(params->pgprot) != pgprot_val(PAGE_KERNEL))) in arch_add_memory()
326 .pgprot = PAGE_KERNEL, in execmem_arch_setup()

12