Home
last modified time | relevance | path

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

1234

/linux-6.6.21/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.6.21/arch/sh/mm/
Dioremap.c79 pgprot_t pgprot = __pgprot(prot); in ioremap_prot() local
85 mapped = __ioremap_29bit(phys_addr, size, pgprot); in ioremap_prot()
93 return ioremap_fixed(phys_addr, size, pgprot); in ioremap_prot()
99 mapped = pmb_remap_caller(phys_addr, size, pgprot, in ioremap_prot()
104 return generic_ioremap_prot(phys_addr, size, pgprot); in ioremap_prot()
/linux-6.6.21/arch/um/include/asm/
Dpgtable-3level.h85 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument
90 pte_set_val(pte, phys, pgprot); in pfn_pte()
94 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument
96 return __pmd((page_nr << PAGE_SHIFT) | pgprot_val(pgprot)); in pfn_pmd()
/linux-6.6.21/arch/powerpc/mm/book3s64/
Dpgtable.c215 static pmd_t pmd_set_protbits(pmd_t pmd, pgprot_t pgprot) in pmd_set_protbits() argument
217 return __pmd(pmd_val(pmd) | pgprot_val(pgprot)); in pmd_set_protbits()
220 static pud_t pud_set_protbits(pud_t pud, pgprot_t pgprot) in pud_set_protbits() argument
222 return __pud(pud_val(pud) | pgprot_val(pgprot)); in pud_set_protbits()
230 pmd_t pfn_pmd(unsigned long pfn, pgprot_t pgprot) in pfn_pmd() argument
236 return __pmd_mkhuge(pmd_set_protbits(__pmd(pmdv), pgprot)); in pfn_pmd()
239 pud_t pfn_pud(unsigned long pfn, pgprot_t pgprot) in pfn_pud() argument
245 return __pud_mkhuge(pud_set_protbits(__pud(pudv), pgprot)); in pfn_pud()
248 pmd_t mk_pmd(struct page *page, pgprot_t pgprot) in mk_pmd() argument
250 return pfn_pmd(page_to_pfn(page), pgprot); in mk_pmd()
/linux-6.6.21/arch/x86/include/asm/
Dpgtable.h736 static inline pgprotval_t massage_pgprot(pgprot_t pgprot) in massage_pgprot() argument
738 pgprotval_t protval = pgprot_val(pgprot); in massage_pgprot()
746 static inline pgprotval_t check_pgprot(pgprot_t pgprot) in check_pgprot() argument
748 pgprotval_t massaged_val = massage_pgprot(pgprot); in check_pgprot()
752 WARN_ONCE(pgprot_val(pgprot) != massaged_val, in check_pgprot()
755 (u64)pgprot_val(pgprot), in check_pgprot()
756 (u64)pgprot_val(pgprot) ^ massaged_val, in check_pgprot()
763 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument
766 pfn ^= protnone_mask(pgprot_val(pgprot)); in pfn_pte()
768 return __pte(pfn | check_pgprot(pgprot)); in pfn_pte()
[all …]
Dpgtable_types.h197 #define pgprot_val(x) ((x).pgprot)
292 typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; struct
499 static inline pgprot_t pgprot_4k_2_large(pgprot_t pgprot) in pgprot_4k_2_large() argument
501 return __pgprot(protval_4k_2_large(pgprot_val(pgprot))); in pgprot_4k_2_large()
509 static inline pgprot_t pgprot_large_2_4k(pgprot_t pgprot) in pgprot_large_2_4k() argument
511 return __pgprot(protval_large_2_4k(pgprot_val(pgprot))); in pgprot_large_2_4k()
/linux-6.6.21/arch/sparc/include/asm/
Dpgtable_32.h279 static inline pte_t mk_pte(struct page *page, pgprot_t pgprot) in mk_pte() argument
281 return __pte((page_to_pfn(page) << (PAGE_SHIFT-4)) | pgprot_val(pgprot)); in mk_pte()
284 static inline pte_t mk_pte_phys(unsigned long page, pgprot_t pgprot) in mk_pte_phys() argument
286 return __pte(((page) >> 4) | pgprot_val(pgprot)); in mk_pte_phys()
289 static inline pte_t mk_pte_io(unsigned long page, pgprot_t pgprot, int space) in mk_pte_io() argument
291 return __pte(((page) >> 4) | (space << 28) | pgprot_val(pgprot)); in mk_pte_io()
/linux-6.6.21/arch/openrisc/include/asm/
Dpgtable.h294 static inline pte_t __mk_pte(void *page, pgprot_t pgprot) in __mk_pte() argument
298 pte_val(pte) = __pa(page) | pgprot_val(pgprot); in __mk_pte()
302 #define mk_pte(page, pgprot) __mk_pte(page_address(page), (pgprot)) argument
304 #define mk_pte_phys(physpage, pgprot) \ argument
308 pte_val(__pte) = (physpage) + pgprot_val(pgprot); \
Dpage.h55 unsigned long pgprot; member
61 #define pgprot_val(x) ((x).pgprot)
/linux-6.6.21/mm/
Dhugetlb_vmemmap.c62 pgprot_t pgprot = PAGE_KERNEL; in split_vmemmap_huge_pmd() local
64 entry = mk_pte(head + i, pgprot); in split_vmemmap_huge_pmd()
235 pgprot_t pgprot = PAGE_KERNEL_RO; in vmemmap_remap_pte() local
241 pgprot = PAGE_KERNEL; in vmemmap_remap_pte()
252 entry = mk_pte(walk->reuse_page, pgprot); in vmemmap_remap_pte()
279 pgprot_t pgprot = PAGE_KERNEL; in vmemmap_restore_pte() local
296 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.6.21/arch/m68k/include/asm/
Dsun3_pgtable.h83 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
110 #define pfn_pte(pfn, pgprot) \ argument
111 ({ 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.6.21/arch/hexagon/include/asm/
Dpgtable.h242 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
343 #define pfn_pte(pfn, pgprot) __pte((pfn << PAGE_SHIFT) | pgprot_val(pgprot)) argument
/linux-6.6.21/arch/x86/mm/pat/
Dset_memory.c1320 unsigned num_pages, pmd_t *pmd, pgprot_t pgprot) in populate_pte() argument
1326 pgprot = pgprot_clear_protnone_bits(pgprot); in populate_pte()
1329 set_pte(pte, pfn_pte(cpa->pfn, pgprot)); in populate_pte()
1339 unsigned num_pages, pud_t *pud, pgprot_t pgprot) in populate_pmd() argument
1364 populate_pte(cpa, start, pre_end, cur_pages, pmd, pgprot); in populate_pmd()
1375 pmd_pgprot = pgprot_4k_2_large(pgprot); in populate_pmd()
1406 pmd, pgprot); in populate_pmd()
1412 pgprot_t pgprot) in populate_pud() argument
1443 pud, pgprot); in populate_pud()
1455 pud_pgprot = pgprot_4k_2_large(pgprot); in populate_pud()
[all …]
/linux-6.6.21/arch/arm64/include/asm/
Dpgtable-types.h43 typedef struct { pteval_t pgprot; } pgprot_t; member
44 #define pgprot_val(x) ((x).pgprot)
/linux-6.6.21/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.6.21/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.6.21/arch/csky/include/asm/
Dpgtable.h46 #define __mk_pte(page_nr, pgprot) __pte(((page_nr) << PAGE_SHIFT) | \ argument
47 pgprot_val(pgprot))
256 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
/linux-6.6.21/arch/ia64/include/asm/
Dpgtable.h214 #define pfn_pte(pfn, pgprot) \ argument
215 ({ pte_t __pte; pte_val(__pte) = ((pfn) << PAGE_SHIFT) | pgprot_val(pgprot); __pte; })
220 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
223 #define mk_pte_phys(physpage, pgprot) \ argument
224 ({ pte_t __pte; pte_val(__pte) = physpage + pgprot_val(pgprot); __pte; })
/linux-6.6.21/arch/parisc/include/asm/
Dpgtable.h345 #define __mk_pte(addr,pgprot) \ argument
349 pte_val(__pte) = ((((addr)>>PAGE_SHIFT)<<PFN_PTE_SHIFT) + pgprot_val(pgprot)); \
354 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
356 static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot) in pfn_pte() argument
359 pte_val(pte) = (pfn << PFN_PTE_SHIFT) | pgprot_val(pgprot); in pfn_pte()
/linux-6.6.21/arch/ia64/mm/
Dinit.c215 put_kernel_page (struct page *page, unsigned long address, pgprot_t pgprot) in put_kernel_page() argument
240 set_pte(pte, mk_pte(page, pgprot)); in put_kernel_page()
488 if (WARN_ON_ONCE(params->pgprot.pgprot != PAGE_KERNEL.pgprot)) in arch_add_memory()
/linux-6.6.21/arch/s390/include/asm/
Dpgtable.h1351 static inline pte_t mk_pte_phys(unsigned long physpage, pgprot_t pgprot) in mk_pte_phys() argument
1355 __pte = __pte(physpage | pgprot_val(pgprot)); in mk_pte_phys()
1361 static inline pte_t mk_pte(struct page *page, pgprot_t pgprot) in mk_pte() argument
1364 pte_t __pte = mk_pte_phys(physpage, pgprot); in mk_pte()
1486 #define pfn_pte(pfn, pgprot) mk_pte_phys(((pfn) << PAGE_SHIFT), (pgprot)) argument
1552 static inline unsigned long massage_pgprot_pmd(pgprot_t pgprot) in massage_pgprot_pmd() argument
1558 if (pgprot_val(pgprot) == pgprot_val(PAGE_NONE)) in massage_pgprot_pmd()
1560 if (pgprot_val(pgprot) == pgprot_val(PAGE_RO)) in massage_pgprot_pmd()
1562 if (pgprot_val(pgprot) == pgprot_val(PAGE_RX)) in massage_pgprot_pmd()
1564 if (pgprot_val(pgprot) == pgprot_val(PAGE_RW)) in massage_pgprot_pmd()
[all …]
/linux-6.6.21/arch/nios2/include/asm/
Dpage.h63 typedef struct { unsigned long pgprot; } pgprot_t; member
67 #define pgprot_val(x) ((x).pgprot)

1234