• Home
  • Raw
  • Download

Lines Matching refs:bdev

60 	struct ttm_device *bdev = bo->bdev;  in ttm_tt_create()  local
83 bo->ttm = bdev->funcs->ttm_tt_create(bo, page_flags); in ttm_tt_create()
125 void ttm_tt_destroy_common(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy_common() argument
127 ttm_tt_unpopulate(bdev, ttm); in ttm_tt_destroy_common()
136 void ttm_tt_destroy(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_destroy() argument
138 bdev->funcs->ttm_tt_destroy(bdev, ttm); in ttm_tt_destroy()
250 int ttm_tt_swapout(struct ttm_device *bdev, struct ttm_tt *ttm, in ttm_tt_swapout() argument
285 ttm_tt_unpopulate(bdev, ttm); in ttm_tt_swapout()
297 static void ttm_tt_add_mapping(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_add_mapping() argument
305 ttm->pages[i]->mapping = bdev->dev_mapping; in ttm_tt_add_mapping()
308 int ttm_tt_populate(struct ttm_device *bdev, in ttm_tt_populate() argument
321 if (bdev->pool.use_dma32) in ttm_tt_populate()
337 if (bdev->funcs->ttm_tt_populate) in ttm_tt_populate()
338 ret = bdev->funcs->ttm_tt_populate(bdev, ttm, ctx); in ttm_tt_populate()
340 ret = ttm_pool_alloc(&bdev->pool, ttm, ctx); in ttm_tt_populate()
344 ttm_tt_add_mapping(bdev, ttm); in ttm_tt_populate()
349 ttm_tt_unpopulate(bdev, ttm); in ttm_tt_populate()
359 if (bdev->pool.use_dma32) in ttm_tt_populate()
381 void ttm_tt_unpopulate(struct ttm_device *bdev, struct ttm_tt *ttm) in ttm_tt_unpopulate() argument
387 if (bdev->funcs->ttm_tt_unpopulate) in ttm_tt_unpopulate()
388 bdev->funcs->ttm_tt_unpopulate(bdev, ttm); in ttm_tt_unpopulate()
390 ttm_pool_free(&bdev->pool, ttm); in ttm_tt_unpopulate()
394 if (bdev->pool.use_dma32) in ttm_tt_unpopulate()