/linux/arch/x86/power/ |
A 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()
|
/linux/arch/m68k/include/asm/ |
A D | fb.h | 15 pgprot_val(vma->vm_page_prot) |= SUN3_PAGE_NOCACHE; in fb_pgprotect() 22 pgprot_val(vma->vm_page_prot) |= _PAGE_NOCACHE030; in fb_pgprotect() 24 pgprot_val(vma->vm_page_prot) &= _CACHEMASK040; in fb_pgprotect() 26 pgprot_val(vma->vm_page_prot) |= _PAGE_NOCACHE_S; in fb_pgprotect()
|
A D | pgtable_mm.h | 158 # define pgprot_noncached(prot) (__pgprot(pgprot_val(prot) | CF_PAGE_NOCACHE)) 167 ? (__pgprot(pgprot_val(prot) | __SUN3_PAGE_NOCACHE)) \ 169 ? (__pgprot(pgprot_val(prot) | _PAGE_NOCACHE030)) \ 171 ? (__pgprot((pgprot_val(prot) & _CACHEMASK040) | _PAGE_NOCACHE_S)) \
|
/linux/arch/mips/include/asm/ |
A D | pgtable-32.h | 164 (pgprot_val(prot) & ~_PFNX_MASK); in pfn_pte() 166 (pgprot_val(prot) & ~_PFN_MASK); in pfn_pte() 179 pte.pte_high = (pfn << 6) | (pgprot_val(prot) & 0x3f); in pfn_pte() 180 pte.pte_low = pgprot_val(prot); in pfn_pte() 190 #define pfn_pte(pfn, prot) __pte(((pfn) << (PAGE_SHIFT + 2)) | pgprot_val(prot)) 193 #define pfn_pte(pfn, prot) __pte(((unsigned long long)(pfn) << _PFN_SHIFT) | pgprot_val(prot)) 194 #define pfn_pmd(pfn, prot) __pmd(((unsigned long long)(pfn) << _PFN_SHIFT) | pgprot_val(prot))
|
A D | pgtable.h | 474 unsigned long prot = pgprot_val(_prot); 485 unsigned long prot = pgprot_val(_prot); 529 pte.pte_low |= pgprot_val(newprot) & ~_PFNX_MASK; 530 pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK); 538 pte.pte_low |= pgprot_val(newprot); 539 pte.pte_high |= pgprot_val(newprot) & ~(_PFN_MASK | _CACHE_MASK); 546 pte_val(pte) |= pgprot_val(newprot) & ~_PAGE_CHG_MASK; 695 (pgprot_val(newprot) & ~_PAGE_CHG_MASK);
|
/linux/arch/x86/mm/pat/ |
A D | set_memory.c | 510 return (pgprot_val(prot) & ~val) != pgprot_val(prot); in conflicts() 828 pgprot_val(req_prot) &= ~pgprot_val(cpa->mask_clr); in __should_split_large_page() 829 pgprot_val(req_prot) |= pgprot_val(cpa->mask_set); in __should_split_large_page() 863 if (WARN_ON_ONCE(pgprot_val(chk_prot) != pgprot_val(old_prot))) { in __should_split_large_page() 881 if (pgprot_val(req_prot) == pgprot_val(old_prot)) { in __should_split_large_page() 908 if (pgprot_val(req_prot) != pgprot_val(new_prot)) in __should_split_large_page() 951 if (pgprot_val(prot) == pgprot_val(ref_prot)) in split_set_pte() 1456 pgprot_val(pgprot) &= ~pgprot_val(cpa->mask_clr); in populate_pgd() 1457 pgprot_val(pgprot) |= pgprot_val(cpa->mask_set); in populate_pgd() 1542 pgprot_val(new_prot) &= ~pgprot_val(cpa->mask_clr); in __change_page_attr() [all …]
|
/linux/arch/arm64/kernel/ |
A D | efi.c | 35 return pgprot_val(PAGE_KERNEL_EXEC); in create_mapping_protection() 40 return pgprot_val(PAGE_KERNEL_RO); in create_mapping_protection() 44 return pgprot_val(PAGE_KERNEL_ROX); in create_mapping_protection() 50 return pgprot_val(PAGE_KERNEL); in create_mapping_protection() 53 return pgprot_val(PAGE_KERNEL_EXEC); in create_mapping_protection()
|
/linux/arch/powerpc/include/asm/nohash/ |
A D | pgtable.h | 123 pgprot_val(pgprot)); } in pfn_pte() 171 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify() 233 #define pgprot_noncached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 236 #define pgprot_noncached_wc(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 239 #define pgprot_cached(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 243 #define pgprot_cached_wthru(prot) (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 250 (__pgprot(pgprot_val(prot) & ~_PAGE_CACHE_CTL))
|
/linux/arch/m68k/kernel/ |
A 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()
|
/linux/arch/sparc/include/asm/ |
A D | pgtable_32.h | 296 return __pte((page_to_pfn(page) << (PAGE_SHIFT-4)) | pgprot_val(pgprot)); in mk_pte() 301 return __pte(((page) >> 4) | pgprot_val(pgprot)); in mk_pte_phys() 306 return __pte(((page) >> 4) | (space << 28) | pgprot_val(pgprot)); in mk_pte_io() 312 pgprot_val(prot) &= ~pgprot_val(__pgprot(SRMMU_CACHE)); in pgprot_noncached() 320 pgprot_val(newprot)); in pte_modify()
|
/linux/arch/arm/include/asm/ |
A D | pgtable.h | 83 #define _MOD_PROT(p, b) __pgprot(pgprot_val(p) | (b)) 104 __pgprot((pgprot_val(prot) & ~(mask)) | (bits)) 182 #define pfn_pte(pfn,prot) __pte(__pfn_to_phys(pfn) | pgprot_val(prot)) 230 pte_val(pte) &= ~pgprot_val(prot); in clear_pte_bit() 236 pte_val(pte) |= pgprot_val(prot); in set_pte_bit() 284 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify()
|
A D | pgtable-2level-types.h | 29 #define pgprot_val(x) ((x).pgprot) macro 47 #define pgprot_val(x) (x) macro
|
/linux/arch/microblaze/include/asm/ |
A D | pgtable.h | 52 (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 56 (__pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | \ 252 __pte(((pte_basic_t)(pfn) << PFN_SHIFT_OFFSET) | pgprot_val(prot)) 298 pte_val(pte) = physpage | pgprot_val(pgprot); in mk_pte_phys() 306 pgprot_val(pgprot); \ 312 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
|
/linux/arch/powerpc/include/asm/book3s/32/ |
A D | pgtable.h | 447 pgprot_val(pgprot)); in pfn_pte() 523 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify() 593 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_noncached() 600 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_noncached_wc() 607 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_cached() 614 return __pgprot((pgprot_val(prot) & ~_PAGE_CACHE_CTL) | in pgprot_cached_wthru() 621 return __pgprot(pgprot_val(prot) & ~_PAGE_CACHE_CTL); in pgprot_cached_noncoherent()
|
/linux/arch/csky/include/asm/ |
A D | pgtable.h | 40 | pgprot_val(prot)) 47 pgprot_val(pgprot)) 237 unsigned long prot = pgprot_val(_prot); in pgprot_noncached() 247 unsigned long prot = pgprot_val(_prot); in pgprot_writecombine() 262 (pgprot_val(newprot))); in pte_modify()
|
/linux/arch/arm64/include/asm/ |
A D | pgtable.h | 86 __pte(__phys_to_pte_val((phys_addr_t)(pfn) << PAGE_SHIFT) | pgprot_val(prot)) 153 pte_val(pte) &= ~pgprot_val(prot); in clear_pte_bit() 159 pte_val(pte) |= pgprot_val(prot); in set_pte_bit() 165 pmd_val(pmd) &= ~pgprot_val(prot); in clear_pmd_bit() 171 pmd_val(pmd) |= pgprot_val(prot); in set_pmd_bit() 397 return __pgprot((pgprot_val(prot) & ~PUD_TABLE_BIT) | PUD_TYPE_SECT); in mk_pud_sect_prot() 402 return __pgprot((pgprot_val(prot) & ~PMD_TABLE_BIT) | PMD_TYPE_SECT); in mk_pmd_sect_prot() 474 #define pfn_pmd(pfn,prot) __pmd(__phys_to_pmd_val((phys_addr_t)(pfn) << PAGE_SHIFT) | pgprot_val(pr… 498 __pgprot((pgprot_val(prot) & ~(mask)) | (bits)) 768 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify() [all …]
|
/linux/arch/s390/include/asm/ |
A D | pgtable.h | 872 pte_flags |= pgprot_val(PAGE_KERNEL); in pte_pgprot() 919 pte_val(pte) |= pgprot_val(newprot); in pte_modify() 1423 if (pgprot_val(pgprot) == pgprot_val(PAGE_NONE)) in massage_pgprot_pmd() 1424 return pgprot_val(SEGMENT_NONE); in massage_pgprot_pmd() 1425 if (pgprot_val(pgprot) == pgprot_val(PAGE_RO)) in massage_pgprot_pmd() 1426 return pgprot_val(SEGMENT_RO); in massage_pgprot_pmd() 1427 if (pgprot_val(pgprot) == pgprot_val(PAGE_RX)) in massage_pgprot_pmd() 1428 return pgprot_val(SEGMENT_RX); in massage_pgprot_pmd() 1429 if (pgprot_val(pgprot) == pgprot_val(PAGE_RW)) in massage_pgprot_pmd() 1430 return pgprot_val(SEGMENT_RW); in massage_pgprot_pmd() [all …]
|
/linux/arch/x86/include/asm/ |
A D | fb.h | 14 prot = pgprot_val(vma->vm_page_prot) & ~_PAGE_CACHE_MASK; in fb_pgprotect() 16 pgprot_val(vma->vm_page_prot) = in fb_pgprotect()
|
A D | pgtable.h | 14 ? (__pgprot(pgprot_val(prot) | \ 21 #define pgprot_encrypted(prot) __pgprot(__sme_set(pgprot_val(prot))) 22 #define pgprot_decrypted(prot) __pgprot(__sme_clr(pgprot_val(prot))) 549 pgprotval_t protval = pgprot_val(pgprot); in massage_pgprot() 563 WARN_ONCE(pgprot_val(pgprot) != massaged_val, in check_pgprot() 566 (u64)pgprot_val(pgprot), in check_pgprot() 567 (u64)pgprot_val(pgprot) ^ massaged_val, in check_pgprot() 577 pfn ^= protnone_mask(pgprot_val(pgprot)); in pfn_pte() 585 pfn ^= protnone_mask(pgprot_val(pgprot)); in pfn_pmd() 593 pfn ^= protnone_mask(pgprot_val(pgprot)); in pfn_pud() [all …]
|
/linux/mm/ |
A D | io-mapping.c | 26 __pgprot((pgprot_val(iomap->prot) & _PAGE_CACHE_MASK) | in io_mapping_map_user() 27 (pgprot_val(vma->vm_page_prot) & ~_PAGE_CACHE_MASK))); in io_mapping_map_user()
|
/linux/arch/um/include/asm/ |
A 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
|
A 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))
|
/linux/arch/sh/include/asm/ |
A D | pgtable_32.h | 319 __pte(((unsigned long long)(pfn) << PAGE_SHIFT) | pgprot_val(prot)) 321 __pmd(((unsigned long long)(pfn) << PAGE_SHIFT) | pgprot_val(prot)) 380 __pgprot(pgprot_val(prot) & ~_PAGE_CACHABLE) 395 pte.pte_low |= pgprot_val(newprot); in pte_modify() 398 pte.pte_high |= pgprot_val(newprot) >> 32; in pte_modify()
|
/linux/arch/ia64/include/asm/ |
A D | pgtable.h | 245 ({ pte_t __pte; pte_val(__pte) = ((pfn) << PAGE_SHIFT) | pgprot_val(pgprot); __pte; }) 254 ({ pte_t __pte; pte_val(__pte) = physpage + pgprot_val(pgprot); __pte; }) 257 (__pte((pte_val(_pte) & ~_PAGE_CHG_MASK) | (pgprot_val(newprot) & _PAGE_CHG_MASK))) 344 #define pgprot_cacheable(prot) __pgprot((pgprot_val(prot) & ~_PAGE_MA_MASK) | _PAGE_MA_WB) 345 #define pgprot_noncached(prot) __pgprot((pgprot_val(prot) & ~_PAGE_MA_MASK) | _PAGE_MA_UC) 346 #define pgprot_writecombine(prot) __pgprot((pgprot_val(prot) & ~_PAGE_MA_MASK) | _PAGE_MA_WC)
|
/linux/arch/x86/mm/ |
A 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()
|