Lines Matching refs:pte
235 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER)) argument
237 # define pte_present(pte) ((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) argument
239 # define pte_present(pte) \ argument
240 (((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) \
241 || ((pte_val(pte) & _PAGE_ATTRIB_MASK) == _PAGE_NONE))
251 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } in pte_write() argument
252 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() argument
253 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() argument
255 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
256 { pte_val(pte) &= ~(_PAGE_WRITABLE | _PAGE_HW_WRITE); return pte; } in pte_wrprotect()
257 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
258 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HW_WRITE); return pte; } in pte_mkclean()
259 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
260 { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold()
261 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
262 { pte_val(pte) |= _PAGE_DIRTY; return pte; } in pte_mkdirty()
263 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
264 { pte_val(pte) |= _PAGE_ACCESSED; return pte; } in pte_mkyoung()
265 static inline pte_t pte_mkwrite_novma(pte_t pte) in pte_mkwrite_novma() argument
266 { pte_val(pte) |= _PAGE_WRITABLE; return pte; } in pte_mkwrite_novma()
278 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) argument
284 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
286 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
305 static inline void set_pte(pte_t *ptep, pte_t pte) in set_pte() argument
307 update_pte(ptep, pte); in set_pte()
322 pte_t pte = *ptep; in ptep_test_and_clear_young() local
323 if (!pte_young(pte)) in ptep_test_and_clear_young()
325 update_pte(ptep, pte_mkold(pte)); in ptep_test_and_clear_young()
332 pte_t pte = *ptep; in ptep_get_and_clear() local
334 return pte; in ptep_get_and_clear()
340 pte_t pte = *ptep; in ptep_set_wrprotect() local
341 update_pte(ptep, pte_wrprotect(pte)); in ptep_set_wrprotect()
355 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument
358 static inline int pte_swp_exclusive(pte_t pte) in pte_swp_exclusive() argument
360 return pte_val(pte) & _PAGE_SWP_EXCLUSIVE; in pte_swp_exclusive()
363 static inline pte_t pte_swp_mkexclusive(pte_t pte) in pte_swp_mkexclusive() argument
365 pte_val(pte) |= _PAGE_SWP_EXCLUSIVE; in pte_swp_mkexclusive()
366 return pte; in pte_swp_mkexclusive()
369 static inline pte_t pte_swp_clear_exclusive(pte_t pte) in pte_swp_clear_exclusive() argument
371 pte_val(pte) &= ~_PAGE_SWP_EXCLUSIVE; in pte_swp_clear_exclusive()
372 return pte; in pte_swp_clear_exclusive()