/openbmc/qemu/tests/unit/ |
H A D | test-qobject-output-visitor.c | 68 qnum = qobject_to(QNum, visitor_get(data)); in test_visitor_out_int() 82 qbool = qobject_to(QBool, visitor_get(data)); in test_visitor_out_bool() 95 qnum = qobject_to(QNum, visitor_get(data)); in test_visitor_out_number() 108 qstr = qobject_to(QString, visitor_get(data)); in test_visitor_out_string() 122 qstr = qobject_to(QString, visitor_get(data)); in test_visitor_out_no_string() 136 qstr = qobject_to(QString, visitor_get(data)); in test_visitor_out_enum() 154 qdict = qobject_to(QDict, visitor_get(data)); in test_visitor_out_struct() 192 qdict = qobject_to(QDict, visitor_get(data)); in test_visitor_out_struct_nested() 245 qlist = qobject_to(QList, visitor_get(data)); in test_visitor_out_list() 254 qdict = qobject_to(QDict, entry->value); in test_visitor_out_list() [all …]
|
H A D | check-qlit.c | 62 qdict_put(qobject_to(QDict, qobj), "bee", qlist_new()); in qlit_equal_qobject_test() 74 qdict = qobject_to(QDict, qobj); in qobject_from_qlit_test() 81 g_assert_cmpint(qnum_get_int(qobject_to(QNum, obj)), ==, 43); in qobject_from_qlit_test() 84 g_assert_cmpint(qnum_get_int(qobject_to(QNum, obj)), ==, 44); in qobject_from_qlit_test() 87 g_assert(qbool_get_bool(qobject_to(QBool, obj))); in qobject_from_qlit_test()
|
H A D | test-qmp-cmds.c | 195 ret = qobject_to(QDict, in test_dispatch_cmd() 206 ret = qobject_to(QDict, in test_dispatch_cmd_oob() 245 ret = qobject_to(QDict, do_qmp_dispatch(false, in test_dispatch_cmd_io() 265 ret3 = qobject_to(QNum, do_qmp_dispatch(false, in test_dispatch_cmd_io() 280 ret = qobject_to(QDict, do_qmp_dispatch(false, cmd)); in test_dispatch_cmd_deprecated() 286 ret = qobject_to(QDict, do_qmp_dispatch(false, cmd)); in test_dispatch_cmd_deprecated() 304 ret = qobject_to(QDict, do_qmp_dispatch(false, cmd)); in test_dispatch_cmd_arg_deprecated() 310 ret = qobject_to(QDict, do_qmp_dispatch(false, cmd)); in test_dispatch_cmd_arg_deprecated() 327 ret = qobject_to(QDict, do_qmp_dispatch(false, cmd)); in test_dispatch_cmd_ret_deprecated() 333 ret = qobject_to(QDict, do_qmp_dispatch(false, cmd)); in test_dispatch_cmd_ret_deprecated() [all …]
|
H A D | check-qjson.c | 29 QString *ret = qobject_to(QString, qobject_from_json(qjstr, errp)); in from_json_str() 119 str = qobject_to(QString, in string_with_quotes() 812 qnum = qobject_to(QNum, in int_number() 854 qnum = qobject_to(QNum, in uint_number() 895 qnum = qobject_to(QNum, in float_number() 920 qbool = qobject_to(QBool, obj); in keyword_literal() 931 qbool = qobject_to(QBool, obj); in keyword_literal() 972 qbool = qobject_to(QBool, qobject_from_jsonf_nofail("%i", false)); in interpolation_valid() 978 qbool = qobject_to(QBool, qobject_from_jsonf_nofail("%i", 2)); in interpolation_valid() 985 qnum = qobject_to(QNum, qobject_from_jsonf_nofail("%d", value_d)); in interpolation_valid() [all …]
|
H A D | check-block-qdict.c | 213 dict1 = qobject_to(QDict, qlist_pop(test_list)); in qdict_array_split_test() 214 dict2 = qobject_to(QDict, qlist_pop(test_list)); in qdict_array_split_test() 215 int1 = qobject_to(QNum, qlist_pop(test_list)); in qdict_array_split_test() 282 int1 = qobject_to(QNum, qlist_pop(test_list)); in qdict_array_split_test() 440 dst = qobject_to(QDict, qdict_crumple(src, &error_abort)); in qdict_crumple_test_recursive() 462 rule = qobject_to(QDict, qlist_pop(rules)); in qdict_crumple_test_recursive() 469 rule = qobject_to(QDict, qlist_pop(rules)); in qdict_crumple_test_recursive() 491 empty_list_0 = qobject_to(QDict, qlist_pop(empty_list)); in qdict_crumple_test_recursive() 506 dst = qobject_to(QDict, qdict_crumple(src, &error_abort)); in qdict_crumple_test_empty()
|
H A D | check-qlist.c | 59 g_assert(qobject_to(QList, QOBJECT(qlist)) == qlist); in qobject_to_qlist_test() 80 qi = qobject_to(QNum, qlist_entry_obj(entry)); in qlist_iter_test()
|
H A D | check-qdict.c | 51 qn = qobject_to(QNum, ent->value); in qdict_put_obj_test() 81 qn = qobject_to(QNum, obj); in qdict_get_test() 194 g_assert(qobject_to(QDict, QOBJECT(tests_dict)) == tests_dict); in qobject_to_qdict_test()
|
H A D | test-qga.c | 309 g_assert(qdict_haskey(qobject_to(QDict, entry->value), "online")); in test_qga_get_vcpus() 310 g_assert(qdict_haskey(qobject_to(QDict, entry->value), "logical-id")); in test_qga_get_vcpus() 328 g_assert(qdict_haskey(qobject_to(QDict, entry->value), "name")); in test_qga_get_fsinfo() 329 g_assert(qdict_haskey(qobject_to(QDict, entry->value), "mountpoint")); in test_qga_get_fsinfo() 330 g_assert(qdict_haskey(qobject_to(QDict, entry->value), "type")); in test_qga_get_fsinfo() 331 g_assert(qdict_haskey(qobject_to(QDict, entry->value), "disk")); in test_qga_get_fsinfo() 370 g_assert(qdict_haskey(qobject_to(QDict, entry->value), in test_qga_get_memory_blocks() 372 g_assert(qdict_haskey(qobject_to(QDict, entry->value), "online")); in test_qga_get_memory_blocks() 391 g_assert(qdict_haskey(qobject_to(QDict, entry->value), "name")); in test_qga_network_get_interfaces()
|
H A D | check-qnum.c | 128 g_assert(qobject_to(QNum, QOBJECT(qn)) == qn); in qobject_to_qnum_test() 132 g_assert(qobject_to(QNum, QOBJECT(qn)) == qn); in qobject_to_qnum_test()
|
H A D | check-qstring.c | 66 g_assert(qobject_to(QString, QOBJECT(qstring)) == qstring); in qobject_to_qstring_test()
|
/openbmc/qemu/qobject/ |
H A D | qdict.c | 196 return qnum_get_double(qobject_to(QNum, qdict_get(qdict, key))); in qdict_get_double() 209 return qnum_get_int(qobject_to(QNum, qdict_get(qdict, key))); in qdict_get_int() 222 return qbool_get_bool(qobject_to(QBool, qdict_get(qdict, key))); in qdict_get_bool() 230 return qobject_to(QList, qdict_get(qdict, key)); in qdict_get_qlist() 238 return qobject_to(QDict, qdict_get(qdict, key)); in qdict_get_qdict() 252 return qstring_get_str(qobject_to(QString, qdict_get(qdict, key))); in qdict_get_str() 265 QNum *qnum = qobject_to(QNum, qdict_get(qdict, key)); in qdict_get_try_int() 284 QBool *qbool = qobject_to(QBool, qdict_get(qdict, key)); in qdict_get_try_bool() 299 QString *qstr = qobject_to(QString, qdict_get(qdict, key)); in qdict_get_try_str() 402 const QDict *dict_x = qobject_to(QDict, x); in qdict_is_equal() [all …]
|
H A D | qlit.c | 72 return lhs->value.qbool == qbool_get_bool(qobject_to(QBool, rhs)); in qlit_equal_qobject() 74 return lhs->value.qnum == qnum_get_int(qobject_to(QNum, rhs)); in qlit_equal_qobject() 77 qstring_get_str(qobject_to(QString, rhs))) == 0); in qlit_equal_qobject() 79 return qlit_equal_qdict(lhs, qobject_to(QDict, rhs)); in qlit_equal_qobject() 81 return qlit_equal_qlist(lhs, qobject_to(QList, rhs)); in qlit_equal_qobject()
|
H A D | qjson.c | 130 qdict = qobject_to(QDict, qobject_from_vjsonf_nofail(string, ap)); in qdict_from_vjsonf_nofail() 159 QNum *val = qobject_to(QNum, obj); in to_json() 177 QString *val = qobject_to(QString, obj); in to_json() 183 QDict *val = qobject_to(QDict, obj); in to_json() 198 QList *val = qobject_to(QList, obj); in to_json() 211 QBool *val = qobject_to(QBool, obj); in to_json()
|
H A D | qbool.c | 47 return qobject_to(QBool, x)->value == qobject_to(QBool, y)->value; in qbool_is_equal() 57 g_free(qobject_to(QBool, obj)); in qbool_destroy_obj()
|
H A D | block-qdict.c | 74 dict_val = qobject_to(QDict, value); in qdict_flatten_qlist() 75 list_val = qobject_to(QList, value); in qdict_flatten_qlist() 107 dict_val = qobject_to(QDict, value); in qdict_flatten_qdict() 108 list_val = qobject_to(QList, value); in qdict_flatten_qdict() 439 dict_val = qobject_to(QDict, ent->value); in qdict_crumple() 440 list_val = qobject_to(QList, ent->value); in qdict_crumple() 449 child_dict = qobject_to(QDict, child); in qdict_crumple() 482 dict_val = qobject_to(QDict, ent->value); in qdict_crumple() 517 qlist_append_obj(qobject_to(QList, dst), qobject_ref(child)); in qdict_crumple() 563 s = buf = qnum_to_string(qobject_to(QNum, ent->value)); in qdict_crumple_for_keyval_qiv() [all …]
|
H A D | qstring.c | 86 return !strcmp(qobject_to(QString, x)->string, in qstring_is_equal() 87 qobject_to(QString, y)->string); in qstring_is_equal() 99 qs = qobject_to(QString, obj); in qstring_destroy_obj()
|
H A D | qlist.c | 145 const QList *list_x = qobject_to(QList, x); in qlist_is_equal() 146 const QList *list_y = qobject_to(QList, y); in qlist_is_equal() 175 qlist = qobject_to(QList, obj); in qlist_destroy_obj()
|
H A D | qnum.c | 186 QNum *num_x = qobject_to(QNum, x); in qnum_is_equal() 187 QNum *num_y = qobject_to(QNum, y); in qnum_is_equal() 236 g_free(qobject_to(QNum, obj)); in qnum_destroy_obj()
|
/openbmc/qemu/tests/qtest/ |
H A D | test-x86-cpuid-compat.c | 19 cpu0 = qobject_to(QDict, qlist_peek(ret)); in get_cpu0_qom_path() 39 QBool *value = qobject_to(QBool, qom_get(path, prop)); in qom_get_bool() 61 value = qobject_to(QNum, qom_get(path, args->property)); in test_cpuid_prop() 124 QDict *w = qobject_to(QDict, qlist_entry_obj(e)); in get_feature_word() 135 g_assert(qnum_get_try_int(qobject_to(QNum, in get_feature_word() 153 present = qobject_to(QList, qom_get(path, "feature-words")); in test_feature_flag() 154 filtered = qobject_to(QList, qom_get(path, "filtered-features")); in test_feature_flag()
|
H A D | device-introspect-test.c | 55 QDict *d = qobject_to(QDict, qlist_entry_obj(e)); in qom_type_index() 88 QDict *d = qobject_to(QDict, qlist_entry_obj(e)); in type_list_find() 156 QDict *d = qobject_to(QDict, qlist_entry_obj(e)); in test_qom_list_parents() 179 QDict *d = qobject_to(QDict, qlist_entry_obj(e)); in test_qom_list_fields() 250 type = qdict_get_try_str(qobject_to(QDict, qlist_entry_obj(entry)), in test_device_intro_concrete() 284 QDict *d = qobject_to(QDict, qlist_entry_obj(e)); in test_abstract_interfaces()
|
H A D | numa-test.c | 100 cpu = qobject_to(QDict, e); in test_query_cpus() 143 cpu = qobject_to(QDict, e); in pc_numa_cpu() 196 cpu = qobject_to(QDict, e); in spapr_numa_cpu() 240 cpu = qobject_to(QDict, e); in aarch64_numa_cpu() 290 cpu = qobject_to(QDict, e); in loongarch64_numa_cpu() 356 cpu = qobject_to(QDict, e); in pc_dynamic_cpu_cfg()
|
H A D | qom-test.c | 40 list = qobject_to(QList, qdict_get(response, "return")); in test_properties() 42 tuple = qobject_to(QDict, qlist_entry_obj(entry)); in test_properties()
|
/openbmc/qemu/qapi/ |
H A D | qobject-input-visitor.c | 140 ret = qdict_get(qobject_to(QDict, qobj), name); in qobject_input_try_get_object() 188 qstr = qobject_to(QString, qobj); in qobject_input_get_keyval() 213 QDict *qdict = qobject_to(QDict, obj); in qobject_input_push() 214 QList *qlist = qobject_to(QList, obj); in qobject_input_push() 347 assert(tos && qobject_to(QList, tos->obj)); in qobject_input_next_list() 361 assert(tos && qobject_to(QList, tos->obj)); in qobject_input_check_list() 406 qnum = qobject_to(QNum, qobj); in qobject_input_type_int64() 445 qnum = qobject_to(QNum, qobj); in qobject_input_type_uint64() 495 qbool = qobject_to(QBool, qobj); in qobject_input_type_bool() 535 qstr = qobject_to(QString, qobj); in qobject_input_type_str() [all …]
|
/openbmc/qemu/util/ |
H A D | keyval.c | 252 cur = qobject_to(QDict, next); in keyval_parse_one() 339 keyval_do_merge(qobject_to(QDict, old_value), in keyval_do_merge() 340 qobject_to(QDict, ent->value), in keyval_do_merge() 346 QList *old = qobject_to(QList, old_value); in keyval_do_merge() 347 QList *new = qobject_to(QList, ent->value); in keyval_do_merge() 430 qdict = qobject_to(QDict, ent->value); in keyval_listify()
|
/openbmc/qemu/block/ |
H A D | qapi.c | 782 QNum *value = qobject_to(QNum, obj); in dump_qobject() 789 QString *value = qobject_to(QString, obj); in dump_qobject() 794 QDict *value = qobject_to(QDict, obj); in dump_qobject() 799 QList *value = qobject_to(QList, obj); in dump_qobject() 804 QBool *value = qobject_to(QBool, obj); in dump_qobject() 868 return qdict_size(qobject_to(QDict, obj)) == 0; in qobject_is_empty_dump() 871 return qlist_empty(qobject_to(QList, obj)); in qobject_is_empty_dump() 891 data = qdict_get(qobject_to(QDict, obj), "data"); in bdrv_image_info_specific_dump()
|