Lines Matching refs:ttm
35 return container_of(bd, struct ast_private, ttm.bdev); in ast_bdev()
55 global_ref = &ast->ttm.mem_global_ref; in ast_ttm_global_init()
67 ast->ttm.bo_global_ref.mem_glob = in ast_ttm_global_init()
68 ast->ttm.mem_global_ref.object; in ast_ttm_global_init()
69 global_ref = &ast->ttm.bo_global_ref.ref; in ast_ttm_global_init()
77 drm_global_item_unref(&ast->ttm.mem_global_ref); in ast_ttm_global_init()
86 if (ast->ttm.mem_global_ref.release == NULL) in ast_ttm_global_release()
89 drm_global_item_unref(&ast->ttm.bo_global_ref.ref); in ast_ttm_global_release()
90 drm_global_item_unref(&ast->ttm.mem_global_ref); in ast_ttm_global_release()
91 ast->ttm.mem_global_ref.release = NULL; in ast_ttm_global_release()
228 static int ast_ttm_tt_populate(struct ttm_tt *ttm) in ast_ttm_tt_populate() argument
230 return ttm_pool_populate(ttm); in ast_ttm_tt_populate()
233 static void ast_ttm_tt_unpopulate(struct ttm_tt *ttm) in ast_ttm_tt_unpopulate() argument
235 ttm_pool_unpopulate(ttm); in ast_ttm_tt_unpopulate()
254 struct ttm_bo_device *bdev = &ast->ttm.bdev; in ast_mm_init()
260 ret = ttm_bo_device_init(&ast->ttm.bdev, in ast_mm_init()
261 ast->ttm.bo_global_ref.ref.object, in ast_mm_init()
286 ttm_bo_device_release(&ast->ttm.bdev); in ast_mm_fini()
332 astbo->bo.bdev = &ast->ttm.bdev; in ast_bo_create()
336 acc_size = ttm_bo_dma_acc_size(&ast->ttm.bdev, size, in ast_bo_create()
339 ret = ttm_bo_init(&ast->ttm.bdev, &astbo->bo, size, in ast_bo_create()
434 return ttm_bo_mmap(filp, vma, &ast->ttm.bdev); in ast_mmap()