Lines Matching refs:bdev
48 struct ttm_bo_device *bdev = bo->bdev; in ttm_tt_create() local
56 if (bdev->need_dma32) in ttm_tt_create()
59 if (bdev->no_retry) in ttm_tt_create()
77 bo->ttm = bdev->driver->ttm_tt_create(bo, page_flags); in ttm_tt_create()
210 void ttm_tt_destroy_common(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy_common() argument
212 ttm_tt_unpopulate(bdev, ttm); in ttm_tt_destroy_common()
222 void ttm_tt_destroy(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy() argument
224 bdev->driver->ttm_tt_destroy(bdev, ttm); in ttm_tt_destroy()
351 int ttm_tt_swapout(struct ttm_bo_device *bdev, in ttm_tt_swapout() argument
397 ttm_tt_unpopulate(bdev, ttm); in ttm_tt_swapout()
411 static void ttm_tt_add_mapping(struct ttm_bo_device *bdev, struct ttm_tt *ttm) in ttm_tt_add_mapping() argument
419 ttm->pages[i]->mapping = bdev->dev_mapping; in ttm_tt_add_mapping()
422 int ttm_tt_populate(struct ttm_bo_device *bdev, in ttm_tt_populate() argument
433 if (bdev->driver->ttm_tt_populate) in ttm_tt_populate()
434 ret = bdev->driver->ttm_tt_populate(bdev, ttm, ctx); in ttm_tt_populate()
438 ttm_tt_add_mapping(bdev, ttm); in ttm_tt_populate()
457 void ttm_tt_unpopulate(struct ttm_bo_device *bdev, in ttm_tt_unpopulate() argument
464 if (bdev->driver->ttm_tt_unpopulate) in ttm_tt_unpopulate()
465 bdev->driver->ttm_tt_unpopulate(bdev, ttm); in ttm_tt_unpopulate()