Lines Matching refs:swap_storage
180 ttm->swap_storage) in ttm_tt_destroy()
181 fput(ttm->swap_storage); in ttm_tt_destroy()
183 ttm->swap_storage = NULL; in ttm_tt_destroy()
198 ttm->swap_storage = NULL; in ttm_tt_init()
230 ttm->swap_storage = NULL; in ttm_dma_tt_init()
292 struct file *swap_storage; in ttm_tt_swapin() local
298 swap_storage = ttm->swap_storage; in ttm_tt_swapin()
299 BUG_ON(swap_storage == NULL); in ttm_tt_swapin()
301 swap_space = file_inode(swap_storage)->i_mapping; in ttm_tt_swapin()
318 fput(swap_storage); in ttm_tt_swapin()
319 ttm->swap_storage = NULL; in ttm_tt_swapin()
330 struct file *swap_storage; in ttm_tt_swapout() local
340 swap_storage = shmem_file_setup("ttm swap", in ttm_tt_swapout()
343 if (IS_ERR(swap_storage)) { in ttm_tt_swapout()
345 return PTR_ERR(swap_storage); in ttm_tt_swapout()
348 swap_storage = persistent_swap_storage; in ttm_tt_swapout()
350 swap_space = file_inode(swap_storage)->i_mapping; in ttm_tt_swapout()
368 ttm->swap_storage = swap_storage; in ttm_tt_swapout()
376 fput(swap_storage); in ttm_tt_swapout()