Home
last modified time | relevance | path

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

123

/arch/sh/mm/
Dioremap.c86 pgprot_t pgprot, void *caller) in __ioremap_caller() argument
96 mapped = __ioremap_29bit(phys_addr, size, pgprot); in __ioremap_caller()
109 return ioremap_fixed(phys_addr, size, pgprot); in __ioremap_caller()
115 mapped = pmb_remap_caller(phys_addr, size, pgprot, caller); in __ioremap_caller()
135 if (ioremap_page_range(addr, addr + size, phys_addr, pgprot)) { in __ioremap_caller()
/arch/um/include/asm/
Dpgtable-3level.h93 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument
98 pte_set_val(pte, phys, pgprot); in pfn_pte()
102 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument
104 return __pmd((page_nr << PAGE_SHIFT) | pgprot_val(pgprot)); in pfn_pmd()
/arch/parisc/mm/
Dioremap.c33 pgprot_t pgprot; in ioremap() local
65 pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | in ioremap()
84 phys_addr, pgprot)) { in ioremap()
/arch/x86/include/asm/
Dpgtable.h548 static inline pgprotval_t massage_pgprot(pgprot_t pgprot) in massage_pgprot() argument
550 pgprotval_t protval = pgprot_val(pgprot); in massage_pgprot()
558 static inline pgprotval_t check_pgprot(pgprot_t pgprot) in check_pgprot() argument
560 pgprotval_t massaged_val = massage_pgprot(pgprot); in check_pgprot()
564 WARN_ONCE(pgprot_val(pgprot) != massaged_val, in check_pgprot()
567 (u64)pgprot_val(pgprot), in check_pgprot()
568 (u64)pgprot_val(pgprot) ^ massaged_val, in check_pgprot()
575 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument
578 pfn ^= protnone_mask(pgprot_val(pgprot)); in pfn_pte()
580 return __pte(pfn | check_pgprot(pgprot)); in pfn_pte()
[all …]
Dpgtable_types.h175 #define pgprot_val(x) ((x).pgprot)
281 typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; argument
490 static inline pgprot_t pgprot_4k_2_large(pgprot_t pgprot) in pgprot_4k_2_large() argument
492 return __pgprot(protval_4k_2_large(pgprot_val(pgprot))); in pgprot_4k_2_large()
500 static inline pgprot_t pgprot_large_2_4k(pgprot_t pgprot) in pgprot_large_2_4k() argument
502 return __pgprot(protval_large_2_4k(pgprot_val(pgprot))); in pgprot_large_2_4k()
/arch/m68k/include/asm/
Dpage.h32 typedef struct { unsigned long pgprot; } pgprot_t; member
47 #define pgprot_val(x) ((x).pgprot)
Dsun3_pgtable.h103 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
129 #define pfn_pte(pfn, pgprot) \ argument
130 ({ pte_t __pte; pte_val(__pte) = pfn | pgprot_val(pgprot); __pte; })
/arch/arm64/include/asm/
Dpgtable-types.h43 typedef struct { pteval_t pgprot; } pgprot_t; member
44 #define pgprot_val(x) ((x).pgprot)
/arch/arm/include/asm/
Dpgtable-2level-types.h24 typedef struct { pteval_t pgprot; } pgprot_t; member
29 #define pgprot_val(x) ((x).pgprot)
Dpgtable-3level-types.h27 typedef struct { pteval_t pgprot; } pgprot_t; member
32 #define pgprot_val(x) ((x).pgprot)
/arch/openrisc/include/asm/
Dpgtable.h309 static inline pte_t __mk_pte(void *page, pgprot_t pgprot) in __mk_pte() argument
313 pte_val(pte) = __pa(page) | pgprot_val(pgprot); in __mk_pte()
317 #define mk_pte(page, pgprot) __mk_pte(page_address(page), (pgprot)) argument
319 #define mk_pte_phys(physpage, pgprot) \ argument
323 pte_val(__pte) = (physpage) + pgprot_val(pgprot); \
Dpage.h55 unsigned long pgprot; member
61 #define pgprot_val(x) ((x).pgprot)
/arch/sparc/include/asm/
Dpgtable_32.h294 static inline pte_t mk_pte(struct page *page, pgprot_t pgprot) in mk_pte() argument
296 return __pte((page_to_pfn(page) << (PAGE_SHIFT-4)) | pgprot_val(pgprot)); in mk_pte()
299 static inline pte_t mk_pte_phys(unsigned long page, pgprot_t pgprot) in mk_pte_phys() argument
301 return __pte(((page) >> 4) | pgprot_val(pgprot)); in mk_pte_phys()
304 static inline pte_t mk_pte_io(unsigned long page, pgprot_t pgprot, int space) in mk_pte_io() argument
306 return __pte(((page) >> 4) | (space << 28) | pgprot_val(pgprot)); in mk_pte_io()
/arch/powerpc/include/asm/
Dpgtable-types.h44 typedef struct { unsigned long pgprot; } pgprot_t; member
45 #define pgprot_val(x) ((x).pgprot)
/arch/powerpc/mm/book3s64/
Dpgtable.c141 static pmd_t pmd_set_protbits(pmd_t pmd, pgprot_t pgprot) in pmd_set_protbits() argument
143 return __pmd(pmd_val(pmd) | pgprot_val(pgprot)); in pmd_set_protbits()
151 pmd_t pfn_pmd(unsigned long pfn, pgprot_t pgprot) in pfn_pmd() argument
157 return __pmd_mkhuge(pmd_set_protbits(__pmd(pmdv), pgprot)); in pfn_pmd()
160 pmd_t mk_pmd(struct page *page, pgprot_t pgprot) in mk_pmd() argument
162 return pfn_pmd(page_to_pfn(page), pgprot); in mk_pmd()
/arch/nios2/include/asm/
Dpage.h63 typedef struct { unsigned long pgprot; } pgprot_t; member
67 #define pgprot_val(x) ((x).pgprot)
/arch/sh/include/asm/
Dpage.h77 typedef struct { unsigned long long pgprot; } pgprot_t; member
85 typedef struct { unsigned long pgprot; } pgprot_t; member
92 #define pgprot_val(x) ((x).pgprot)
/arch/alpha/include/asm/
Dpage.h34 typedef struct { unsigned long pgprot; } pgprot_t; member
39 #define pgprot_val(x) ((x).pgprot)
/arch/ia64/mm/
Dinit.c201 put_kernel_page (struct page *page, unsigned long address, pgprot_t pgprot) in put_kernel_page() argument
226 set_pte(pte, mk_pte(page, pgprot)); in put_kernel_page()
476 if (WARN_ON_ONCE(params->pgprot.pgprot != PAGE_KERNEL.pgprot)) in arch_add_memory()
/arch/hexagon/include/asm/
Dpgtable.h261 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
361 #define pfn_pte(pfn, pgprot) __pte((pfn << PAGE_SHIFT) | pgprot_val(pgprot)) argument
Dpage.h71 typedef struct { unsigned long pgprot; } pgprot_t; member
76 #define pgprot_val(x) ((x).pgprot)
/arch/arc/include/asm/
Dpage.h78 unsigned long pgprot; member
81 #define pgprot_val(x) ((x).pgprot)
/arch/csky/include/asm/
Dpage.h63 typedef struct { unsigned long pgprot; } pgprot_t; member
67 #define pgprot_val(x) ((x).pgprot)
Dpgtable.h46 #define __mk_pte(page_nr, pgprot) __pte(((page_nr) << PAGE_SHIFT) | \ argument
47 pgprot_val(pgprot))
258 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
/arch/parisc/include/asm/
Dpgtable.h376 #define __mk_pte(addr,pgprot) \ argument
380 pte_val(__pte) = ((((addr)>>PAGE_SHIFT)<<PFN_PTE_SHIFT) + pgprot_val(pgprot)); \
385 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
387 static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot) in pfn_pte() argument
390 pte_val(pte) = (pfn << PFN_PTE_SHIFT) | pgprot_val(pgprot); in pfn_pte()

123