Lines Matching defs:prot
139 static inline bool __pte_access_permitted(pte_t pte, u64 prot)
141 return (pte_val(pte) & (prot | _PAGE_SPECIAL)) == prot;
147 u64 prot = _PAGE_PRESENT;
149 prot |= _PAGE_EXT(_PAGE_EXT_KERN_READ | _PAGE_EXT_USER_READ);
151 prot |= _PAGE_EXT(_PAGE_EXT_KERN_WRITE | _PAGE_EXT_USER_WRITE);
152 return __pte_access_permitted(pte, prot);
157 u64 prot = _PAGE_PRESENT | _PAGE_USER;
160 prot |= _PAGE_RW;
161 return __pte_access_permitted(pte, prot);