Lines Matching full:g
32 virtio_gpu_rutabaga_update_cursor(VirtIOGPU *g, struct virtio_gpu_scanout *s, in virtio_gpu_rutabaga_update_cursor() argument
39 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in virtio_gpu_rutabaga_update_cursor()
41 res = virtio_gpu_find_resource(g, resource_id); in virtio_gpu_rutabaga_update_cursor()
69 VirtIOGPU *g = VIRTIO_GPU(b); in virtio_gpu_rutabaga_gl_flushed() local
70 virtio_gpu_process_cmdq(g); in virtio_gpu_rutabaga_gl_flushed()
74 rutabaga_cmd_create_resource_2d(VirtIOGPU *g, in rutabaga_cmd_create_resource_2d() argument
82 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_create_resource_2d()
108 QTAILQ_INSERT_HEAD(&g->reslist, res, next); in rutabaga_cmd_create_resource_2d()
112 rutabaga_cmd_create_resource_3d(VirtIOGPU *g, in rutabaga_cmd_create_resource_3d() argument
120 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_create_resource_3d()
147 QTAILQ_INSERT_HEAD(&g->reslist, res, next); in rutabaga_cmd_create_resource_3d()
151 virtio_gpu_rutabaga_resource_unref(VirtIOGPU *g, in virtio_gpu_rutabaga_resource_unref() argument
156 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in virtio_gpu_rutabaga_resource_unref()
171 QTAILQ_REMOVE(&g->reslist, res, next); in virtio_gpu_rutabaga_resource_unref()
176 rutabaga_cmd_resource_unref(VirtIOGPU *g, in rutabaga_cmd_resource_unref() argument
188 res = virtio_gpu_find_resource(g, unref.resource_id); in rutabaga_cmd_resource_unref()
191 virtio_gpu_rutabaga_resource_unref(g, res, &local_err); in rutabaga_cmd_resource_unref()
202 rutabaga_cmd_context_create(VirtIOGPU *g, in rutabaga_cmd_context_create() argument
208 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_context_create()
220 rutabaga_cmd_context_destroy(VirtIOGPU *g, in rutabaga_cmd_context_destroy() argument
226 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_context_destroy()
236 rutabaga_cmd_resource_flush(VirtIOGPU *g, struct virtio_gpu_ctrl_command *cmd) in rutabaga_cmd_resource_flush() argument
246 VirtIOGPUBase *vb = VIRTIO_GPU_BASE(g); in rutabaga_cmd_resource_flush()
247 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_resource_flush()
256 res = virtio_gpu_find_resource(g, rf.resource_id); in rutabaga_cmd_resource_flush()
289 rutabaga_cmd_set_scanout(VirtIOGPU *g, struct virtio_gpu_ctrl_command *cmd) in rutabaga_cmd_set_scanout() argument
295 VirtIOGPUBase *vb = VIRTIO_GPU_BASE(g); in rutabaga_cmd_set_scanout()
296 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_set_scanout()
314 res = virtio_gpu_find_resource(g, ss.resource_id); in rutabaga_cmd_set_scanout()
340 rutabaga_cmd_submit_3d(VirtIOGPU *g, in rutabaga_cmd_submit_3d() argument
349 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_submit_3d()
368 rutabaga_cmd_transfer_to_host_2d(VirtIOGPU *g, in rutabaga_cmd_transfer_to_host_2d() argument
375 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_transfer_to_host_2d()
393 rutabaga_cmd_transfer_to_host_3d(VirtIOGPU *g, in rutabaga_cmd_transfer_to_host_3d() argument
400 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_transfer_to_host_3d()
422 rutabaga_cmd_transfer_from_host_3d(VirtIOGPU *g, in rutabaga_cmd_transfer_from_host_3d() argument
429 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_transfer_from_host_3d()
451 rutabaga_cmd_attach_backing(VirtIOGPU *g, struct virtio_gpu_ctrl_command *cmd) in rutabaga_cmd_attach_backing() argument
458 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_attach_backing()
463 res = virtio_gpu_find_resource(g, att_rb.resource_id); in rutabaga_cmd_attach_backing()
467 ret = virtio_gpu_create_mapping_iov(g, att_rb.nr_entries, sizeof(att_rb), in rutabaga_cmd_attach_backing()
477 virtio_gpu_cleanup_mapping(g, res); in rutabaga_cmd_attach_backing()
484 rutabaga_cmd_detach_backing(VirtIOGPU *g, struct virtio_gpu_ctrl_command *cmd) in rutabaga_cmd_detach_backing() argument
489 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_detach_backing()
494 res = virtio_gpu_find_resource(g, detach_rb.resource_id); in rutabaga_cmd_detach_backing()
500 virtio_gpu_cleanup_mapping(g, res); in rutabaga_cmd_detach_backing()
504 rutabaga_cmd_ctx_attach_resource(VirtIOGPU *g, in rutabaga_cmd_ctx_attach_resource() argument
510 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_ctx_attach_resource()
522 rutabaga_cmd_ctx_detach_resource(VirtIOGPU *g, in rutabaga_cmd_ctx_detach_resource() argument
528 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_ctx_detach_resource()
540 rutabaga_cmd_get_capset_info(VirtIOGPU *g, struct virtio_gpu_ctrl_command *cmd) in rutabaga_cmd_get_capset_info() argument
546 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_get_capset_info()
556 virtio_gpu_ctrl_response(g, cmd, &resp.hdr, sizeof(resp)); in rutabaga_cmd_get_capset_info()
560 rutabaga_cmd_get_capset(VirtIOGPU *g, struct virtio_gpu_ctrl_command *cmd) in rutabaga_cmd_get_capset() argument
568 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_get_capset()
589 virtio_gpu_ctrl_response(g, cmd, &resp->hdr, sizeof(*resp) + capset_size); in rutabaga_cmd_get_capset()
594 rutabaga_cmd_resource_create_blob(VirtIOGPU *g, in rutabaga_cmd_resource_create_blob() argument
603 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_resource_create_blob()
616 result = virtio_gpu_create_mapping_iov(g, cblob.nr_entries, in rutabaga_cmd_resource_create_blob()
635 virtio_gpu_cleanup_mapping(g, res); in rutabaga_cmd_resource_create_blob()
640 QTAILQ_INSERT_HEAD(&g->reslist, res, next); in rutabaga_cmd_resource_create_blob()
645 rutabaga_cmd_resource_map_blob(VirtIOGPU *g, in rutabaga_cmd_resource_map_blob() argument
656 VirtIOGPUBase *vb = VIRTIO_GPU_BASE(g); in rutabaga_cmd_resource_map_blob()
657 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_resource_map_blob()
663 res = virtio_gpu_find_resource(g, mblob.resource_id); in rutabaga_cmd_resource_map_blob()
711 virtio_gpu_ctrl_response(g, cmd, &resp.hdr, sizeof(resp)); in rutabaga_cmd_resource_map_blob()
715 rutabaga_cmd_resource_unmap_blob(VirtIOGPU *g, in rutabaga_cmd_resource_unmap_blob() argument
723 VirtIOGPUBase *vb = VIRTIO_GPU_BASE(g); in rutabaga_cmd_resource_unmap_blob()
724 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_resource_unmap_blob()
730 res = virtio_gpu_find_resource(g, ublob.resource_id); in rutabaga_cmd_resource_unmap_blob()
752 virtio_gpu_rutabaga_process_cmd(VirtIOGPU *g, in virtio_gpu_rutabaga_process_cmd() argument
758 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in virtio_gpu_rutabaga_process_cmd()
764 rutabaga_cmd_context_create(g, cmd); in virtio_gpu_rutabaga_process_cmd()
767 rutabaga_cmd_context_destroy(g, cmd); in virtio_gpu_rutabaga_process_cmd()
770 rutabaga_cmd_create_resource_2d(g, cmd); in virtio_gpu_rutabaga_process_cmd()
773 rutabaga_cmd_create_resource_3d(g, cmd); in virtio_gpu_rutabaga_process_cmd()
776 rutabaga_cmd_submit_3d(g, cmd); in virtio_gpu_rutabaga_process_cmd()
779 rutabaga_cmd_transfer_to_host_2d(g, cmd); in virtio_gpu_rutabaga_process_cmd()
782 rutabaga_cmd_transfer_to_host_3d(g, cmd); in virtio_gpu_rutabaga_process_cmd()
785 rutabaga_cmd_transfer_from_host_3d(g, cmd); in virtio_gpu_rutabaga_process_cmd()
788 rutabaga_cmd_attach_backing(g, cmd); in virtio_gpu_rutabaga_process_cmd()
791 rutabaga_cmd_detach_backing(g, cmd); in virtio_gpu_rutabaga_process_cmd()
794 rutabaga_cmd_set_scanout(g, cmd); in virtio_gpu_rutabaga_process_cmd()
797 rutabaga_cmd_resource_flush(g, cmd); in virtio_gpu_rutabaga_process_cmd()
800 rutabaga_cmd_resource_unref(g, cmd); in virtio_gpu_rutabaga_process_cmd()
803 rutabaga_cmd_ctx_attach_resource(g, cmd); in virtio_gpu_rutabaga_process_cmd()
806 rutabaga_cmd_ctx_detach_resource(g, cmd); in virtio_gpu_rutabaga_process_cmd()
809 rutabaga_cmd_get_capset_info(g, cmd); in virtio_gpu_rutabaga_process_cmd()
812 rutabaga_cmd_get_capset(g, cmd); in virtio_gpu_rutabaga_process_cmd()
815 virtio_gpu_get_display_info(g, cmd); in virtio_gpu_rutabaga_process_cmd()
818 virtio_gpu_get_edid(g, cmd); in virtio_gpu_rutabaga_process_cmd()
821 rutabaga_cmd_resource_create_blob(g, cmd); in virtio_gpu_rutabaga_process_cmd()
824 rutabaga_cmd_resource_map_blob(g, cmd); in virtio_gpu_rutabaga_process_cmd()
827 rutabaga_cmd_resource_unmap_blob(g, cmd); in virtio_gpu_rutabaga_process_cmd()
840 virtio_gpu_ctrl_response_nodata(g, cmd, cmd->error); in virtio_gpu_rutabaga_process_cmd()
844 virtio_gpu_ctrl_response_nodata(g, cmd, VIRTIO_GPU_RESP_OK_NODATA); in virtio_gpu_rutabaga_process_cmd()
863 VirtIOGPU *g = VIRTIO_GPU(data->vr); in virtio_gpu_rutabaga_aio_cb() local
870 QTAILQ_FOREACH_SAFE(cmd, &g->fenceq, next, tmp) { in virtio_gpu_rutabaga_aio_cb()
891 virtio_gpu_ctrl_response_nodata(g, cmd, VIRTIO_GPU_RESP_OK_NODATA); in virtio_gpu_rutabaga_aio_cb()
892 QTAILQ_REMOVE(&g->fenceq, cmd, next); in virtio_gpu_rutabaga_aio_cb()
904 VirtIOGPU *g = (VirtIOGPU *)user_data; in virtio_gpu_rutabaga_fence_cb() local
905 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in virtio_gpu_rutabaga_fence_cb()
951 static bool virtio_gpu_rutabaga_init(VirtIOGPU *g, Error **errp) in virtio_gpu_rutabaga_init() argument
958 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in virtio_gpu_rutabaga_init()
988 builder.user_data = (uint64_t)g; in virtio_gpu_rutabaga_init()
1035 static int virtio_gpu_rutabaga_get_num_capsets(VirtIOGPU *g) in virtio_gpu_rutabaga_get_num_capsets() argument
1039 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in virtio_gpu_rutabaga_get_num_capsets()
1052 VirtIOGPU *g = VIRTIO_GPU(vdev); in virtio_gpu_rutabaga_handle_ctrl() local
1064 QTAILQ_INSERT_TAIL(&g->cmdq, cmd, next); in virtio_gpu_rutabaga_handle_ctrl()
1068 virtio_gpu_process_cmdq(g); in virtio_gpu_rutabaga_handle_ctrl()