Lines Matching refs:pte

238 static inline int pte_user(pte_t pte)	{ return pte_val(pte) & __PAGE_PROT_USER; }  in pte_user()  argument
239 static inline int pte_read(pte_t pte) { return pte_val(pte) & __PAGE_PROT_USER; } in pte_read() argument
240 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() argument
241 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() argument
242 static inline int pte_write(pte_t pte) { return pte_val(pte) & __PAGE_PROT_WRITE; } in pte_write() argument
243 static inline int pte_special(pte_t pte){ return 0; } in pte_special() argument
245 static inline pte_t pte_rdprotect(pte_t pte) in pte_rdprotect() argument
247 pte_val(pte) &= ~(__PAGE_PROT_USER|__PAGE_PROT_UWAUX); return pte; in pte_rdprotect()
249 static inline pte_t pte_exprotect(pte_t pte) in pte_exprotect() argument
251 pte_val(pte) |= _PAGE_NX; return pte; in pte_exprotect()
254 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
256 pte_val(pte) &= ~(__PAGE_PROT_WRITE|__PAGE_PROT_UWAUX); return pte; in pte_wrprotect()
259 static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } in pte_mkclean() argument
260 static inline pte_t pte_mkold(pte_t pte) { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold() argument
261 static inline pte_t pte_mkdirty(pte_t pte) { pte_val(pte) |= _PAGE_DIRTY; return pte; } in pte_mkdirty() argument
262 static inline pte_t pte_mkyoung(pte_t pte) { pte_val(pte) |= _PAGE_ACCESSED; return pte; } in pte_mkyoung() argument
263 static inline pte_t pte_mkexec(pte_t pte) { pte_val(pte) &= ~_PAGE_NX; return pte; } in pte_mkexec() argument
265 static inline pte_t pte_mkread(pte_t pte) in pte_mkread() argument
267 pte_val(pte) |= __PAGE_PROT_USER; in pte_mkread()
268 if (pte_write(pte)) in pte_mkread()
269 pte_val(pte) |= __PAGE_PROT_UWAUX; in pte_mkread()
270 return pte; in pte_mkread()
272 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
274 pte_val(pte) |= __PAGE_PROT_WRITE; in pte_mkwrite()
275 if (pte_val(pte) & __PAGE_PROT_USER) in pte_mkwrite()
276 pte_val(pte) |= __PAGE_PROT_UWAUX; in pte_mkwrite()
277 return pte; in pte_mkwrite()
280 static inline pte_t pte_mkspecial(pte_t pte) { return pte; } in pte_mkspecial() argument
312 __pte(xchg(&(ptep)->pte, 0))
324 static inline int pte_exec(pte_t pte) in pte_exec() argument
326 return pte_user(pte); in pte_exec()
332 static inline int pte_exec_kernel(pte_t pte) in pte_exec_kernel() argument
342 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument
351 return test_and_clear_bit(_PAGE_BIT_DIRTY, &ptep->pte); in ptep_test_and_clear_dirty()
360 return test_and_clear_bit(_PAGE_BIT_ACCESSED, &ptep->pte); in ptep_test_and_clear_young()
371 set_bit(_PAGE_BIT_DIRTY, &ptep->pte); in ptep_mkdirty()
393 ((entry).pte |= _PAGE_PRESENT | _PAGE_PSE | _PAGE_VALID)
395 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
397 pte_val(pte) &= _PAGE_CHG_MASK; in pte_modify()
398 pte_val(pte) |= pgprot_val(newprot); in pte_modify()
399 return pte; in pte_modify()
467 #define pte_unmap(pte) do {} while (0) argument