/linux-5.19.10/include/linux/ |
D | pfn_t.h | 80 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-5.19.10/arch/sh/mm/ |
D | ioremap.c | 86 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-5.19.10/arch/um/include/asm/ |
D | pgtable-3level.h | 93 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-5.19.10/arch/x86/include/asm/ |
D | pgtable.h | 550 static inline pgprotval_t massage_pgprot(pgprot_t pgprot) in massage_pgprot() argument 552 pgprotval_t protval = pgprot_val(pgprot); in massage_pgprot() 560 static inline pgprotval_t check_pgprot(pgprot_t pgprot) in check_pgprot() argument 562 pgprotval_t massaged_val = massage_pgprot(pgprot); in check_pgprot() 566 WARN_ONCE(pgprot_val(pgprot) != massaged_val, in check_pgprot() 569 (u64)pgprot_val(pgprot), in check_pgprot() 570 (u64)pgprot_val(pgprot) ^ massaged_val, in check_pgprot() 577 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument 580 pfn ^= protnone_mask(pgprot_val(pgprot)); in pfn_pte() 582 return __pte(pfn | check_pgprot(pgprot)); in pfn_pte() [all …]
|
D | pgtable_types.h | 176 #define pgprot_val(x) ((x).pgprot) 282 typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; struct 491 static inline pgprot_t pgprot_4k_2_large(pgprot_t pgprot) in pgprot_4k_2_large() argument 493 return __pgprot(protval_4k_2_large(pgprot_val(pgprot))); in pgprot_4k_2_large() 501 static inline pgprot_t pgprot_large_2_4k(pgprot_t pgprot) in pgprot_large_2_4k() argument 503 return __pgprot(protval_large_2_4k(pgprot_val(pgprot))); in pgprot_large_2_4k()
|
/linux-5.19.10/arch/parisc/mm/ |
D | ioremap.c | 33 pgprot_t pgprot; in ioremap() local 65 pgprot = __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | in ioremap() 84 phys_addr, pgprot)) { in ioremap()
|
/linux-5.19.10/arch/sparc/include/asm/ |
D | pgtable_32.h | 299 static inline pte_t mk_pte(struct page *page, pgprot_t pgprot) in mk_pte() argument 301 return __pte((page_to_pfn(page) << (PAGE_SHIFT-4)) | pgprot_val(pgprot)); in mk_pte() 304 static inline pte_t mk_pte_phys(unsigned long page, pgprot_t pgprot) in mk_pte_phys() argument 306 return __pte(((page) >> 4) | pgprot_val(pgprot)); in mk_pte_phys() 309 static inline pte_t mk_pte_io(unsigned long page, pgprot_t pgprot, int space) in mk_pte_io() argument 311 return __pte(((page) >> 4) | (space << 28) | pgprot_val(pgprot)); in mk_pte_io()
|
/linux-5.19.10/arch/openrisc/include/asm/ |
D | pgtable.h | 309 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); \
|
D | page.h | 55 unsigned long pgprot; member 61 #define pgprot_val(x) ((x).pgprot)
|
/linux-5.19.10/arch/m68k/include/asm/ |
D | sun3_pgtable.h | 103 #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; })
|
D | page.h | 32 typedef struct { unsigned long pgprot; } pgprot_t; member 47 #define pgprot_val(x) ((x).pgprot)
|
/linux-5.19.10/arch/powerpc/mm/book3s64/ |
D | pgtable.c | 150 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-5.19.10/arch/arm64/include/asm/ |
D | pgtable-types.h | 43 typedef struct { pteval_t pgprot; } pgprot_t; member 44 #define pgprot_val(x) ((x).pgprot)
|
/linux-5.19.10/arch/arm/include/asm/ |
D | pgtable-2level-types.h | 24 typedef struct { pteval_t pgprot; } pgprot_t; member 29 #define pgprot_val(x) ((x).pgprot)
|
D | pgtable-3level-types.h | 27 typedef struct { pteval_t pgprot; } pgprot_t; member 32 #define pgprot_val(x) ((x).pgprot)
|
/linux-5.19.10/arch/ia64/mm/ |
D | init.c | 201 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-5.19.10/arch/sh/include/asm/ |
D | page.h | 77 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-5.19.10/arch/hexagon/include/asm/ |
D | pgtable.h | 266 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument 366 #define pfn_pte(pfn, pgprot) __pte((pfn << PAGE_SHIFT) | pgprot_val(pgprot)) argument
|
/linux-5.19.10/arch/parisc/include/asm/ |
D | pgtable.h | 379 #define __mk_pte(addr,pgprot) \ argument 383 pte_val(__pte) = ((((addr)>>PAGE_SHIFT)<<PFN_PTE_SHIFT) + pgprot_val(pgprot)); \ 388 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument 390 static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot) in pfn_pte() argument 393 pte_val(pte) = (pfn << PFN_PTE_SHIFT) | pgprot_val(pgprot); in pfn_pte()
|
/linux-5.19.10/arch/s390/include/asm/ |
D | pgtable.h | 1276 static inline pte_t mk_pte_phys(unsigned long physpage, pgprot_t pgprot) in mk_pte_phys() argument 1280 __pte = __pte(physpage | pgprot_val(pgprot)); in mk_pte_phys() 1286 static inline pte_t mk_pte(struct page *page, pgprot_t pgprot) in mk_pte() argument 1289 pte_t __pte = mk_pte_phys(physpage, pgprot); in mk_pte() 1411 #define pfn_pte(pfn, pgprot) mk_pte_phys(((pfn) << PAGE_SHIFT), (pgprot)) argument 1477 static inline unsigned long massage_pgprot_pmd(pgprot_t pgprot) in massage_pgprot_pmd() argument 1483 if (pgprot_val(pgprot) == pgprot_val(PAGE_NONE)) in massage_pgprot_pmd() 1485 if (pgprot_val(pgprot) == pgprot_val(PAGE_RO)) in massage_pgprot_pmd() 1487 if (pgprot_val(pgprot) == pgprot_val(PAGE_RX)) in massage_pgprot_pmd() 1489 if (pgprot_val(pgprot) == pgprot_val(PAGE_RW)) in massage_pgprot_pmd() [all …]
|
/linux-5.19.10/arch/csky/include/asm/ |
D | pgtable.h | 47 #define __mk_pte(page_nr, pgprot) __pte(((page_nr) << PAGE_SHIFT) | \ argument 48 pgprot_val(pgprot)) 259 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
|
/linux-5.19.10/arch/ia64/include/asm/ |
D | pgtable.h | 244 #define pfn_pte(pfn, pgprot) \ argument 245 ({ pte_t __pte; pte_val(__pte) = ((pfn) << PAGE_SHIFT) | pgprot_val(pgprot); __pte; }) 250 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument 253 #define mk_pte_phys(physpage, pgprot) \ argument 254 ({ pte_t __pte; pte_val(__pte) = physpage + pgprot_val(pgprot); __pte; })
|
/linux-5.19.10/arch/powerpc/include/asm/ |
D | pgtable-types.h | 60 typedef struct { unsigned long pgprot; } pgprot_t; member 61 #define pgprot_val(x) ((x).pgprot)
|
/linux-5.19.10/arch/nios2/include/asm/ |
D | page.h | 63 typedef struct { unsigned long pgprot; } pgprot_t; member 67 #define pgprot_val(x) ((x).pgprot)
|
/linux-5.19.10/include/asm-generic/ |
D | page.h | 47 unsigned long pgprot; member 54 #define pgprot_val(x) ((x).pgprot)
|