/arch/x86/power/ |
D | hibernate_64.c | 37 pgprot_val(pmd_text_prot) &= __default_kernel_pte_mask; in set_up_temporary_text_mapping() 38 pgprot_val(pgtable_prot) &= __default_kernel_pte_mask; in set_up_temporary_text_mapping() 69 __pmd((jump_address_phys & PMD_MASK) | pgprot_val(pmd_text_prot))); in set_up_temporary_text_mapping() 71 __pud(__pa(pmd) | pgprot_val(pgtable_prot))); in set_up_temporary_text_mapping() 73 p4d_t new_p4d = __p4d(__pa(pud) | pgprot_val(pgtable_prot)); in set_up_temporary_text_mapping() 74 pgd_t new_pgd = __pgd(__pa(p4d) | pgprot_val(pgtable_prot)); in set_up_temporary_text_mapping() 80 pgd_t new_pgd = __pgd(__pa(pud) | pgprot_val(pgtable_prot)); in set_up_temporary_text_mapping()
|
/arch/m68k/include/asm/ |
D | fb.h | 15 pgprot_val(vma->vm_page_prot) |= SUN3_PAGE_NOCACHE; in fb_pgprotect() 18 pgprot_val(vma->vm_page_prot) |= _PAGE_NOCACHE030; in fb_pgprotect() 20 pgprot_val(vma->vm_page_prot) &= _CACHEMASK040; in fb_pgprotect() 22 pgprot_val(vma->vm_page_prot) |= _PAGE_NOCACHE_S; in fb_pgprotect()
|
D | pgtable_mm.h | 165 # define pgprot_noncached(prot) (__pgprot(pgprot_val(prot) | CF_PAGE_NOCACHE)) 174 ? (__pgprot(pgprot_val(prot) | __SUN3_PAGE_NOCACHE)) \ 176 ? (__pgprot(pgprot_val(prot) | _PAGE_NOCACHE030)) \ 178 ? (__pgprot((pgprot_val(prot) & _CACHEMASK040) | _PAGE_NOCACHE_S)) \
|
/arch/arm64/kernel/ |
D | efi.c | 51 return code_is_misaligned ? pgprot_val(PAGE_KERNEL_EXEC) in create_mapping_protection() 52 : pgprot_val(PAGE_KERNEL); in create_mapping_protection() 58 return pgprot_val(PAGE_KERNEL_RO); in create_mapping_protection() 62 return pgprot_val(PAGE_KERNEL_ROX); in create_mapping_protection() 68 return pgprot_val(PAGE_KERNEL); in create_mapping_protection() 71 return pgprot_val(PAGE_KERNEL_EXEC); in create_mapping_protection()
|
/arch/x86/mm/pat/ |
D | set_memory.c | 546 return (pgprot_val(prot) & ~val) != pgprot_val(prot); in conflicts() 563 lvltxt[warnlvl], txt, start, end, pfn, (unsigned long long)pgprot_val(prot), in check_conflict() 584 if (!(pgprot_val(prot) & _PAGE_PRESENT)) in static_protections() 615 return __pgprot(pgprot_val(prot) & ~forbidden); in static_protections() 639 if (!((pgprot_val(old) ^ pgprot_val(new)) & (_PAGE_RW | _PAGE_NX))) in verify_rwx() 642 if ((pgprot_val(new) & (_PAGE_RW | _PAGE_NX)) != _PAGE_RW) in verify_rwx() 651 (unsigned long long)pgprot_val(old), in verify_rwx() 652 (unsigned long long)pgprot_val(new), in verify_rwx() 870 if (!(pgprot_val(prot) & _PAGE_PRESENT)) in pgprot_clear_protnone_bits() 871 pgprot_val(prot) &= ~_PAGE_GLOBAL; in pgprot_clear_protnone_bits() [all …]
|
/arch/powerpc/include/asm/nohash/ |
D | pgtable.h | 105 pgprot_val(pgprot)); } in pfn_pte() 151 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify() 222 #define pgprot_noncached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 225 #define pgprot_noncached_wc(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 228 #define pgprot_cached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 232 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 239 (__pgprot(pgprot_val(prot) & ~_PAGE_CACHE_CTL))
|
/arch/mips/include/asm/ |
D | pgtable-32.h | 163 (pgprot_val(prot) & ~_PFNX_MASK); in pfn_pte() 165 (pgprot_val(prot) & ~_PFN_MASK); in pfn_pte() 178 pte.pte_high = (pfn << 6) | (pgprot_val(prot) & 0x3f); in pfn_pte() 179 pte.pte_low = pgprot_val(prot); in pfn_pte() 188 #define pfn_pte(pfn, prot) __pte(((unsigned long long)(pfn) << PFN_PTE_SHIFT) | pgprot_val(prot)) 189 #define pfn_pmd(pfn, prot) __pmd(((unsigned long long)(pfn) << PFN_PTE_SHIFT) | pgprot_val(prot))
|
/arch/m68k/kernel/ |
D | dma.c | 29 pgprot_val(prot) &= ~_PAGE_CACHE040; in pgprot_dmacoherent() 30 pgprot_val(prot) |= _PAGE_GLOBAL040 | _PAGE_NOCACHE_S; in pgprot_dmacoherent() 32 pgprot_val(prot) |= _PAGE_NOCACHE030; in pgprot_dmacoherent()
|
/arch/s390/include/asm/ |
D | io.h | 31 #define _PAGE_IOREMAP pgprot_val(PAGE_KERNEL) 34 ioremap_prot((addr), (size), pgprot_val(pgprot_writecombine(PAGE_KERNEL))) 36 ioremap_prot((addr), (size), pgprot_val(pgprot_writethrough(PAGE_KERNEL)))
|
D | pgtable.h | 539 return __pte(pte_val(pte) & ~pgprot_val(prot)); in clear_pte_bit() 544 return __pte(pte_val(pte) | pgprot_val(prot)); in set_pte_bit() 549 return __pmd(pmd_val(pmd) & ~pgprot_val(prot)); in clear_pmd_bit() 554 return __pmd(pmd_val(pmd) | pgprot_val(prot)); in set_pmd_bit() 559 return __pud(pud_val(pud) & ~pgprot_val(prot)); in clear_pud_bit() 564 return __pud(pud_val(pud) | pgprot_val(prot)); in set_pud_bit() 920 pte_flags |= pgprot_val(PAGE_KERNEL); in pte_pgprot() 922 pte_flags |= pgprot_val(PAGE_KERNEL_RO); in pte_pgprot() 1367 __pte = __pte(physpage | pgprot_val(pgprot)); in mk_pte_phys() 1570 if (pgprot_val(pgprot) == pgprot_val(PAGE_NONE)) in massage_pgprot_pmd() [all …]
|
/arch/loongarch/include/asm/ |
D | io.h | 40 ioremap_prot((offset), (size), pgprot_val(PAGE_KERNEL_SUC)) 57 pgprot_val(wc_enabled ? PAGE_KERNEL_WUC : PAGE_KERNEL_SUC)) 60 ioremap_prot((offset), (size), pgprot_val(PAGE_KERNEL))
|
D | pgtable-bits.h | 95 #define _PAGE_IOREMAP pgprot_val(PAGE_KERNEL_SUC) 101 unsigned long prot = pgprot_val(_prot); in pgprot_noncached() 114 unsigned long prot = pgprot_val(_prot); in pgprot_writecombine()
|
/arch/x86/video/ |
D | fbdev.c | 20 prot = pgprot_val(vma->vm_page_prot) & ~_PAGE_CACHE_MASK; in fb_pgprotect() 22 pgprot_val(vma->vm_page_prot) = in fb_pgprotect()
|
/arch/xtensa/include/asm/ |
D | io.h | 43 pgprot_val(pgprot_noncached(PAGE_KERNEL))); in ioremap() 54 return ioremap_prot(offset, size, pgprot_val(PAGE_KERNEL)); in ioremap_cache()
|
/arch/um/include/asm/ |
D | pgtable-2level.h | 40 #define pfn_pte(pfn, prot) __pte(pfn_to_phys(pfn) | pgprot_val(prot)) 41 #define pfn_pmd(pfn, prot) __pmd(pfn_to_phys(pfn) | pgprot_val(prot))
|
D | page.h | 48 ({ (p).pte = (phys) | pgprot_val(prot); }) 74 #define pte_set_val(p, phys, prot) (p).pte = (phys | pgprot_val(prot)) 85 #define pgprot_val(x) ((x).pgprot) macro
|
/arch/x86/mm/ |
D | iomap_32.c | 35 pgprot_val(*prot) &= __default_kernel_pte_mask; in iomap_create_wc() 61 pgprot_val(prot) &= __default_kernel_pte_mask; in __iomap_local_pfn_prot()
|
/arch/arm/include/asm/ |
D | pgtable-2level-types.h | 29 #define pgprot_val(x) ((x).pgprot) macro 47 #define pgprot_val(x) (x) macro
|
D | pgtable-3level-types.h | 32 #define pgprot_val(x) ((x).pgprot) macro 49 #define pgprot_val(x) (x) macro
|
D | pgtable.h | 92 #define _MOD_PROT(p, b) __pgprot(pgprot_val(p) | (b)) 113 __pgprot((pgprot_val(prot) & ~(mask)) | (bits)) 167 #define pfn_pte(pfn,prot) __pte(__pfn_to_phys(pfn) | pgprot_val(prot)) 218 pte_val(pte) &= ~pgprot_val(prot); in clear_pte_bit() 224 pte_val(pte) |= pgprot_val(prot); in set_pte_bit() 272 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify()
|
/arch/csky/include/asm/ |
D | pgtable.h | 40 | pgprot_val(prot)) 47 pgprot_val(pgprot)) 235 unsigned long prot = pgprot_val(_prot); in pgprot_noncached() 245 unsigned long prot = pgprot_val(_prot); in pgprot_writecombine() 260 (pgprot_val(newprot))); in pte_modify()
|
/arch/sparc/include/asm/ |
D | pgtable_32.h | 281 return __pte((page_to_pfn(page) << (PAGE_SHIFT-4)) | pgprot_val(pgprot)); in mk_pte() 286 return __pte(((page) >> 4) | pgprot_val(pgprot)); in mk_pte_phys() 291 return __pte(((page) >> 4) | (space << 28) | pgprot_val(pgprot)); in mk_pte_io() 297 pgprot_val(prot) &= ~pgprot_val(__pgprot(SRMMU_CACHE)); in pgprot_noncached() 305 pgprot_val(newprot)); in pte_modify()
|
/arch/microblaze/include/asm/ |
D | pgtable.h | 52 (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 56 (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 238 __pte(((pte_basic_t)(pfn) << PFN_PTE_SHIFT) | pgprot_val(prot)) 284 pte_val(pte) = physpage | pgprot_val(pgprot); in mk_pte_phys() 292 pgprot_val(pgprot); \ 298 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
|
/arch/powerpc/include/asm/book3s/32/ |
D | pgtable.h | 462 pgprot_val(pgprot)); in pfn_pte() 533 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify() 588 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_noncached() 595 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_noncached_wc() 602 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_cached() 609 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_cached_wthru() 616 return __pgprot(pgprot_val(prot) & ~_PAGE_CACHE_CTL); in pgprot_cached_noncoherent()
|
/arch/riscv/kernel/ |
D | hibernate.c | 189 set_pte(dst_ptep, __pte(pte_val(pte) | pgprot_val(prot))); in temp_pgtable_map_pte() 223 set_pmd(dst_pmdp, __pmd(pmd_val(pmd) | pgprot_val(prot))); in temp_pgtable_map_pmd() 262 set_pud(dst_pudp, __pud(pud_val(pud) | pgprot_val(prot))); in temp_pgtable_map_pud() 301 set_p4d(dst_p4dp, __p4d(p4d_val(p4d) | pgprot_val(prot))); in temp_pgtable_map_p4d() 328 set_pgd(dst_pgdp, __pgd(pgd_val(pgd) | pgprot_val(prot))); in temp_pgtable_mapping()
|