Lines Matching refs:bdev
35 return container_of(bd, struct ast_private, ttm.bdev); in ast_bdev()
113 ast_bo_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, in ast_bo_init_mem_type() argument
154 static int ast_ttm_io_mem_reserve(struct ttm_bo_device *bdev, in ast_ttm_io_mem_reserve() argument
157 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ast_ttm_io_mem_reserve()
158 struct ast_private *ast = ast_bdev(bdev); in ast_ttm_io_mem_reserve()
183 static void ast_ttm_io_mem_free(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem) in ast_ttm_io_mem_free() argument
209 struct ttm_tt *ast_ttm_tt_create(struct ttm_bo_device *bdev, in ast_ttm_tt_create() argument
219 if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { in ast_ttm_tt_create()
252 struct ttm_bo_device *bdev = &ast->ttm.bdev; in ast_mm_init() local
258 ret = ttm_bo_device_init(&ast->ttm.bdev, in ast_mm_init()
267 ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM, in ast_mm_init()
284 ttm_bo_device_release(&ast->ttm.bdev); in ast_mm_fini()
350 astbo->bo.bdev = &ast->ttm.bdev; in ast_bo_create()
354 acc_size = ttm_bo_dma_acc_size(&ast->ttm.bdev, size, in ast_bo_create()
357 ret = ttm_bo_init(&ast->ttm.bdev, &astbo->bo, size, in ast_bo_create()
452 return ttm_bo_mmap(filp, vma, &ast->ttm.bdev); in ast_mmap()