Lines Matching refs:bdev
16 return container_of(bd, struct bochs_device, ttm.bdev); in bochs_bdev()
90 static int bochs_bo_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, in bochs_bo_init_mem_type() argument
134 static int bochs_ttm_io_mem_reserve(struct ttm_bo_device *bdev, in bochs_ttm_io_mem_reserve() argument
137 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in bochs_ttm_io_mem_reserve()
138 struct bochs_device *bochs = bochs_bdev(bdev); in bochs_ttm_io_mem_reserve()
163 static void bochs_ttm_io_mem_free(struct ttm_bo_device *bdev, in bochs_ttm_io_mem_free() argument
187 static struct ttm_tt *bochs_ttm_tt_create(struct ttm_bo_device *bdev, in bochs_ttm_tt_create() argument
198 if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { in bochs_ttm_tt_create()
219 struct ttm_bo_device *bdev = &bochs->ttm.bdev; in bochs_mm_init() local
226 ret = ttm_bo_device_init(&bochs->ttm.bdev, in bochs_mm_init()
237 ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM, in bochs_mm_init()
253 ttm_bo_device_release(&bochs->ttm.bdev); in bochs_mm_fini()
346 return ttm_bo_mmap(filp, vma, &bochs->ttm.bdev); in bochs_mmap()
369 bochsbo->bo.bdev = &bochs->ttm.bdev; in bochs_bo_create()
370 bochsbo->bo.bdev->dev_mapping = dev->anon_inode->i_mapping; in bochs_bo_create()
374 acc_size = ttm_bo_dma_acc_size(&bochs->ttm.bdev, size, in bochs_bo_create()
377 ret = ttm_bo_init(&bochs->ttm.bdev, &bochsbo->bo, size, in bochs_bo_create()