Home
last modified time | relevance | path

Searched refs:qobj (Results 1 – 16 of 16) sorted by relevance

/openbmc/qemu/qapi/
H A Dqobject-input-visitor.c124 QObject *qobj; in qobject_input_try_get_object() local
136 assert(qobj); in qobject_input_try_get_object()
184 if (!qobj) { in qobject_input_get_keyval()
287 if (!qobj) { in qobject_input_start_struct()
325 if (!qobj) { in qobject_input_start_list()
387 if (!qobj) { in qobject_input_start_alternate()
403 if (!qobj) { in qobject_input_type_int64()
442 if (!qobj) { in qobject_input_type_uint64()
492 if (!qobj) { in qobject_input_type_bool()
532 if (!qobj) { in qobject_input_type_str()
[all …]
/openbmc/qemu/tests/unit/
H A Dcheck-qlit.c56 QObject *qobj = make_qobject(); in qlit_equal_qobject_test() local
58 g_assert(qlit_equal_qobject(&qlit, qobj)); in qlit_equal_qobject_test()
60 g_assert(!qlit_equal_qobject(&qlit_foo, qobj)); in qlit_equal_qobject_test()
62 qdict_put(qobject_to(QDict, qobj), "bee", qlist_new()); in qlit_equal_qobject_test()
63 g_assert(!qlit_equal_qobject(&qlit, qobj)); in qlit_equal_qobject_test()
65 qobject_unref(qobj); in qlit_equal_qobject_test()
70 QObject *obj, *qobj = qobject_from_qlit(&qlit); in qobject_from_qlit_test() local
74 qdict = qobject_to(QDict, qobj); in qobject_from_qlit_test()
90 qobject_unref(qobj); in qobject_from_qlit_test()
H A Dtest-qobject-output-visitor.c296 QObject *qobj; in test_visitor_out_any() local
303 qobj = QOBJECT(qnum_from_int(-42)); in test_visitor_out_any()
304 visit_type_any(data->ov, NULL, &qobj, &error_abort); in test_visitor_out_any()
309 qobject_unref(qobj); in test_visitor_out_any()
316 qobj = QOBJECT(qdict); in test_visitor_out_any()
317 visit_type_any(data->ov, NULL, &qobj, &error_abort); in test_visitor_out_any()
318 qobject_unref(qobj); in test_visitor_out_any()
H A Dtest-qobject-input-visitor.c619 QObject *qobj; in test_visitor_in_any() local
634 qobj = qdict_get(qdict, "integer"); in test_visitor_in_any()
635 g_assert(qobj); in test_visitor_in_any()
636 qnum = qobject_to(QNum, qobj); in test_visitor_in_any()
640 qobj = qdict_get(qdict, "boolean"); in test_visitor_in_any()
641 g_assert(qobj); in test_visitor_in_any()
642 qbool = qobject_to(QBool, qobj); in test_visitor_in_any()
645 qobj = qdict_get(qdict, "string"); in test_visitor_in_any()
646 g_assert(qobj); in test_visitor_in_any()
647 qstring = qobject_to(QString, qobj); in test_visitor_in_any()
H A Dcheck-qjson.c968 QObject *qobj; in interpolation_valid() local
1029 qobj = qobject_from_jsonf_nofail("%p", value_p); in interpolation_valid()
1030 g_assert(qobj == value_p); in interpolation_valid()
/openbmc/linux/drivers/gpu/drm/qxl/
H A Dqxl_ioctl.c115 struct qxl_bo *qobj; in qxlhw_handle_to_bo() local
122 qobj = gem_to_qxl_bo(gobj); in qxlhw_handle_to_bo()
129 *qbo_p = qobj; in qxlhw_handle_to_bo()
306 struct qxl_bo *qobj = NULL; in qxl_update_area_ioctl() local
317 qobj = gem_to_qxl_bo(gobj); in qxl_update_area_ioctl()
319 ret = qxl_bo_reserve(qobj); in qxl_update_area_ioctl()
323 if (!qobj->tbo.pin_count) { in qxl_update_area_ioctl()
324 qxl_ttm_placement_from_domain(qobj, qobj->type); in qxl_update_area_ioctl()
325 ret = ttm_bo_validate(&qobj->tbo, &qobj->placement, &ctx); in qxl_update_area_ioctl()
333 if (!qobj->surface_id) in qxl_update_area_ioctl()
[all …]
H A Dqxl_dumb.c36 struct qxl_bo *qobj; in qxl_mode_dumb_create() local
70 qobj = gem_to_qxl_bo(gobj); in qxl_mode_dumb_create()
71 qobj->is_dumb = true; in qxl_mode_dumb_create()
H A Dqxl_gem.c33 struct qxl_bo *qobj = gem_to_qxl_bo(gobj); in qxl_gem_object_free() local
39 qxl_surface_evict(qdev, qobj, false); in qxl_gem_object_free()
41 tbo = &qobj->tbo; in qxl_gem_object_free()
H A Dqxl_display.c415 struct qxl_bo *qobj; in qxl_framebuffer_surface_dirty() local
422 qobj = gem_to_qxl_bo(fb->obj[0]); in qxl_framebuffer_surface_dirty()
424 is_primary = qobj->shadow ? qobj->shadow->is_primary : qobj->is_primary; in qxl_framebuffer_surface_dirty()
439 qxl_draw_dirty_fb(qdev, fb, qobj, flags, color, in qxl_framebuffer_surface_dirty()
/openbmc/qemu/tests/qtest/
H A Dreadconfig-test.c184 QObject *qobj; in test_docs_config_ich9() local
190 qobj = qdict_get(resp, "return"); in test_docs_config_ich9()
191 test_object_available(qobj, "ehci", "ich9-usb-ehci1"); in test_docs_config_ich9()
192 test_object_available(qobj, "uhci-1", "ich9-usb-uhci1"); in test_docs_config_ich9()
193 test_object_available(qobj, "uhci-2", "ich9-usb-uhci2"); in test_docs_config_ich9()
194 test_object_available(qobj, "uhci-3", "ich9-usb-uhci3"); in test_docs_config_ich9()
235 QObject *qobj; in test_docs_q35() local
283 qobj = qdict_get(resp, "return"); in test_docs_q35()
287 test_object_available(qobj, devices[i].name, devices[i].type); in test_docs_q35()
H A Dlibqmp.c141 QObject *qobj; in _qmp_fd_vsend_fds() local
148 qobj = qobject_from_vjsonf_nofail(fmt, ap); in _qmp_fd_vsend_fds()
151 if (qobj) { in _qmp_fd_vsend_fds()
153 GString *str = qobject_to_json(qobj); in _qmp_fd_vsend_fds()
176 qobject_unref(qobj); in _qmp_fd_vsend_fds()
H A Dlibqtest.c1511 QObject *qobj; in qtest_get_machines() local
1543 qobj = qdict_get(minfo, "name"); in qtest_get_machines()
1544 g_assert(qobj); in qtest_get_machines()
1545 qstr = qobject_to(QString, qobj); in qtest_get_machines()
1549 qobj = qdict_get(minfo, "alias"); in qtest_get_machines()
1574 QObject *qobj; in qtest_get_cpu_models() local
1598 qobj = qdict_get(minfo, "name"); in qtest_get_cpu_models()
1599 g_assert(qobj); in qtest_get_cpu_models()
1614 qbool = qobject_to(QBool, qobj); in qtest_get_cpu_models()
1708 QObject *qobj; in qtest_has_device() local
[all …]
/openbmc/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_ioctl.c126 struct virtio_gpu_object *qobj; in virtio_gpu_resource_create_ioctl() local
165 ret = virtio_gpu_object_create(vgdev, &params, &qobj, fence); in virtio_gpu_resource_create_ioctl()
169 obj = &qobj->base.base; in virtio_gpu_resource_create_ioctl()
177 rc->res_handle = qobj->hw_res_handle; /* similiar to a VM address */ in virtio_gpu_resource_create_ioctl()
196 struct virtio_gpu_object *qobj = NULL; in virtio_gpu_resource_info_ioctl() local
202 qobj = gem_to_virtio_gpu_obj(gobj); in virtio_gpu_resource_info_ioctl()
204 ri->size = qobj->base.base.size; in virtio_gpu_resource_info_ioctl()
205 ri->res_handle = qobj->hw_res_handle; in virtio_gpu_resource_info_ioctl()
206 if (qobj->host3d_blob || qobj->guest_blob) in virtio_gpu_resource_info_ioctl()
207 ri->blob_mem = qobj->blob_mem; in virtio_gpu_resource_info_ioctl()
/openbmc/qemu/qom/
H A Dobject_interfaces.c143 QObject *qobj; in user_creatable_add_qapi() local
147 v = qobject_output_visitor_new(&qobj); in user_creatable_add_qapi()
149 visit_complete(v, &qobj); in user_creatable_add_qapi()
152 props = qobject_to(QDict, qobj); in user_creatable_add_qapi()
160 qobject_unref(qobj); in user_creatable_add_qapi()
/openbmc/qemu/system/
H A Dqtest.c835 Object *qobj; in qtest_server_init() local
844 qobj = object_new(TYPE_QTEST); in qtest_server_init()
845 object_property_set_str(qobj, "chardev", chr->label, &error_abort); in qtest_server_init()
847 object_property_set_str(qobj, "log", qtest_log, &error_abort); in qtest_server_init()
849 object_property_add_child(qdev_get_machine(), "qtest", qobj); in qtest_server_init()
850 user_creatable_complete(USER_CREATABLE(qobj), errp); in qtest_server_init()
852 object_unparent(qobj); in qtest_server_init()
855 object_unref(qobj); in qtest_server_init()
/openbmc/qemu/qobject/
H A Dblock-qdict.c695 QObject *qobj; in qdict_rename_keys() local
705 qobj = qdict_get(qdict, renames->from); in qdict_rename_keys()
706 qdict_put_obj(qdict, renames->to, qobject_ref(qobj)); in qdict_rename_keys()