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
156 static int ast_ttm_io_mem_reserve(struct ttm_bo_device *bdev, in ast_ttm_io_mem_reserve() argument
159 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ast_ttm_io_mem_reserve()
160 struct ast_private *ast = ast_bdev(bdev); in ast_ttm_io_mem_reserve()
185 static void ast_ttm_io_mem_free(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem) in ast_ttm_io_mem_free() argument
211 static struct ttm_tt *ast_ttm_tt_create(struct ttm_bo_device *bdev, in ast_ttm_tt_create() argument
221 if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { in ast_ttm_tt_create()
254 struct ttm_bo_device *bdev = &ast->ttm.bdev; in ast_mm_init() local
260 ret = ttm_bo_device_init(&ast->ttm.bdev, in ast_mm_init()
271 ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM, 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()