Lines Matching refs:pte

249 # define pte_none(pte)	 (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER))  argument
251 # define pte_present(pte) ((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) argument
253 # define pte_present(pte) \ argument
254 (((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) \
255 || ((pte_val(pte) & _PAGE_ATTRIB_MASK) == _PAGE_NONE))
265 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } in pte_write() argument
266 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() argument
267 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() argument
269 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
270 { pte_val(pte) &= ~(_PAGE_WRITABLE | _PAGE_HW_WRITE); return pte; } in pte_wrprotect()
271 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
272 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HW_WRITE); return pte; } in pte_mkclean()
273 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
274 { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold()
275 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
276 { pte_val(pte) |= _PAGE_DIRTY; return pte; } in pte_mkdirty()
277 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
278 { pte_val(pte) |= _PAGE_ACCESSED; return pte; } in pte_mkyoung()
279 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
280 { pte_val(pte) |= _PAGE_WRITABLE; return pte; } in pte_mkwrite()
291 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) argument
297 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
299 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
341 pte_t pte = *ptep; in ptep_test_and_clear_young() local
342 if (!pte_young(pte)) in ptep_test_and_clear_young()
344 update_pte(ptep, pte_mkold(pte)); in ptep_test_and_clear_young()
351 pte_t pte = *ptep; in ptep_get_and_clear() local
353 return pte; in ptep_get_and_clear()
359 pte_t pte = *ptep; in ptep_set_wrprotect() local
360 update_pte(ptep, pte_wrprotect(pte)); in ptep_set_wrprotect()
374 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument