Lines Matching refs:pte
194 pte_t pte; in swapin_walk_pmd_entry() local
200 pte = *(orig_pte + ((index - start) / PAGE_SIZE)); in swapin_walk_pmd_entry()
203 if (pte_present(pte) || pte_none(pte)) in swapin_walk_pmd_entry()
205 entry = pte_to_swp_entry(pte); in swapin_walk_pmd_entry()
309 pte_t *orig_pte, *pte, ptent; in madvise_cold_or_pageout_pte_range() local
386 orig_pte = pte = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl); in madvise_cold_or_pageout_pte_range()
389 for (; addr < end; pte++, addr += PAGE_SIZE) { in madvise_cold_or_pageout_pte_range()
390 ptent = *pte; in madvise_cold_or_pageout_pte_range()
423 pte = pte_offset_map_lock(mm, pmd, addr, &ptl); in madvise_cold_or_pageout_pte_range()
424 pte--; in madvise_cold_or_pageout_pte_range()
432 ptent = ptep_get_and_clear_full(mm, addr, pte, in madvise_cold_or_pageout_pte_range()
435 set_pte_at(mm, addr, pte, ptent); in madvise_cold_or_pageout_pte_range()
436 tlb_remove_tlb_entry(tlb, pte, addr); in madvise_cold_or_pageout_pte_range()
564 pte_t *orig_pte, *pte, ptent; in madvise_free_pte_range() local
578 orig_pte = pte = pte_offset_map_lock(mm, pmd, addr, &ptl); in madvise_free_pte_range()
581 for (; addr != end; pte++, addr += PAGE_SIZE) { in madvise_free_pte_range()
582 ptent = *pte; in madvise_free_pte_range()
599 pte_clear_not_present_full(mm, addr, pte, tlb->fullmm); in madvise_free_pte_range()
629 pte = pte_offset_map_lock(mm, pmd, addr, &ptl); in madvise_free_pte_range()
630 pte--; in madvise_free_pte_range()
665 ptent = ptep_get_and_clear_full(mm, addr, pte, in madvise_free_pte_range()
670 set_pte_at(mm, addr, pte, ptent); in madvise_free_pte_range()
671 tlb_remove_tlb_entry(tlb, pte, addr); in madvise_free_pte_range()