Lines Matching refs:bdev
68 struct ttm_device *bdev = bo->bdev; in ttm_tt_create() local
96 if (bdev->pool.use_dma_alloc && cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) { in ttm_tt_create()
101 bo->ttm = bdev->funcs->ttm_tt_create(bo, page_flags); in ttm_tt_create()
145 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy() argument
147 bdev->funcs->ttm_tt_destroy(bdev, ttm); in ttm_tt_destroy()
279 long ttm_tt_backup(struct ttm_device *bdev, struct ttm_tt *tt, in ttm_tt_backup() argument
287 ret = ttm_pool_backup(&bdev->pool, tt, &flags); in ttm_tt_backup()
296 int ttm_tt_restore(struct ttm_device *bdev, struct ttm_tt *tt, in ttm_tt_restore() argument
299 int ret = ttm_pool_restore_and_alloc(&bdev->pool, tt, ctx); in ttm_tt_restore()
320 int ttm_tt_swapout(struct ttm_device *bdev, struct ttm_tt *ttm, in ttm_tt_swapout() argument
355 ttm_tt_unpopulate(bdev, ttm); in ttm_tt_swapout()
368 int ttm_tt_populate(struct ttm_device *bdev, in ttm_tt_populate() argument
381 if (bdev->pool.use_dma32) in ttm_tt_populate()
397 if (bdev->funcs->ttm_tt_populate) in ttm_tt_populate()
398 ret = bdev->funcs->ttm_tt_populate(bdev, ttm, ctx); in ttm_tt_populate()
400 ret = ttm_pool_alloc(&bdev->pool, ttm, ctx); in ttm_tt_populate()
409 ttm_tt_unpopulate(bdev, ttm); in ttm_tt_populate()
419 if (bdev->pool.use_dma32) in ttm_tt_populate()
430 void ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_unpopulate() argument
435 if (bdev->funcs->ttm_tt_unpopulate) in ttm_tt_unpopulate()
436 bdev->funcs->ttm_tt_unpopulate(bdev, ttm); in ttm_tt_unpopulate()
438 ttm_pool_free(&bdev->pool, ttm); in ttm_tt_unpopulate()
442 if (bdev->pool.use_dma32) in ttm_tt_unpopulate()