Lines Matching refs:bdev
70 struct ttm_device *bdev = bo->bdev; in ttm_tt_create() local
98 if (ttm_pool_uses_dma_alloc(&bdev->pool) && in ttm_tt_create()
104 bo->ttm = bdev->funcs->ttm_tt_create(bo, page_flags); in ttm_tt_create()
147 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy() argument
149 bdev->funcs->ttm_tt_destroy(bdev, ttm); in ttm_tt_destroy()
281 long ttm_tt_backup(struct ttm_device *bdev, struct ttm_tt *tt, in ttm_tt_backup() argument
289 ret = ttm_pool_backup(&bdev->pool, tt, &flags); in ttm_tt_backup()
298 int ttm_tt_restore(struct ttm_device *bdev, struct ttm_tt *tt, in ttm_tt_restore() argument
301 int ret = ttm_pool_restore_and_alloc(&bdev->pool, tt, ctx); in ttm_tt_restore()
322 int ttm_tt_swapout(struct ttm_device *bdev, struct ttm_tt *ttm, in ttm_tt_swapout() argument
357 ttm_tt_unpopulate(bdev, ttm); in ttm_tt_swapout()
370 int ttm_tt_populate(struct ttm_device *bdev, in ttm_tt_populate() argument
383 if (ttm_pool_uses_dma32(&bdev->pool)) in ttm_tt_populate()
399 if (bdev->funcs->ttm_tt_populate) in ttm_tt_populate()
400 ret = bdev->funcs->ttm_tt_populate(bdev, ttm, ctx); in ttm_tt_populate()
402 ret = ttm_pool_alloc(&bdev->pool, ttm, ctx); in ttm_tt_populate()
411 ttm_tt_unpopulate(bdev, ttm); in ttm_tt_populate()
421 if (ttm_pool_uses_dma32(&bdev->pool)) in ttm_tt_populate()
432 void ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_unpopulate() argument
437 if (bdev->funcs->ttm_tt_unpopulate) in ttm_tt_unpopulate()
438 bdev->funcs->ttm_tt_unpopulate(bdev, ttm); in ttm_tt_unpopulate()
440 ttm_pool_free(&bdev->pool, ttm); in ttm_tt_unpopulate()
444 if (ttm_pool_uses_dma32(&bdev->pool)) in ttm_tt_unpopulate()