Home
last modified time | relevance | path

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

1234

/linux-6.1.9/include/linux/
Dpfn_t.h80 static inline pte_t pfn_t_pte(pfn_t pfn, pgprot_t pgprot) in pfn_t_pte() argument
82 return pfn_pte(pfn_t_to_pfn(pfn), pgprot); in pfn_t_pte()
87 static inline pmd_t pfn_t_pmd(pfn_t pfn, pgprot_t pgprot) in pfn_t_pmd() argument
89 return pfn_pmd(pfn_t_to_pfn(pfn), pgprot); in pfn_t_pmd()
93 static inline pud_t pfn_t_pud(pfn_t pfn, pgprot_t pgprot) in pfn_t_pud() argument
95 return pfn_pud(pfn_t_to_pfn(pfn), pgprot); in pfn_t_pud()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/arch/x86/include/asm/
Dpgtable.h551 static inline pgprotval_t massage_pgprot(pgprot_t pgprot) in massage_pgprot() argument
553 pgprotval_t protval = pgprot_val(pgprot); in massage_pgprot()
561 static inline pgprotval_t check_pgprot(pgprot_t pgprot) in check_pgprot() argument
563 pgprotval_t massaged_val = massage_pgprot(pgprot); in check_pgprot()
567 WARN_ONCE(pgprot_val(pgprot) != massaged_val, in check_pgprot()
570 (u64)pgprot_val(pgprot), in check_pgprot()
571 (u64)pgprot_val(pgprot) ^ massaged_val, in check_pgprot()
578 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument
581 pfn ^= protnone_mask(pgprot_val(pgprot)); in pfn_pte()
583 return __pte(pfn | check_pgprot(pgprot)); in pfn_pte()
[all …]
Dpgtable_types.h176 #define pgprot_val(x) ((x).pgprot)
263 typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; struct
472 static inline pgprot_t pgprot_4k_2_large(pgprot_t pgprot) in pgprot_4k_2_large() argument
474 return __pgprot(protval_4k_2_large(pgprot_val(pgprot))); in pgprot_4k_2_large()
482 static inline pgprot_t pgprot_large_2_4k(pgprot_t pgprot) in pgprot_large_2_4k() argument
484 return __pgprot(protval_large_2_4k(pgprot_val(pgprot))); in pgprot_large_2_4k()
/linux-6.1.9/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()
/linux-6.1.9/arch/openrisc/include/asm/
Dpgtable.h291 static inline pte_t __mk_pte(void *page, pgprot_t pgprot) in __mk_pte() argument
295 pte_val(pte) = __pa(page) | pgprot_val(pgprot); in __mk_pte()
299 #define mk_pte(page, pgprot) __mk_pte(page_address(page), (pgprot)) argument
301 #define mk_pte_phys(physpage, pgprot) \ argument
305 pte_val(__pte) = (physpage) + pgprot_val(pgprot); \
Dpage.h55 unsigned long pgprot; member
61 #define pgprot_val(x) ((x).pgprot)
/linux-6.1.9/arch/m68k/include/asm/
Dsun3_pgtable.h80 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
106 #define pfn_pte(pfn, pgprot) \ argument
107 ({ pte_t __pte; pte_val(__pte) = pfn | pgprot_val(pgprot); __pte; })
Dpage.h32 typedef struct { unsigned long pgprot; } pgprot_t; member
47 #define pgprot_val(x) ((x).pgprot)
/linux-6.1.9/arch/sparc/include/asm/
Dpgtable_32.h280 static inline pte_t mk_pte(struct page *page, pgprot_t pgprot) in mk_pte() argument
282 return __pte((page_to_pfn(page) << (PAGE_SHIFT-4)) | pgprot_val(pgprot)); in mk_pte()
285 static inline pte_t mk_pte_phys(unsigned long page, pgprot_t pgprot) in mk_pte_phys() argument
287 return __pte(((page) >> 4) | pgprot_val(pgprot)); in mk_pte_phys()
290 static inline pte_t mk_pte_io(unsigned long page, pgprot_t pgprot, int space) in mk_pte_io() argument
292 return __pte(((page) >> 4) | (space << 28) | pgprot_val(pgprot)); in mk_pte_io()
/linux-6.1.9/arch/powerpc/mm/book3s64/
Dpgtable.c150 static pmd_t pmd_set_protbits(pmd_t pmd, pgprot_t pgprot) in pmd_set_protbits() argument
152 return __pmd(pmd_val(pmd) | pgprot_val(pgprot)); in pmd_set_protbits()
160 pmd_t pfn_pmd(unsigned long pfn, pgprot_t pgprot) in pfn_pmd() argument
166 return __pmd_mkhuge(pmd_set_protbits(__pmd(pmdv), pgprot)); in pfn_pmd()
169 pmd_t mk_pmd(struct page *page, pgprot_t pgprot) in mk_pmd() argument
171 return pfn_pmd(page_to_pfn(page), pgprot); in mk_pmd()
/linux-6.1.9/mm/
Dhugetlb_vmemmap.c54 pgprot_t pgprot = PAGE_KERNEL; in __split_vmemmap_huge_pmd() local
56 entry = mk_pte(page + i, pgprot); in __split_vmemmap_huge_pmd()
248 pgprot_t pgprot = PAGE_KERNEL_RO; in vmemmap_remap_pte() local
249 pte_t entry = mk_pte(walk->reuse_page, pgprot); in vmemmap_remap_pte()
278 pgprot_t pgprot = PAGE_KERNEL; in vmemmap_restore_pte() local
295 set_pte_at(&init_mm, addr, pte, mk_pte(page, pgprot)); in vmemmap_restore_pte()
Dmemremap.c213 error = track_pfn_remap(NULL, &params->pgprot, PHYS_PFN(range->start), 0, in pagemap_range()
296 .pgprot = PAGE_KERNEL, in memremap_pages()
338 params.pgprot = pgprot_decrypted(params.pgprot); in memremap_pages()
343 params.pgprot = pgprot_noncached(params.pgprot); in memremap_pages()
/linux-6.1.9/arch/hexagon/include/asm/
Dpgtable.h239 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
339 #define pfn_pte(pfn, pgprot) __pte((pfn << PAGE_SHIFT) | pgprot_val(pgprot)) argument
/linux-6.1.9/arch/arm64/include/asm/
Dpgtable-types.h43 typedef struct { pteval_t pgprot; } pgprot_t; member
44 #define pgprot_val(x) ((x).pgprot)
/linux-6.1.9/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)
/linux-6.1.9/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)
/linux-6.1.9/arch/csky/include/asm/
Dpgtable.h45 #define __mk_pte(page_nr, pgprot) __pte(((page_nr) << PAGE_SHIFT) | \ argument
46 pgprot_val(pgprot))
239 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
/linux-6.1.9/arch/parisc/include/asm/
Dpgtable.h366 #define __mk_pte(addr,pgprot) \ argument
370 pte_val(__pte) = ((((addr)>>PAGE_SHIFT)<<PFN_PTE_SHIFT) + pgprot_val(pgprot)); \
375 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
377 static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot) in pfn_pte() argument
380 pte_val(pte) = (pfn << PFN_PTE_SHIFT) | pgprot_val(pgprot); in pfn_pte()
/linux-6.1.9/arch/ia64/include/asm/
Dpgtable.h226 #define pfn_pte(pfn, pgprot) \ argument
227 ({ pte_t __pte; pte_val(__pte) = ((pfn) << PAGE_SHIFT) | pgprot_val(pgprot); __pte; })
232 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
235 #define mk_pte_phys(physpage, pgprot) \ argument
236 ({ pte_t __pte; pte_val(__pte) = physpage + pgprot_val(pgprot); __pte; })
/linux-6.1.9/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()
474 if (WARN_ON_ONCE(params->pgprot.pgprot != PAGE_KERNEL.pgprot)) in arch_add_memory()
/linux-6.1.9/arch/s390/include/asm/
Dpgtable.h1273 static inline pte_t mk_pte_phys(unsigned long physpage, pgprot_t pgprot) in mk_pte_phys() argument
1277 __pte = __pte(physpage | pgprot_val(pgprot)); in mk_pte_phys()
1283 static inline pte_t mk_pte(struct page *page, pgprot_t pgprot) in mk_pte() argument
1286 pte_t __pte = mk_pte_phys(physpage, pgprot); in mk_pte()
1408 #define pfn_pte(pfn, pgprot) mk_pte_phys(((pfn) << PAGE_SHIFT), (pgprot)) argument
1474 static inline unsigned long massage_pgprot_pmd(pgprot_t pgprot) in massage_pgprot_pmd() argument
1480 if (pgprot_val(pgprot) == pgprot_val(PAGE_NONE)) in massage_pgprot_pmd()
1482 if (pgprot_val(pgprot) == pgprot_val(PAGE_RO)) in massage_pgprot_pmd()
1484 if (pgprot_val(pgprot) == pgprot_val(PAGE_RX)) in massage_pgprot_pmd()
1486 if (pgprot_val(pgprot) == pgprot_val(PAGE_RW)) in massage_pgprot_pmd()
[all …]
/linux-6.1.9/arch/nios2/include/asm/
Dpage.h63 typedef struct { unsigned long pgprot; } pgprot_t; member
67 #define pgprot_val(x) ((x).pgprot)

1234