Home
last modified time | relevance | path

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

123

/arch/sh/mm/
Dioremap.c39 pgprot_t pgprot, void *caller) in __ioremap_caller() argument
54 return ioremap_fixed(phys_addr, size, pgprot); in __ioremap_caller()
60 mapped = pmb_remap_caller(phys_addr, size, pgprot, caller); in __ioremap_caller()
80 if (ioremap_page_range(addr, addr + size, phys_addr, pgprot)) { in __ioremap_caller()
/arch/um/include/asm/
Dpgtable-3level.h102 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument
107 pte_set_val(pte, phys, pgprot); in pfn_pte()
111 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument
113 return __pmd((page_nr << PAGE_SHIFT) | pgprot_val(pgprot)); in pfn_pmd()
/arch/parisc/mm/
Dioremap.c33 pgprot_t pgprot; in __ioremap() local
67 pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | in __ioremap()
86 phys_addr, pgprot)) { in __ioremap()
/arch/arm64/include/asm/
Dpgtable-types.h42 typedef struct { pteval_t pgprot; } pgprot_t; member
43 #define pgprot_val(x) ((x).pgprot)
/arch/sh/include/asm/
Dpage.h79 typedef struct { unsigned long long pgprot; } pgprot_t; member
87 typedef struct { unsigned long pgprot; } pgprot_t; member
93 typedef struct { unsigned long long pgprot; } pgprot_t; member
100 #define pgprot_val(x) ((x).pgprot)
Dpgtable_64.h203 #define pgprot_noncached(x) __pgprot(((x).pgprot & ~(_PAGE_CACHABLE)) | _PAGE_DEVICE)
276 #define mk_pte(page,pgprot) \ argument
281 __MEMORY_START | pgprot_val((pgprot)))); \
289 #define mk_pte_phys(physpage, pgprot) \ argument
290 ({ pte_t __pte; set_pte(&__pte, __pte(physpage | pgprot_val(pgprot))); __pte; })
/arch/x86/include/asm/
Dpgtable.h539 static inline pgprotval_t massage_pgprot(pgprot_t pgprot) in massage_pgprot() argument
541 pgprotval_t protval = pgprot_val(pgprot); in massage_pgprot()
549 static inline pgprotval_t check_pgprot(pgprot_t pgprot) in check_pgprot() argument
551 pgprotval_t massaged_val = massage_pgprot(pgprot); in check_pgprot()
555 WARN_ONCE(pgprot_val(pgprot) != massaged_val, in check_pgprot()
558 (u64)pgprot_val(pgprot), in check_pgprot()
559 (u64)pgprot_val(pgprot) ^ massaged_val, in check_pgprot()
566 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument
569 pfn ^= protnone_mask(pgprot_val(pgprot)); in pfn_pte()
571 return __pte(pfn | check_pgprot(pgprot)); in pfn_pte()
[all …]
Dpgtable_types.h266 typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; member
453 #define pgprot_val(x) ((x).pgprot)
478 static inline enum page_cache_mode pgprot2cachemode(pgprot_t pgprot) in pgprot2cachemode() argument
482 masked = pgprot_val(pgprot) & _PAGE_CACHE_MASK; in pgprot2cachemode()
487 static inline pgprot_t pgprot_4k_2_large(pgprot_t pgprot) in pgprot_4k_2_large() argument
489 pgprotval_t val = pgprot_val(pgprot); in pgprot_4k_2_large()
496 static inline pgprot_t pgprot_large_2_4k(pgprot_t pgprot) in pgprot_large_2_4k() argument
498 pgprotval_t val = pgprot_val(pgprot); in pgprot_large_2_4k()
/arch/m68k/include/asm/
Dpage.h27 typedef struct { unsigned long pgprot; } pgprot_t; member
33 #define pgprot_val(x) ((x).pgprot)
Dsun3_pgtable.h103 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
131 #define pfn_pte(pfn, pgprot) \ argument
132 ({ pte_t __pte; pte_val(__pte) = pfn | pgprot_val(pgprot); __pte; })
/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/unicore32/include/asm/
Dpage.h36 typedef struct { unsigned long pgprot; } pgprot_t; member
40 #define pgprot_val(x) ((x).pgprot)
/arch/powerpc/mm/book3s64/
Dpgtable.c123 static pmd_t pmd_set_protbits(pmd_t pmd, pgprot_t pgprot) in pmd_set_protbits() argument
125 return __pmd(pmd_val(pmd) | pgprot_val(pgprot)); in pmd_set_protbits()
128 pmd_t pfn_pmd(unsigned long pfn, pgprot_t pgprot) in pfn_pmd() argument
133 return pmd_set_protbits(__pmd(pmdv), pgprot); in pfn_pmd()
136 pmd_t mk_pmd(struct page *page, pgprot_t pgprot) in mk_pmd() argument
138 return pfn_pmd(page_to_pfn(page), pgprot); in mk_pmd()
/arch/sparc/include/asm/
Dpgtable_32.h284 static inline pte_t mk_pte(struct page *page, pgprot_t pgprot) in mk_pte() argument
286 return __pte((page_to_pfn(page) << (PAGE_SHIFT-4)) | pgprot_val(pgprot)); in mk_pte()
289 static inline pte_t mk_pte_phys(unsigned long page, pgprot_t pgprot) in mk_pte_phys() argument
291 return __pte(((page) >> 4) | pgprot_val(pgprot)); in mk_pte_phys()
294 static inline pte_t mk_pte_io(unsigned long page, pgprot_t pgprot, int space) in mk_pte_io() argument
296 return __pte(((page) >> 4) | (space << 28) | pgprot_val(pgprot)); in mk_pte_io()
/arch/openrisc/include/asm/
Dpgtable.h313 static inline pte_t __mk_pte(void *page, pgprot_t pgprot) in __mk_pte() argument
317 pte_val(pte) = __pa(page) | pgprot_val(pgprot); in __mk_pte()
321 #define mk_pte(page, pgprot) __mk_pte(page_address(page), (pgprot)) argument
323 #define mk_pte_phys(physpage, pgprot) \ argument
327 pte_val(__pte) = (physpage) + pgprot_val(pgprot); \
Dpage.h55 unsigned long pgprot; member
61 #define pgprot_val(x) ((x).pgprot)
/arch/powerpc/include/asm/
Dpgtable-types.h44 typedef struct { unsigned long pgprot; } pgprot_t; member
45 #define pgprot_val(x) ((x).pgprot)
Dpgtable.h48 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
/arch/nios2/include/asm/
Dpage.h63 typedef struct { unsigned long pgprot; } pgprot_t; member
67 #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)
Dmmzone.h79 #define mk_pte(page, pgprot) \ argument
85 pte_val(pte) = pfn | pgprot_val(pgprot); \
/arch/arc/include/asm/
Dpage.h54 unsigned long pgprot; member
59 #define pgprot_val(x) ((x).pgprot)
/arch/hexagon/include/asm/
Dpage.h71 typedef struct { unsigned long pgprot; } pgprot_t; member
76 #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)

123