Home
last modified time | relevance | path

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

/openbmc/qemu/qapi/
H A Dqobject-input-visitor.c124 QObject *qobj; in qobject_input_try_get_object() local
135 qobj = tos->obj; in qobject_input_try_get_object()
136 assert(qobj); in qobject_input_try_get_object()
138 if (qobject_type(qobj) == QTYPE_QDICT) { in qobject_input_try_get_object()
140 ret = qdict_get(qobject_to(QDict, qobj), name); in qobject_input_try_get_object()
146 assert(qobject_type(qobj) == QTYPE_QLIST); in qobject_input_try_get_object()
180 QObject *qobj; in qobject_input_get_keyval() local
183 qobj = qobject_input_get_object(qiv, name, true, errp); in qobject_input_get_keyval()
184 if (!qobj) { in qobject_input_get_keyval()
188 qstr = qobject_to(QString, qobj); in qobject_input_get_keyval()
[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/qemu/hw/uefi/
H A Dvar-service-json.c155 QObject *qobj = NULL; in uefi_vars_to_json() local
159 v = qobject_output_visitor_new(&qobj); in uefi_vars_to_json()
161 visit_complete(v, &qobj); in uefi_vars_to_json()
166 gstr = qobject_to_json_pretty(qobj, true); in uefi_vars_to_json()
167 qobject_unref(qobj); in uefi_vars_to_json()
214 QObject *qobj; in uefi_vars_json_load() local
244 qobj = qobject_from_json(str, errp); in uefi_vars_json_load()
245 v = qobject_input_visitor_new(qobj); in uefi_vars_json_load()
255 qobject_unref(qobj); in uefi_vars_json_load()
/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.c1013 QObject *qobj; in qtest_qom_has_concrete_type() local
1045 qobj = qdict_get(devinfo, "name"); in qtest_qom_has_concrete_type()
1046 g_assert(qobj); in qtest_qom_has_concrete_type()
1047 qstr = qobject_to(QString, qobj); in qtest_qom_has_concrete_type()
1637 QObject *qobj; in qtest_get_machines() local
1669 qobj = qdict_get(minfo, "name"); in qtest_get_machines()
1670 g_assert(qobj); in qtest_get_machines()
1671 qstr = qobject_to(QString, qobj); in qtest_get_machines()
1675 qobj = qdict_get(minfo, "alias"); in qtest_get_machines()
1676 if (qobj) { /* The alias is optional */ in qtest_get_machines()
[all …]
/openbmc/qemu/hw/vfio-user/
H A Dproxy.c1021 bool (*check)(VFIOUserProxy *proxy, QObject *qobj, Error **errp);
1027 QObject *qobj; in caps_parse() local
1031 qobj = qdict_get(qdict, p->name); in caps_parse()
1032 if (qobj != NULL) { in caps_parse()
1033 if (!p->check(proxy, qobj, errp)) { in caps_parse()
1047 static bool check_migr_pgsize(VFIOUserProxy *proxy, QObject *qobj, Error **errp) in check_migr_pgsize() argument
1049 QNum *qn = qobject_to(QNum, qobj); in check_migr_pgsize()
1067 static bool check_bitmap(VFIOUserProxy *proxy, QObject *qobj, Error **errp) in check_bitmap() argument
1069 QNum *qn = qobject_to(QNum, qobj); in check_bitmap()
1093 static bool check_max_fds(VFIOUserProxy *proxy, QObject *qobj, Error **errp) in check_max_fds() argument
[all …]
/openbmc/qemu/qom/
H A Dobject_interfaces.c145 QObject *qobj; in user_creatable_add_qapi() local
149 v = qobject_output_visitor_new(&qobj); in user_creatable_add_qapi()
151 visit_complete(v, &qobj); in user_creatable_add_qapi()
154 props = qobject_to(QDict, qobj); in user_creatable_add_qapi()
162 qobject_unref(qobj); in user_creatable_add_qapi()
/openbmc/qemu/system/
H A Dqtest.c826 Object *qobj; in qtest_server_init() local
835 qobj = object_new(TYPE_QTEST); in qtest_server_init()
836 object_property_set_str(qobj, "chardev", chr->label, &error_abort); in qtest_server_init()
838 object_property_set_str(qobj, "log", qtest_log, &error_abort); in qtest_server_init()
840 object_property_add_child(qdev_get_machine(), "qtest", qobj); in qtest_server_init()
841 user_creatable_complete(USER_CREATABLE(qobj), errp); in qtest_server_init()
843 object_unparent(qobj); in qtest_server_init()
846 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()