/openbmc/qemu/tests/unit/ |
H A D | check-block-qdict.c | 120 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 D | test-qmp-cmds.c | 156 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 D | test-keyval.c | 34 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 D | check-qdict.c | 30 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 D | test-qobject-output-visitor.c | 156 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 D | test-qmp-event.c | 47 g_assert(qdict_size(t) == 2); in test_qapi_event_emit()
|
H A D | test-qobject-input-visitor.c | 633 g_assert(qdict && qdict_size(qdict) == 3); in test_visitor_in_any()
|
/openbmc/qemu/qobject/ |
H A D | block-qdict.c | 82 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 D | qdict.c | 182 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 D | qlit.c | 40 if (qdict_size(qdict) != i) { in qlit_equal_qdict()
|
/openbmc/qemu/util/ |
H A D | qemu-config.c | 213 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 D | keyval.c | 456 nelt = qdict_size(cur) + 1; /* one extra, for use as sentinel */ in keyval_listify()
|
/openbmc/qemu/tests/qtest/ |
H A D | virtio-balloon-test.c | 42 assert(qdict_size(stats) == VIRTIO_BALLOON_S_NR); in query_stats()
|
H A D | qmp-test.c | 132 g_assert(ret && !qdict_size(ret)); in test_qmp_protocol()
|
/openbmc/qemu/include/qapi/qmp/ |
H A D | qdict.h | 41 size_t qdict_size(const QDict *qdict);
|
/openbmc/qemu/target/loongarch/ |
H A D | loongarch-qmp-cmds.c | 107 if (!qdict_size(qdict_out)) { in qmp_query_cpu_model_expansion()
|
/openbmc/qemu/target/arm/ |
H A D | arm-qmp-cmds.c | 212 if (!qdict_size(qdict_out)) { in qmp_query_cpu_model_expansion()
|
/openbmc/qemu/target/riscv/ |
H A D | riscv-qmp-cmds.c | 233 if (!qdict_size(qdict_out)) { in qmp_query_cpu_model_expansion()
|
/openbmc/qemu/target/s390x/ |
H A D | cpu_models_sysemu.c | 204 if (!qdict_size(qdict)) { in cpu_info_from_model()
|
/openbmc/qemu/ |
H A D | block.c | 3629 } 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 D | blockdev.c | 529 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 D | qapi.c | 868 return qdict_size(qobject_to(QDict, obj)) == 0; in qobject_is_empty_dump()
|
H A D | blkdebug.c | 377 if (!qdict_size(subqdict)) { in blkdebug_parse_perm_list()
|
H A D | rbd.c | 771 if (!qdict_size(encrypt_qdict)) { in qemu_rbd_extract_encryption_create_options()
|
H A D | nbd.c | 1727 if (!qdict_size(addr)) { in nbd_config()
|