Lines Matching defs:prot
121 static inline bool __pte_access_permitted(pte_t pte, u64 prot)
123 return (pte_val(pte) & (prot | _PAGE_SPECIAL)) == prot;
129 u64 prot = _PAGE_PRESENT;
131 prot |= _PAGE_EXT(_PAGE_EXT_KERN_READ | _PAGE_EXT_USER_READ);
133 prot |= _PAGE_EXT(_PAGE_EXT_KERN_WRITE | _PAGE_EXT_USER_WRITE);
134 return __pte_access_permitted(pte, prot);
139 u64 prot = _PAGE_PRESENT | _PAGE_USER;
142 prot |= _PAGE_RW;
143 return __pte_access_permitted(pte, prot);