Home
last modified time | relevance | path

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

123

/linux/mm/
H A Dexecmem.c29 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 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()
H A Dhugetlb_vmemmap.c68 pgprot_t pgprot = PAGE_KERNEL; in vmemmap_split_pmd() local
70 entry = mk_pte(head + i, pgprot); in vmemmap_split_pmd()
215 pgprot_t pgprot = PAGE_KERNEL_RO; in vmemmap_remap_pte() local
221 pgprot = PAGE_KERNEL; in vmemmap_remap_pte()
232 entry = mk_pte(walk->reuse_page, pgprot); in vmemmap_remap_pte()
259 pgprot_t pgprot = PAGE_KERNEL; in vmemmap_restore_pte() local
276 set_pte_at(&init_mm, addr, pte, mk_pte(page, pgprot)); in vmemmap_restore_pte()
/linux/arch/x86/mm/
H A Dinit.c100 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 Dpgtable.c237 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 Dpgtable_32.h259 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 Dset_memory.c1251 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/x86/include/asm/
H A Dpgtable.h710 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 …]
/linux/arch/m68k/include/asm/
H A Dpage.h26 typedef struct { unsigned long pgprot; } pgprot_t; member
41 #define pgprot_val(x) ((x).pgprot)
/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/arch/arm64/include/asm/
H A Dpgtable-types.h57 typedef struct { ptdesc_t pgprot; } pgprot_t; member
58 #define pgprot_val(x) ((x).pgprot)
/linux/arch/openrisc/include/asm/
H A Dpage.h46 unsigned long pgprot; member
52 #define pgprot_val(x) ((x).pgprot)
H A Dpgtable.h277 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 Dpage.h58 typedef struct { unsigned long pgprot; } pgprot_t; member
62 #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/alpha/include/asm/
H A Dpage.h29 typedef struct { unsigned long pgprot; } pgprot_t; member
34 #define pgprot_val(x) ((x).pgprot)
/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/arc/include/asm/
H A Dpage.h78 unsigned long pgprot; member
81 #define pgprot_val(x) ((x).pgprot)
/linux/arch/microblaze/include/asm/
H A Dpage.h57 typedef struct { unsigned long pgprot; } pgprot_t; member
62 # define pgprot_val(x) ((x).pgprot)
/linux/arch/um/include/asm/
H A Dpage.h61 typedef struct { unsigned long pgprot; } pgprot_t; member
66 #define pgprot_val(x) ((x).pgprot)
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/loongarch/include/asm/
H A Dpage.h57 typedef struct { unsigned long pgprot; } pgprot_t; member
58 #define pgprot_val(x) ((x).pgprot)

123