Home
last modified time | relevance | path

Searched refs:qdict_size (Results 1 – 25 of 25) sorted by relevance

/openbmc/qemu/tests/unit/
H A Dcheck-block-qdict.c120 g_assert(!qdict_size(qdict_get_qdict(root, "y.0"))); in qdict_flatten_test()
123 g_assert(qdict_size(root) == 10); in qdict_flatten_test()
147 g_assert(qdict_size(dict1) == 1); in qdict_clone_flatten_test()
150 g_assert(qdict_size(cloned_dict1) == 1); in qdict_clone_flatten_test()
153 g_assert(qdict_size(dict2) == 1); in qdict_clone_flatten_test()
227 g_assert(qdict_size(dict1) == 2); in qdict_array_split_test()
233 g_assert(qdict_size(dict2) == 1); in qdict_array_split_test()
244 g_assert(qdict_size(test_dict) == 2); in qdict_array_split_test()
296 g_assert(qdict_size(test_dict) == 2); in qdict_array_split_test()
358 g_assert(qdict_size(dict1) == 0); in qdict_join_test()
[all …]
H A Dtest-qmp-cmds.c156 g_assert(qdict_size(resp) == 1); in do_qmp_dispatch()
183 g_assert(qdict_size(error) == 2); in do_qmp_dispatch_error()
184 g_assert(qdict_size(resp) == 1); in do_qmp_dispatch_error()
198 assert(ret && qdict_size(ret) == 0); in test_dispatch_cmd()
209 assert(ret && qdict_size(ret) == 0); in test_dispatch_cmd_oob()
281 assert(ret && qdict_size(ret) == 0); in test_dispatch_cmd_deprecated()
287 assert(ret && qdict_size(ret) == 0); in test_dispatch_cmd_deprecated()
305 assert(ret && qdict_size(ret) == 1); in test_dispatch_cmd_arg_deprecated()
311 assert(ret && qdict_size(ret) == 1); in test_dispatch_cmd_arg_deprecated()
328 assert(ret && qdict_size(ret) == 1); in test_dispatch_cmd_ret_deprecated()
[all …]
H A Dtest-keyval.c34 g_assert_cmpuint(qdict_size(qdict), ==, 0); in test_keyval_parse()
73 g_assert_cmpuint(qdict_size(qdict), ==, 1); in test_keyval_parse()
79 g_assert_cmpuint(qdict_size(qdict), ==, 1); in test_keyval_parse()
82 g_assert_cmpuint(qdict_size(sub_qdict), ==, 1); in test_keyval_parse()
94 g_assert_cmpuint(qdict_size(qdict), ==, 2); in test_keyval_parse()
101 g_assert_cmpuint(qdict_size(qdict), ==, 1); in test_keyval_parse()
107 g_assert_cmpuint(qdict_size(qdict), ==, 2); in test_keyval_parse()
110 g_assert_cmpuint(qdict_size(sub_qdict), ==, 1); in test_keyval_parse()
113 g_assert_cmpuint(qdict_size(sub_qdict), ==, 1); in test_keyval_parse()
128 g_assert_cmpuint(qdict_size(qdict), ==, 1); in test_keyval_parse()
[all …]
H A Dcheck-qdict.c30 g_assert(qdict_size(qdict) == 0); in qdict_new_test()
49 g_assert(qdict_size(qdict) == 1); in qdict_put_obj_test()
181 g_assert(qdict_size(tests_dict) == 1); in qdict_del_test()
185 g_assert(qdict_size(tests_dict) == 0); in qdict_del_test()
217 g_assert(count == qdict_size(tests_dict)); in qdict_iterapi_test()
226 g_assert(count == qdict_size(tests_dict)); in qdict_iterapi_test()
247 g_assert(qdict_size(tests_dict) == 1); in qdict_put_exists_test()
311 g_assert(qdict_size(qdict) == lines); in qdict_stress_test()
346 g_assert(qdict_size(qdict) == 0); in qdict_stress_test()
H A Dtest-qobject-output-visitor.c156 g_assert_cmpint(qdict_size(qdict), ==, 3); in test_visitor_out_struct()
194 g_assert_cmpint(qdict_size(qdict), ==, 2); in test_visitor_out_struct_nested()
198 g_assert_cmpint(qdict_size(dict1), ==, 3); in test_visitor_out_struct_nested()
202 g_assert_cmpint(qdict_size(dict2), ==, 2); in test_visitor_out_struct_nested()
205 g_assert_cmpint(qdict_size(userdef), ==, 2); in test_visitor_out_struct_nested()
210 g_assert_cmpint(qdict_size(dict3), ==, 2); in test_visitor_out_struct_nested()
213 g_assert_cmpint(qdict_size(userdef), ==, 2); in test_visitor_out_struct_nested()
256 g_assert_cmpint(qdict_size(qdict), ==, 3); in test_visitor_out_list()
465 g_assert_cmpint(qdict_size(qdict), ==, 4); in test_visitor_out_alternate()
487 g_assert_cmpint(qdict_size(qdict), ==, 1); in test_visitor_out_null()
H A Dtest-qmp-event.c47 g_assert(qdict_size(t) == 2); in test_qapi_event_emit()
H A Dtest-qobject-input-visitor.c633 g_assert(qdict && qdict_size(qdict) == 3); in test_visitor_in_any()
/openbmc/qemu/qobject/
H A Dblock-qdict.c82 if (dict_val && qdict_size(dict_val)) { in qdict_flatten_qlist()
129 if (dict_val && qdict_size(dict_val)) { in qdict_flatten_qdict()
253 assert(qdict_size(subqdict) > 0); in qdict_array_split()
365 assert(!qdict_size(maybe_list)); in qdict_is_list()
441 if ((dict_val && qdict_size(dict_val)) in qdict_crumple()
483 if (dict_val && qdict_size(dict_val)) { in qdict_crumple()
506 for (i = 0; i < qdict_size(multi_level); i++) { in qdict_crumple()
644 if (qdict_size(src) != entries) { in qdict_array_entries()
H A Dqdict.c182 size_t qdict_size(const QDict *qdict) in qdict_size() function
406 if (qdict_size(dict_x) != qdict_size(dict_y)) { in qdict_is_equal()
H A Dqlit.c40 if (qdict_size(qdict) != i) { in qlit_equal_qdict()
/openbmc/qemu/util/
H A Dqemu-config.c213 orig_size = qdict_size(subqdict); in config_parse_qdict_section()
227 enum_size = qdict_size(subqdict); in config_parse_qdict_section()
243 if (qdict_size(subqdict)) { in config_parse_qdict_section()
271 if (qdict_size(section)) { in config_parse_qdict_section()
H A Dkeyval.c456 nelt = qdict_size(cur) + 1; /* one extra, for use as sentinel */ in keyval_listify()
/openbmc/qemu/tests/qtest/
H A Dvirtio-balloon-test.c42 assert(qdict_size(stats) == VIRTIO_BALLOON_S_NR); in query_stats()
H A Dqmp-test.c132 g_assert(ret && !qdict_size(ret)); in test_qmp_protocol()
/openbmc/qemu/include/qapi/qmp/
H A Dqdict.h41 size_t qdict_size(const QDict *qdict);
/openbmc/qemu/target/loongarch/
H A Dloongarch-qmp-cmds.c107 if (!qdict_size(qdict_out)) { in qmp_query_cpu_model_expansion()
/openbmc/qemu/target/arm/
H A Darm-qmp-cmds.c212 if (!qdict_size(qdict_out)) { in qmp_query_cpu_model_expansion()
/openbmc/qemu/target/riscv/
H A Driscv-qmp-cmds.c233 if (!qdict_size(qdict_out)) { in qmp_query_cpu_model_expansion()
/openbmc/qemu/target/s390x/
H A Dcpu_models_sysemu.c204 if (!qdict_size(qdict)) { in cpu_info_from_model()
/openbmc/qemu/
H A Dblock.c3629 } else if (bs->backing_file[0] == '\0' && qdict_size(options) == 0) { in bdrv_open_backing_file()
3633 if (qdict_size(options) == 0) { in bdrv_open_backing_file()
3722 if (!filename && !reference && !qdict_size(image_options)) { in bdrv_open_child_bs()
3975 bool options_non_empty = options ? qdict_size(options) : false; in bdrv_open_inherit()
4184 if (qdict_size(options) != 0) { in bdrv_open_inherit()
4977 if (qdict_size(reopen_state->options)) { in bdrv_reopen_prepare()
H A Dblockdev.c529 if (qdict_size(interval_dict) != 0) { in blockdev_init()
584 if ((!file || !*file) && !qdict_size(bs_opts)) { in blockdev_init()
/openbmc/qemu/block/
H A Dqapi.c868 return qdict_size(qobject_to(QDict, obj)) == 0; in qobject_is_empty_dump()
H A Dblkdebug.c377 if (!qdict_size(subqdict)) { in blkdebug_parse_perm_list()
H A Drbd.c771 if (!qdict_size(encrypt_qdict)) { in qemu_rbd_extract_encryption_create_options()
H A Dnbd.c1727 if (!qdict_size(addr)) { in nbd_config()