Lines Matching refs:to_page
314 struct page *to_page; in ttm_tt_swapin() local
333 to_page = ttm->pages[i]; in ttm_tt_swapin()
334 if (unlikely(to_page == NULL)) in ttm_tt_swapin()
337 copy_highpage(to_page, from_page); in ttm_tt_swapin()
357 struct page *to_page; in ttm_tt_swapout() local
386 to_page = shmem_read_mapping_page_gfp(swap_space, i, gfp_mask); in ttm_tt_swapout()
387 if (IS_ERR(to_page)) { in ttm_tt_swapout()
388 ret = PTR_ERR(to_page); in ttm_tt_swapout()
391 copy_highpage(to_page, from_page); in ttm_tt_swapout()
392 set_page_dirty(to_page); in ttm_tt_swapout()
393 mark_page_accessed(to_page); in ttm_tt_swapout()
394 put_page(to_page); in ttm_tt_swapout()