Lines Matching refs:ptep
256 #define pte_update(mm, addr, ptep) do { } while (0) argument
257 #define pte_update_defer(mm, addr, ptep) do { } while (0) argument
261 static inline pte_t native_local_ptep_get_and_clear(pte_t *ptep) in native_local_ptep_get_and_clear() argument
263 pte_t res = *ptep; in native_local_ptep_get_and_clear()
266 native_pte_clear(NULL, 0, ptep); in native_local_ptep_get_and_clear()
278 #define ptep_set_access_flags(vma, address, ptep, entry, dirty) \ argument
280 int __changed = !pte_same(*(ptep), entry); \
282 (ptep)->pte_low = (entry).pte_low; \
283 pte_update_defer((vma)->vm_mm, (address), (ptep)); \
290 #define ptep_test_and_clear_young(vma, addr, ptep) ({ \ argument
292 if (pte_young(*(ptep))) \
294 &(ptep)->pte_low); \
296 pte_update((vma)->vm_mm, addr, ptep); \
301 #define ptep_clear_flush_young(vma, address, ptep) \ argument
304 __young = ptep_test_and_clear_young((vma), (address), (ptep)); \
311 static inline pte_t ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) in ptep_get_and_clear() argument
313 pte_t pte = native_ptep_get_and_clear(ptep); in ptep_get_and_clear()
314 pte_update(mm, addr, ptep); in ptep_get_and_clear()
319 static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm, unsigned long addr, pte_t *ptep, … in ptep_get_and_clear_full() argument
327 pte = native_local_ptep_get_and_clear(ptep); in ptep_get_and_clear_full()
329 pte = ptep_get_and_clear(mm, addr, ptep); in ptep_get_and_clear_full()
335 static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, pte_t *ptep) in ptep_set_wrprotect() argument
337 clear_bit(_PAGE_BIT_RW, &ptep->pte_low); in ptep_set_wrprotect()
338 pte_update(mm, addr, ptep); in ptep_set_wrprotect()
471 #define kpte_clear_flush(ptep, vaddr) \ argument
473 pte_clear(&init_mm, vaddr, ptep); \