/Linux-v5.10/drivers/staging/android/ion/ |
D | ion_heap.c | 25 pgprot_t pgprot; in ion_heap_map_kernel() local 36 pgprot = PAGE_KERNEL; in ion_heap_map_kernel() 38 pgprot = pgprot_writecombine(PAGE_KERNEL); in ion_heap_map_kernel() 45 vaddr = vmap(pages, npages, VM_MAP, pgprot); in ion_heap_map_kernel() 83 static int ion_heap_clear_pages(struct page **pages, int num, pgprot_t pgprot) in ion_heap_clear_pages() argument 85 void *addr = vmap(pages, num, VM_MAP, pgprot); in ion_heap_clear_pages() 95 static int ion_heap_sglist_zero(struct sg_table *sgt, pgprot_t pgprot) in ion_heap_sglist_zero() argument 105 ret = ion_heap_clear_pages(pages, p, pgprot); in ion_heap_sglist_zero() 112 ret = ion_heap_clear_pages(pages, p, pgprot); in ion_heap_sglist_zero() 120 pgprot_t pgprot; in ion_heap_buffer_zero() local [all …]
|
/Linux-v5.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-v5.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-v5.10/arch/um/include/asm/ |
D | pgtable-3level.h | 94 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument 99 pte_set_val(pte, phys, pgprot); in pfn_pte() 103 static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) in pfn_pmd() argument 105 return __pmd((page_nr << PAGE_SHIFT) | pgprot_val(pgprot)); in pfn_pmd()
|
/Linux-v5.10/arch/x86/include/asm/ |
D | pgtable.h | 576 static inline pgprotval_t massage_pgprot(pgprot_t pgprot) in massage_pgprot() argument 578 pgprotval_t protval = pgprot_val(pgprot); in massage_pgprot() 586 static inline pgprotval_t check_pgprot(pgprot_t pgprot) in check_pgprot() argument 588 pgprotval_t massaged_val = massage_pgprot(pgprot); in check_pgprot() 592 WARN_ONCE(pgprot_val(pgprot) != massaged_val, in check_pgprot() 595 (u64)pgprot_val(pgprot), in check_pgprot() 596 (u64)pgprot_val(pgprot) ^ massaged_val, in check_pgprot() 603 static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot) in pfn_pte() argument 606 pfn ^= protnone_mask(pgprot_val(pgprot)); in pfn_pte() 608 return __pte(pfn | check_pgprot(pgprot)); in pfn_pte() [all …]
|
D | pgtable_types.h | 176 #define pgprot_val(x) ((x).pgprot) 284 typedef struct pgprot { pgprotval_t pgprot; } pgprot_t; argument 493 static inline pgprot_t pgprot_4k_2_large(pgprot_t pgprot) in pgprot_4k_2_large() argument 495 return __pgprot(protval_4k_2_large(pgprot_val(pgprot))); in pgprot_4k_2_large() 503 static inline pgprot_t pgprot_large_2_4k(pgprot_t pgprot) in pgprot_large_2_4k() argument 505 return __pgprot(protval_large_2_4k(pgprot_val(pgprot))); in pgprot_large_2_4k()
|
/Linux-v5.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-v5.10/arch/openrisc/include/asm/ |
D | pgtable.h | 310 static inline pte_t __mk_pte(void *page, pgprot_t pgprot) in __mk_pte() argument 314 pte_val(pte) = __pa(page) | pgprot_val(pgprot); in __mk_pte() 318 #define mk_pte(page, pgprot) __mk_pte(page_address(page), (pgprot)) argument 320 #define mk_pte_phys(physpage, pgprot) \ argument 324 pte_val(__pte) = (physpage) + pgprot_val(pgprot); \
|
D | page.h | 55 unsigned long pgprot; member 61 #define pgprot_val(x) ((x).pgprot)
|
/Linux-v5.10/arch/sparc/include/asm/ |
D | pgtable_32.h | 295 static inline pte_t mk_pte(struct page *page, pgprot_t pgprot) in mk_pte() argument 297 return __pte((page_to_pfn(page) << (PAGE_SHIFT-4)) | pgprot_val(pgprot)); in mk_pte() 300 static inline pte_t mk_pte_phys(unsigned long page, pgprot_t pgprot) in mk_pte_phys() argument 302 return __pte(((page) >> 4) | pgprot_val(pgprot)); in mk_pte_phys() 305 static inline pte_t mk_pte_io(unsigned long page, pgprot_t pgprot, int space) in mk_pte_io() argument 307 return __pte(((page) >> 4) | (space << 28) | pgprot_val(pgprot)); in mk_pte_io()
|
/Linux-v5.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-v5.10/arch/powerpc/mm/book3s64/ |
D | pgtable.c | 134 static pmd_t pmd_set_protbits(pmd_t pmd, pgprot_t pgprot) in pmd_set_protbits() argument 136 return __pmd(pmd_val(pmd) | pgprot_val(pgprot)); in pmd_set_protbits() 139 pmd_t pfn_pmd(unsigned long pfn, pgprot_t pgprot) in pfn_pmd() argument 144 return pmd_set_protbits(__pmd(pmdv), pgprot); in pfn_pmd() 147 pmd_t mk_pmd(struct page *page, pgprot_t pgprot) in mk_pmd() argument 149 return pfn_pmd(page_to_pfn(page), pgprot); in mk_pmd()
|
/Linux-v5.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-v5.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-v5.10/arch/s390/include/asm/ |
D | pgtable.h | 1196 static inline pte_t mk_pte_phys(unsigned long physpage, pgprot_t pgprot) in mk_pte_phys() argument 1200 pte_val(__pte) = physpage | pgprot_val(pgprot); in mk_pte_phys() 1206 static inline pte_t mk_pte(struct page *page, pgprot_t pgprot) in mk_pte() argument 1209 pte_t __pte = mk_pte_phys(physpage, pgprot); in mk_pte() 1331 #define pfn_pte(pfn,pgprot) mk_pte_phys(__pa((pfn) << PAGE_SHIFT),(pgprot)) argument 1401 static inline unsigned long massage_pgprot_pmd(pgprot_t pgprot) in massage_pgprot_pmd() argument 1407 if (pgprot_val(pgprot) == pgprot_val(PAGE_NONE)) in massage_pgprot_pmd() 1409 if (pgprot_val(pgprot) == pgprot_val(PAGE_RO)) in massage_pgprot_pmd() 1411 if (pgprot_val(pgprot) == pgprot_val(PAGE_RX)) in massage_pgprot_pmd() 1413 if (pgprot_val(pgprot) == pgprot_val(PAGE_RW)) in massage_pgprot_pmd() [all …]
|
/Linux-v5.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-v5.10/arch/hexagon/include/asm/ |
D | pgtable.h | 265 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument 365 #define pfn_pte(pfn, pgprot) __pte((pfn << PAGE_SHIFT) | pgprot_val(pgprot)) argument
|
/Linux-v5.10/arch/powerpc/include/asm/ |
D | pgtable-types.h | 44 typedef struct { unsigned long pgprot; } pgprot_t; member 45 #define pgprot_val(x) ((x).pgprot)
|
/Linux-v5.10/arch/csky/include/asm/ |
D | pgtable.h | 58 #define __mk_pte(page_nr, pgprot) __pte(((page_nr) << PAGE_SHIFT) | \ argument 59 pgprot_val(pgprot)) 259 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument
|
/Linux-v5.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-v5.10/arch/parisc/include/asm/ |
D | pgtable.h | 403 #define __mk_pte(addr,pgprot) \ argument 407 pte_val(__pte) = ((((addr)>>PAGE_SHIFT)<<PFN_PTE_SHIFT) + pgprot_val(pgprot)); \ 412 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument 414 static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot) in pfn_pte() argument 417 pte_val(pte) = (pfn << PFN_PTE_SHIFT) | pgprot_val(pgprot); in pfn_pte()
|
/Linux-v5.10/arch/ia64/include/asm/ |
D | pgtable.h | 250 #define pfn_pte(pfn, pgprot) \ argument 251 ({ pte_t __pte; pte_val(__pte) = ((pfn) << PAGE_SHIFT) | pgprot_val(pgprot); __pte; }) 256 #define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot)) argument 259 #define mk_pte_phys(physpage, pgprot) \ argument 260 ({ pte_t __pte; pte_val(__pte) = physpage + pgprot_val(pgprot); __pte; })
|
/Linux-v5.10/arch/arc/include/asm/ |
D | page.h | 41 unsigned long pgprot; member 46 #define pgprot_val(x) ((x).pgprot)
|