Lines Matching refs:bdev
35 return container_of(bd, struct mga_device, ttm.bdev); in mgag200_bdev()
113 mgag200_bo_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, in mgag200_bo_init_mem_type() argument
154 static int mgag200_ttm_io_mem_reserve(struct ttm_bo_device *bdev, in mgag200_ttm_io_mem_reserve() argument
157 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in mgag200_ttm_io_mem_reserve()
158 struct mga_device *mdev = mgag200_bdev(bdev); in mgag200_ttm_io_mem_reserve()
183 static void mgag200_ttm_io_mem_free(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem) in mgag200_ttm_io_mem_free() argument
209 struct ttm_tt *mgag200_ttm_tt_create(struct ttm_bo_device *bdev, in mgag200_ttm_tt_create() argument
219 if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { in mgag200_ttm_tt_create()
252 struct ttm_bo_device *bdev = &mdev->ttm.bdev; in mgag200_mm_init() local
258 ret = ttm_bo_device_init(&mdev->ttm.bdev, in mgag200_mm_init()
267 ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM, mdev->mc.vram_size >> PAGE_SHIFT); in mgag200_mm_init()
283 ttm_bo_device_release(&mdev->ttm.bdev); in mgag200_mm_fini()
349 mgabo->bo.bdev = &mdev->ttm.bdev; in mgag200_bo_create()
353 acc_size = ttm_bo_dma_acc_size(&mdev->ttm.bdev, size, in mgag200_bo_create()
356 ret = ttm_bo_init(&mdev->ttm.bdev, &mgabo->bo, size, in mgag200_bo_create()
451 return ttm_bo_mmap(filp, vma, &mdev->ttm.bdev); in mgag200_mmap()