Lines Matching refs:qdev

43 	struct qxl_device *qdev;  in qxl_get_qdev()  local
46 qdev = container_of(mman, struct qxl_device, mman); in qxl_get_qdev()
47 return qdev; in qxl_get_qdev()
76 struct qxl_device *qdev = qxl_get_qdev(bdev); in qxl_ttm_io_mem_reserve() local
84 mem->bus.offset = (mem->start << PAGE_SHIFT) + qdev->vram_base; in qxl_ttm_io_mem_reserve()
90 qdev->surfaceram_base; in qxl_ttm_io_mem_reserve()
127 struct qxl_device *qdev; in qxl_bo_move_notify() local
132 qdev = to_qxl(qbo->tbo.base.dev); in qxl_bo_move_notify()
135 qxl_surface_evict(qdev, qbo, new_mem ? true : false); in qxl_bo_move_notify()
185 static int qxl_ttm_init_mem_type(struct qxl_device *qdev, in qxl_ttm_init_mem_type() argument
189 return ttm_range_man_init(&qdev->mman.bdev, type, false, size); in qxl_ttm_init_mem_type()
192 int qxl_ttm_init(struct qxl_device *qdev) in qxl_ttm_init() argument
198 r = ttm_device_init(&qdev->mman.bdev, &qxl_bo_driver, NULL, in qxl_ttm_init()
199 qdev->ddev.anon_inode->i_mapping, in qxl_ttm_init()
200 qdev->ddev.vma_offset_manager, in qxl_ttm_init()
207 num_io_pages = qdev->rom->ram_header_offset / PAGE_SIZE; in qxl_ttm_init()
208 r = qxl_ttm_init_mem_type(qdev, TTM_PL_VRAM, num_io_pages); in qxl_ttm_init()
213 r = qxl_ttm_init_mem_type(qdev, TTM_PL_PRIV, in qxl_ttm_init()
214 qdev->surfaceram_size / PAGE_SIZE); in qxl_ttm_init()
220 (unsigned int)qdev->vram_size / (1024 * 1024)); in qxl_ttm_init()
224 (unsigned int)qdev->surfaceram_size / (1024 * 1024)); in qxl_ttm_init()
228 void qxl_ttm_fini(struct qxl_device *qdev) in qxl_ttm_fini() argument
230 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_fini()
231 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_PRIV); in qxl_ttm_fini()
232 ttm_device_fini(&qdev->mman.bdev); in qxl_ttm_fini()
236 void qxl_ttm_debugfs_init(struct qxl_device *qdev) in qxl_ttm_debugfs_init() argument
239 ttm_resource_manager_create_debugfs(ttm_manager_type(&qdev->mman.bdev, in qxl_ttm_debugfs_init()
241 qdev->ddev.primary->debugfs_root, "qxl_mem_mm"); in qxl_ttm_debugfs_init()
242 ttm_resource_manager_create_debugfs(ttm_manager_type(&qdev->mman.bdev, in qxl_ttm_debugfs_init()
244 qdev->ddev.primary->debugfs_root, "qxl_surf_mm"); in qxl_ttm_debugfs_init()