Home
last modified time | relevance | path

Searched refs:pgprot (Results 1 – 25 of 40) 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()
/linux/tools/testing/vma/
H A Dvma_internal.h51 typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; argument
/linux/arch/x86/mm/pat/
H A Dset_memory.c1258 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 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 …]
H A Dmemtype.h27 enum page_cache_mode pgprot2cachemode(pgprot_t pgprot);
/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/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/powerpc/mm/
H A Dmem.c84 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 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/s390/include/asm/
H A Dpgtable.h1352 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 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/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/x86/include/asm/xen/
H A Dpage.h314 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 Dexecmem.h102 pgprot_t pgprot; member
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_pages.c281 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()

12