Lines Matching defs:pgprot
920 * Extract the pgprot value from the given pte while at the same time making it
1373 static inline pte_t mk_pte_phys(unsigned long physpage, pgprot_t pgprot)
1377 __pte = __pte(physpage | pgprot_val(pgprot));
1383 static inline pte_t mk_pte(struct page *page, pgprot_t pgprot)
1386 pte_t __pte = mk_pte_phys(physpage, pgprot);
1509 #define pfn_pte(pfn, pgprot) mk_pte_phys(((pfn) << PAGE_SHIFT), (pgprot))
1575 static inline unsigned long massage_pgprot_pmd(pgprot_t pgprot)
1578 * pgprot is PAGE_NONE, PAGE_RO, PAGE_RX, PAGE_RW or PAGE_RWX
1581 if (pgprot_val(pgprot) == pgprot_val(PAGE_NONE))
1583 if (pgprot_val(pgprot) == pgprot_val(PAGE_RO))
1585 if (pgprot_val(pgprot) == pgprot_val(PAGE_RX))
1587 if (pgprot_val(pgprot) == pgprot_val(PAGE_RW))
1624 static inline pmd_t mk_pmd_phys(unsigned long physpage, pgprot_t pgprot)
1626 return __pmd(physpage + massage_pgprot_pmd(pgprot));
1815 #define pfn_pmd(pfn, pgprot) mk_pmd_phys(((pfn) << PAGE_SHIFT), (pgprot))
1816 #define mk_pmd(page, pgprot) pfn_pmd(page_to_pfn(page), (pgprot))