Lines Matching refs:pte
231 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER)) argument
233 # define pte_present(pte) ((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) argument
235 # define pte_present(pte) \ argument
236 (((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) \
237 || ((pte_val(pte) & _PAGE_ATTRIB_MASK) == _PAGE_NONE))
247 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } in pte_write() argument
248 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() argument
249 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() argument
251 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
252 { pte_val(pte) &= ~(_PAGE_WRITABLE | _PAGE_HW_WRITE); return pte; } in pte_wrprotect()
253 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
254 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HW_WRITE); return pte; } in pte_mkclean()
255 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
256 { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold()
257 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
258 { pte_val(pte) |= _PAGE_DIRTY; return pte; } in pte_mkdirty()
259 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
260 { pte_val(pte) |= _PAGE_ACCESSED; return pte; } in pte_mkyoung()
261 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
262 { pte_val(pte) |= _PAGE_WRITABLE; return pte; } in pte_mkwrite()
273 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) argument
279 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
281 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
323 pte_t pte = *ptep; in ptep_test_and_clear_young() local
324 if (!pte_young(pte)) in ptep_test_and_clear_young()
326 update_pte(ptep, pte_mkold(pte)); in ptep_test_and_clear_young()
333 pte_t pte = *ptep; in ptep_get_and_clear() local
335 return pte; in ptep_get_and_clear()
341 pte_t pte = *ptep; in ptep_set_wrprotect() local
342 update_pte(ptep, pte_wrprotect(pte)); in ptep_set_wrprotect()
356 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument