/openbmc/qemu/tests/unit/ |
H A D | test-qapi-util.c | 21 ret = qapi_enum_parse(&QType_lookup, NULL, QTYPE_NONE, &error_abort); in test_qapi_enum_parse() 24 ret = qapi_enum_parse(&QType_lookup, "junk", -1, NULL); in test_qapi_enum_parse() 27 ret = qapi_enum_parse(&QType_lookup, "junk", -1, &err); in test_qapi_enum_parse() 30 ret = qapi_enum_parse(&QType_lookup, "none", -1, &error_abort); in test_qapi_enum_parse() 33 ret = qapi_enum_parse(&QType_lookup, QType_str(QTYPE__MAX - 1), in test_qapi_enum_parse()
|
/openbmc/qemu/ui/ |
H A D | ui-hmp-cmds.c | 274 opts.connected = qapi_enum_parse(&SetPasswordAction_lookup, connected, in hmp_set_password() 280 opts.protocol = qapi_enum_parse(&DisplayProtocol_lookup, protocol, in hmp_set_password() 307 opts.protocol = qapi_enum_parse(&DisplayProtocol_lookup, protocol, in hmp_expire_password() 451 format = qapi_enum_parse(&ImageFormat_lookup, input_format, in hmp_screendump()
|
/openbmc/qemu/include/qapi/ |
H A D | util.h | 26 int qapi_enum_parse(const QEnumLookup *lookup, const char *buf,
|
/openbmc/qemu/system/ |
H A D | runstate-hmp-cmds.c | 75 action = qapi_enum_parse(&WatchdogAction_lookup, qapi_value, -1, &err); in hmp_watchdog_action()
|
H A D | tpm.c | 120 i = qapi_enum_parse(&TpmType_lookup, value, -1, NULL); in tpm_init_tpmdev()
|
/openbmc/qemu/stats/ |
H A D | stats-hmp-cmds.c | 204 target = qapi_enum_parse(&StatsTarget_lookup, target_str, -1, &err); in hmp_info_stats() 210 provider = qapi_enum_parse(&StatsProvider_lookup, provider_str, -1, &err); in hmp_info_stats()
|
/openbmc/qemu/qapi/ |
H A D | qapi-util.c | 68 int qapi_enum_parse(const QEnumLookup *lookup, const char *buf, in qapi_enum_parse() function
|
H A D | qapi-visit-core.c | 405 value = qapi_enum_parse(lookup, enum_str, -1, NULL); in input_type_enum()
|
/openbmc/qemu/migration/ |
H A D | global_state.c | 99 r = qapi_enum_parse(&RunState_lookup, runstate, -1, &local_err); in global_state_post_load()
|
H A D | migration-hmp-cmds.c | 409 int val = qapi_enum_parse(&MigrationStatus_lookup, state, -1, &err); in hmp_migrate_continue() 466 val = qapi_enum_parse(&MigrationCapability_lookup, cap, -1, &err); in hmp_migrate_set_capability() 493 val = qapi_enum_parse(&MigrationParameter_lookup, param, -1, &err); in hmp_migrate_set_parameter()
|
/openbmc/qemu/hw/core/ |
H A D | machine-qmp-cmds.c | 38 SysEmuTarget target = qapi_enum_parse(&SysEmuTarget_lookup, target_name(), in qmp_query_cpus_fast() 139 info->arch = qapi_enum_parse(&SysEmuTarget_lookup, target_name(), -1, in qmp_query_target()
|
/openbmc/qemu/tests/qtest/ |
H A D | qmp-cmd-test.c | 86 g_assert_cmpint(qapi_enum_parse(&QapiErrorClass_lookup, error_class, in test_query()
|
/openbmc/qemu/block/ |
H A D | blkdebug.c | 199 event = qapi_enum_parse(&BlkdebugEvent_lookup, event_name, -1, errp); in add_rule() 223 iotype = qapi_enum_parse(&BlkdebugIOType_lookup, in add_rule() 871 blkdebug_event = qapi_enum_parse(&BlkdebugEvent_lookup, event, -1, NULL); in blkdebug_debug_breakpoint()
|
H A D | file-win32.c | 320 aio = qapi_enum_parse(&BlockdevAioOptions_lookup, qemu_opt_get(opts, "aio"), in get_aio_option() 355 locking = qapi_enum_parse(&OnOffAuto_lookup, in raw_open()
|
H A D | gluster.c | 570 type = qapi_enum_parse(&SocketAddressType_lookup, ptr, -1, NULL); in qemu_gluster_parse_json() 1140 gopts->preallocation = qapi_enum_parse(&PreallocMode_lookup, tmp, in qemu_gluster_co_create_opts()
|
H A D | crypto.c | 804 prealloc = qapi_enum_parse(&PreallocMode_lookup, buf, in block_crypto_co_create_opts_luks()
|
H A D | file-posix.c | 629 aio = qapi_enum_parse(&BlockdevAioOptions_lookup, in raw_open_common() 645 locking = qapi_enum_parse(&OnOffAuto_lookup, in raw_open_common() 3037 prealloc = qapi_enum_parse(&PreallocMode_lookup, buf, in raw_co_create_opts()
|
H A D | parallels.c | 1223 s->prealloc_mode = qapi_enum_parse(&prealloc_mode_lookup, buf, in parallels_opts_prealloc()
|
H A D | quorum.c | 983 ret = qapi_enum_parse(&QuorumReadPattern_lookup, pattern_str, in quorum_open()
|
H A D | vmdk.c | 2754 adapter_type_enum = qapi_enum_parse(&BlockdevVmdkAdapterType_lookup, in vmdk_co_create_opts() 2771 subformat = qapi_enum_parse(&BlockdevVmdkSubformat_lookup, in vmdk_co_create_opts()
|
/openbmc/qemu/block/monitor/ |
H A D | block-hmp-cmds.c | 1001 qapi_enum_parse(&BlockdevChangeReadOnlyMode_lookup, in hmp_change_medium()
|
/openbmc/qemu/ |
H A D | qemu-nbd.c | 675 qapi_enum_parse(&BlockdevDetectZeroesOptions_lookup, in main()
|
H A D | qemu-io-cmds.c | 2019 prealloc = qapi_enum_parse(&PreallocMode_lookup, optarg, in truncate_f()
|
/openbmc/qemu/hw/smbios/ |
H A D | smbios.c | 1544 t41_i->kind = qapi_enum_parse(&type41_kind_lookup, in smbios_entry_add()
|
/openbmc/qemu/crypto/ |
H A D | block-luks.c | 209 int ret = qapi_enum_parse(map, name, -1, NULL); in qcrypto_block_luks_name_lookup()
|