Lines Matching refs:prot

85 #define pfn_pte(pfn,prot)	\  argument
86 __pte(__phys_to_pte_val((phys_addr_t)(pfn) << PAGE_SHIFT) | pgprot_val(prot))
151 static inline pte_t clear_pte_bit(pte_t pte, pgprot_t prot) in clear_pte_bit() argument
153 pte_val(pte) &= ~pgprot_val(prot); in clear_pte_bit()
157 static inline pte_t set_pte_bit(pte_t pte, pgprot_t prot) in set_pte_bit() argument
159 pte_val(pte) |= pgprot_val(prot); in set_pte_bit()
163 static inline pmd_t clear_pmd_bit(pmd_t pmd, pgprot_t prot) in clear_pmd_bit() argument
165 pmd_val(pmd) &= ~pgprot_val(prot); in clear_pmd_bit()
169 static inline pmd_t set_pmd_bit(pmd_t pmd, pgprot_t prot) in set_pmd_bit() argument
171 pmd_val(pmd) |= pgprot_val(prot); in set_pmd_bit()
395 static inline pgprot_t mk_pud_sect_prot(pgprot_t prot) in mk_pud_sect_prot() argument
397 return __pgprot((pgprot_val(prot) & ~PUD_TABLE_BIT) | PUD_TYPE_SECT); in mk_pud_sect_prot()
400 static inline pgprot_t mk_pmd_sect_prot(pgprot_t prot) in mk_pmd_sect_prot() argument
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… argument
475 #define mk_pmd(page,prot) pfn_pmd(page_to_pfn(page),prot) argument
486 #define pfn_pud(pfn,prot) __pud(__phys_to_pud_val((phys_addr_t)(pfn) << PAGE_SHIFT) | pgprot_val(pr… argument
497 #define __pgprot_modify(prot,mask,bits) \ argument
498 __pgprot((pgprot_val(prot) & ~(mask)) | (bits))
500 #define pgprot_nx(prot) \ argument
501 __pgprot_modify(prot, PTE_MAYBE_GP, PTE_PXN)
506 #define pgprot_noncached(prot) \ argument
507 __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_DEVICE_nGnRnE) | PTE_PXN | PTE_UXN)
508 #define pgprot_writecombine(prot) \ argument
509 __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_NORMAL_NC) | PTE_PXN | PTE_UXN)
510 #define pgprot_device(prot) \ argument
511 __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_DEVICE_nGnRE) | PTE_PXN | PTE_UXN)
512 #define pgprot_tagged(prot) \ argument
513 __pgprot_modify(prot, PTE_ATTRINDX_MASK, PTE_ATTRINDX(MT_NORMAL_TAGGED))
523 #define pgprot_dmacoherent(prot) \ argument
524 __pgprot_modify(prot, PTE_ATTRINDX_MASK, \
618 #define mk_pte(page,prot) pfn_pte(page_to_pfn(page),prot) argument
1020 static inline pgprot_t arch_filter_pgprot(pgprot_t prot) in arch_filter_pgprot() argument
1023 return prot; in arch_filter_pgprot()
1025 if (pgprot_val(prot) != pgprot_val(PAGE_EXECONLY)) in arch_filter_pgprot()
1026 return prot; in arch_filter_pgprot()