/openbmc/qemu/include/qapi/qmp/ |
H A D | qnum.h | 47 struct QNum { struct 57 void qnum_unref(QNum *q); argument 59 G_DEFINE_AUTOPTR_CLEANUP_FUNC(QNum, qnum_unref) 61 QNum *qnum_from_int(int64_t value); 62 QNum *qnum_from_uint(uint64_t value); 63 QNum *qnum_from_double(double value); 65 bool qnum_get_try_int(const QNum *qn, int64_t *val); 66 int64_t qnum_get_int(const QNum *qn); 69 uint64_t qnum_get_uint(const QNum *qn); 71 double qnum_get_double(QNum *qn); [all …]
|
/openbmc/qemu/qobject/ |
H A D | qnum.c | 24 QNum *qnum_from_int(int64_t value) in qnum_from_int() 26 QNum *qn = g_new(QNum, 1); in qnum_from_int() 40 QNum *qnum_from_uint(uint64_t value) in qnum_from_uint() 42 QNum *qn = g_new(QNum, 1); in qnum_from_uint() 56 QNum *qnum_from_double(double value) in qnum_from_double() 58 QNum *qn = g_new(QNum, 1); in qnum_from_double() 148 double qnum_get_double(QNum *qn) in qnum_get_double() 163 char *qnum_to_string(QNum *qn) in qnum_to_string() 190 QNum *num_x = qobject_to(QNum, x); in qnum_is_equal() 191 QNum *num_y = qobject_to(QNum, y); in qnum_is_equal() [all …]
|
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() 265 QNum *qnum = qobject_to(QNum, qdict_get(qdict, key)); in qdict_get_try_int()
|
H A D | qjson.c | 159 QNum *val = qobject_to(QNum, obj); in to_json()
|
H A D | qobject.c | 21 offsetof(QNum, base) != 0 ||
|
H A D | qlit.c | 74 return lhs->value.qnum == qnum_get_int(qobject_to(QNum, rhs)); in qlit_equal_qobject()
|
H A D | block-qdict.c | 563 s = buf = qnum_to_string(qobject_to(QNum, ent->value)); in qdict_crumple_for_keyval_qiv()
|
/openbmc/qemu/tests/unit/ |
H A D | check-qnum.c | 27 QNum *qn; in qnum_from_int_test() 42 QNum *qn; in qnum_from_uint_test() 57 QNum *qn; in qnum_from_double_test() 72 QNum *qn; in qnum_from_int64_test() 83 QNum *qn; in qnum_get_int_test() 94 QNum *qn; in qnum_get_uint_test() 125 QNum *qn; in qobject_to_qnum_test() 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() 138 QNum *qn; in qnum_to_string_test()
|
H A D | check-qobject.c | 83 g_autoptr(QNum) u0 = qnum_from_uint(0u); in qobject_is_equal_num_test() 84 g_autoptr(QNum) i0 = qnum_from_int(0); in qobject_is_equal_num_test() 85 g_autoptr(QNum) d0 = qnum_from_double(0.0); in qobject_is_equal_num_test() 86 g_autoptr(QNum) dnan = qnum_from_double(NAN); in qobject_is_equal_num_test() 87 g_autoptr(QNum) um42 = qnum_from_uint((uint64_t)-42); in qobject_is_equal_num_test() 88 g_autoptr(QNum) im42 = qnum_from_int(-42); in qobject_is_equal_num_test() 89 g_autoptr(QNum) dm42 = qnum_from_double(-42.0); in qobject_is_equal_num_test() 246 g_autoptr(QNum) u0 = qnum_from_uint(0u); in qobject_is_equal_conversion_test() 247 g_autoptr(QNum) i0 = qnum_from_int(0); in qobject_is_equal_conversion_test() 248 g_autoptr(QNum) d0 = qnum_from_double(0.0); in qobject_is_equal_conversion_test()
|
H A D | check-qjson.c | 806 QNum *qnum; in int_number() 812 qnum = qobject_to(QNum, in int_number() 848 QNum *qnum; in uint_number() 854 qnum = qobject_to(QNum, in uint_number() 889 QNum *qnum; in float_number() 895 qnum = qobject_to(QNum, in float_number() 966 QNum *qnum; in interpolation_valid() 985 qnum = qobject_to(QNum, qobject_from_jsonf_nofail("%d", value_d)); in interpolation_valid() 989 qnum = qobject_to(QNum, qobject_from_jsonf_nofail("%ld", value_ld)); in interpolation_valid() 1001 qnum = qobject_to(QNum, qobject_from_jsonf_nofail("%u", value_u)); in interpolation_valid() [all …]
|
H A D | check-qlist.c | 37 QNum *qi; in qlist_append_test() 70 QNum *qi; in qlist_iter_test() 80 qi = qobject_to(QNum, qlist_entry_obj(entry)); in qlist_iter_test()
|
H A D | test-qobject-output-visitor.c | 64 QNum *qnum; in test_visitor_out_int() 68 qnum = qobject_to(QNum, visitor_get(data)); in test_visitor_out_int() 91 QNum *qnum; in test_visitor_out_number() 95 qnum = qobject_to(QNum, visitor_get(data)); in test_visitor_out_number() 297 QNum *qnum; in test_visitor_out_any() 305 qnum = qobject_to(QNum, visitor_get(data)); in test_visitor_out_any() 321 qnum = qobject_to(QNum, qdict_get(qdict, "integer")); in test_visitor_out_any() 415 QNum *qnum; in test_visitor_out_alternate() 425 qnum = qobject_to(QNum, visitor_get(data)); in test_visitor_out_alternate() 562 QNum *qvalue = qobject_to(QNum, qlist_entry_obj(e)); in test_visitor_out_list_struct() [all …]
|
H A D | check-qlit.c | 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()
|
H A D | check-qdict.c | 39 QNum *qn; in qdict_put_obj_test() 51 qn = qobject_to(QNum, ent->value); in qdict_put_obj_test() 70 QNum *qn; in qdict_get_test() 81 qn = qobject_to(QNum, obj); in qdict_get_test()
|
H A D | check-block-qdict.c | 164 QNum *int1; 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()
|
H A D | test-qmp-cmds.c | 242 QNum *ret3; in test_dispatch_cmd_io() 265 ret3 = qobject_to(QNum, do_qmp_dispatch(false, in test_dispatch_cmd_io()
|
H A D | test-qobject-input-visitor.c | 615 QNum *qnum; in test_visitor_in_any() 624 qnum = qobject_to(QNum, res); in test_visitor_in_any() 636 qnum = qobject_to(QNum, qobj); in test_visitor_in_any()
|
/openbmc/qemu/include/qemu/ |
H A D | typedefs.h | 104 typedef struct QNum QNum; typedef
|
/openbmc/qemu/tests/qtest/ |
H A D | test-x86-cpuid-compat.c | 56 QNum *value; in test_cpuid_prop() 61 value = qobject_to(QNum, qom_get(path, args->property)); in test_cpuid_prop() 135 g_assert(qnum_get_try_int(qobject_to(QNum, in get_feature_word()
|
H A D | max34451-test.c | 50 ret = qnum_get_uint(qobject_to(QNum, qdict_get(response, "return"))); in qmp_max34451_get()
|
H A D | adm1272-test.c | 155 ret = qnum_get_uint(qobject_to(QNum, qdict_get(response, "return"))); in qmp_adm1272_get()
|
/openbmc/qemu/qapi/ |
H A D | qobject-input-visitor.c | 401 QNum *qnum; in qobject_input_type_int64() 406 qnum = qobject_to(QNum, qobj); in qobject_input_type_int64() 439 QNum *qnum; in qobject_input_type_uint64() 445 qnum = qobject_to(QNum, qobj); in qobject_input_type_uint64() 561 QNum *qnum; in qobject_input_type_number() 566 qnum = qobject_to(QNum, qobj); in qobject_input_type_number()
|
/openbmc/qemu/hw/i386/ |
H A D | acpi-build.c | 236 pm->s3_disabled = qnum_get_uint(qobject_to(QNum, o)); in acpi_get_pm_info() 243 pm->s4_disabled = qnum_get_uint(qobject_to(QNum, o)); in acpi_get_pm_info() 250 pm->s4_val = qnum_get_uint(qobject_to(QNum, o)); in acpi_get_pm_info() 517 uint64_t bsel_val = qnum_get_uint(qobject_to(QNum, bsel)); in build_append_pcihp_slots() 629 uint64_t bsel_val = qnum_get_uint(qobject_to(QNum, bsel)); in build_append_notfication_callback() 2480 mcfg->base = qnum_get_uint(qobject_to(QNum, o)); in acpi_get_mcfg() 2488 mcfg->size = qnum_get_uint(qobject_to(QNum, o)); in acpi_get_mcfg()
|
/openbmc/qemu/qom/ |
H A D | object.c | 1565 QNum *qnum = qnum_from_int(value); in object_property_set_int() 1576 QNum *qnum; in object_property_get_int() 1583 qnum = qobject_to(QNum, ret); in object_property_get_int() 1641 QNum *qnum = qnum_from_uint(value); in object_property_set_uint() 1652 QNum *qnum; in object_property_get_uint() 1658 qnum = qobject_to(QNum, ret); in object_property_get_uint()
|
/openbmc/qemu/block/ |
H A D | qapi.c | 782 QNum *value = qobject_to(QNum, obj); in dump_qobject()
|