Lines Matching refs:qdev

39 	struct qxl_device *qdev = to_qxl(dev);  in qxl_alloc_ioctl()  local
50 ret = qxl_gem_object_create_with_handle(qdev, file_priv, in qxl_alloc_ioctl()
67 struct qxl_device *qdev = to_qxl(dev); in qxl_map_ioctl() local
70 return drm_gem_ttm_dumb_map_offset(file_priv, &qdev->ddev, qxl_map->handle, in qxl_map_ioctl()
88 apply_reloc(struct qxl_device *qdev, struct qxl_reloc_info *info) in apply_reloc() argument
92 reloc_page = qxl_bo_kmap_atomic_page(qdev, info->dst_bo, info->dst_offset & PAGE_MASK); in apply_reloc()
93 *(uint64_t *)(reloc_page + (info->dst_offset & ~PAGE_MASK)) = qxl_bo_physical_address(qdev, in apply_reloc()
96 qxl_bo_kunmap_atomic_page(qdev, info->dst_bo, reloc_page); in apply_reloc()
100 apply_surf_reloc(struct qxl_device *qdev, struct qxl_reloc_info *info) in apply_surf_reloc() argument
108 reloc_page = qxl_bo_kmap_atomic_page(qdev, info->dst_bo, info->dst_offset & PAGE_MASK); in apply_surf_reloc()
110 qxl_bo_kunmap_atomic_page(qdev, info->dst_bo, reloc_page); in apply_surf_reloc()
142 static int qxl_process_single_command(struct qxl_device *qdev, in qxl_process_single_command() argument
177 ret = qxl_alloc_release_reserved(qdev, in qxl_process_single_command()
187 fb_cmd = qxl_bo_kmap_atomic_page(qdev, cmd_bo, (release->release_offset & PAGE_MASK)); in qxl_process_single_command()
195 draw->mm_time = qdev->rom->mm_clock; in qxl_process_single_command()
198 qxl_bo_kunmap_atomic_page(qdev, cmd_bo, fb_cmd); in qxl_process_single_command()
258 apply_reloc(qdev, &reloc_info[i]); in qxl_process_single_command()
260 apply_surf_reloc(qdev, &reloc_info[i]); in qxl_process_single_command()
264 ret = qxl_push_command_ring_release(qdev, release, cmd->type, true); in qxl_process_single_command()
269 qxl_release_free(qdev, release); in qxl_process_single_command()
278 struct qxl_device *qdev = to_qxl(dev); in qxl_execbuffer_ioctl() local
293 ret = qxl_process_single_command(qdev, &user_cmd, file_priv); in qxl_execbuffer_ioctl()
303 struct qxl_device *qdev = to_qxl(dev); in qxl_update_area_ioctl() local
335 ret = qxl_bo_check_id(qdev, qobj); in qxl_update_area_ioctl()
340 ret = qxl_io_update_area(qdev, qobj, &area); in qxl_update_area_ioctl()
353 struct qxl_device *qdev = to_qxl(dev); in qxl_getparam_ioctl() local
358 param->value = qdev->rom->n_surfaces; in qxl_getparam_ioctl()
372 struct qxl_device *qdev = to_qxl(dev); in qxl_clientcap_ioctl() local
386 if (qdev->rom->client_capabilities[byte] & (1 << idx)) in qxl_clientcap_ioctl()
394 struct qxl_device *qdev = to_qxl(dev); in qxl_alloc_surf_ioctl() local
412 ret = qxl_gem_object_create_with_handle(qdev, file, in qxl_alloc_surf_ioctl()