Lines Matching refs:bdev

45 int ttm_mem_io_reserve(struct ttm_device *bdev,  in ttm_mem_io_reserve()  argument
52 if (!bdev->funcs->io_mem_reserve) in ttm_mem_io_reserve()
55 return bdev->funcs->io_mem_reserve(bdev, mem); in ttm_mem_io_reserve()
58 void ttm_mem_io_free(struct ttm_device *bdev, in ttm_mem_io_free() argument
67 if (bdev->funcs->io_mem_free) in ttm_mem_io_free()
68 bdev->funcs->io_mem_free(bdev, mem); in ttm_mem_io_free()
146 struct ttm_device *bdev = bo->bdev; in ttm_bo_move_memcpy() local
148 ttm_manager_type(bo->bdev, dst_mem->mem_type); in ttm_bo_move_memcpy()
163 src_man = ttm_manager_type(bdev, src_mem->mem_type); in ttm_bo_move_memcpy()
166 ret = ttm_tt_populate(bdev, ttm, ctx); in ttm_bo_move_memcpy()
171 dst_iter = ttm_kmap_iter_linear_io_init(&_dst_iter.io, bdev, dst_mem); in ttm_bo_move_memcpy()
177 src_iter = ttm_kmap_iter_linear_io_init(&_src_iter.io, bdev, src_mem); in ttm_bo_move_memcpy()
190 ttm_kmap_iter_linear_io_fini(&_src_iter.io, bdev, src_mem); in ttm_bo_move_memcpy()
195 ttm_kmap_iter_linear_io_fini(&_dst_iter.io, bdev, dst_mem); in ttm_bo_move_memcpy()
296 man = ttm_manager_type(bo->bdev, res->mem_type); in ttm_io_prot()
347 ttm_manager_type(bo->bdev, bo->resource->mem_type); in ttm_bo_kmap_ttm()
353 ret = ttm_tt_populate(bo->bdev, ttm, &ctx); in ttm_bo_kmap_ttm()
410 ret = ttm_mem_io_reserve(bo->bdev, bo->resource); in ttm_bo_kmap()
449 ttm_mem_io_free(map->bo->bdev, map->bo->resource); in ttm_bo_kunmap()
476 ret = ttm_mem_io_reserve(bo->bdev, mem); in ttm_bo_vmap()
510 ret = ttm_tt_populate(bo->bdev, ttm, &ctx); in ttm_bo_vmap()
553 ttm_mem_io_free(bo->bdev, bo->resource); in ttm_bo_vunmap()
616 struct ttm_device *bdev = bo->bdev; in ttm_bo_move_pipeline_evict() local
619 from = ttm_manager_type(bdev, bo->resource->mem_type); in ttm_bo_move_pipeline_evict()
657 struct ttm_device *bdev = bo->bdev; in ttm_bo_move_accel_cleanup() local
658 struct ttm_resource_manager *from = ttm_manager_type(bdev, bo->resource->mem_type); in ttm_bo_move_accel_cleanup()
659 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_accel_cleanup()
691 struct ttm_device *bdev = bo->bdev; in ttm_bo_move_sync_cleanup() local
692 struct ttm_resource_manager *man = ttm_manager_type(bdev, new_mem->mem_type); in ttm_bo_move_sync_cleanup()
728 ttm_tt_unpopulate(bo->bdev, bo->ttm); in ttm_bo_pipeline_gutting()
768 ttm_tt_destroy(bo->bdev, ttm); in ttm_bo_pipeline_gutting()
859 s64 ttm_lru_walk_for_evict(struct ttm_lru_walk *walk, struct ttm_device *bdev, in ttm_lru_walk_for_evict() argument
867 spin_lock(&bdev->lru_lock); in ttm_lru_walk_for_evict()
891 spin_unlock(&bdev->lru_lock); in ttm_lru_walk_for_evict()
913 spin_lock(&bdev->lru_lock); in ttm_lru_walk_for_evict()
918 spin_unlock(&bdev->lru_lock); in ttm_lru_walk_for_evict()