Lines Matching refs:src_iter
92 struct ttm_kmap_iter *src_iter) in ttm_move_memcpy() argument
95 const struct ttm_kmap_iter_ops *src_ops = src_iter->ops; in ttm_move_memcpy()
119 src_ops->map_local(src_iter, &src_map, i); in ttm_move_memcpy()
124 src_ops->unmap_local(src_iter, &src_map); in ttm_move_memcpy()
146 struct ttm_kmap_iter *dst_iter, *src_iter; in ttm_bo_move_memcpy() local
163 src_iter = ttm_kmap_iter_linear_io_init(&_src_iter.io, bdev, src_mem); in ttm_bo_move_memcpy()
164 if (PTR_ERR(src_iter) == -EINVAL && src_man->use_tt) in ttm_bo_move_memcpy()
165 src_iter = ttm_kmap_iter_tt_init(&_src_iter.tt, bo->ttm); in ttm_bo_move_memcpy()
166 if (IS_ERR(src_iter)) { in ttm_bo_move_memcpy()
167 ret = PTR_ERR(src_iter); in ttm_bo_move_memcpy()
171 clear = src_iter->ops->maps_tt && (!ttm || !ttm_tt_is_populated(ttm)); in ttm_bo_move_memcpy()
173 ttm_move_memcpy(clear, dst_mem->num_pages, dst_iter, src_iter); in ttm_bo_move_memcpy()
175 if (!src_iter->ops->maps_tt) in ttm_bo_move_memcpy()