Home
last modified time | relevance | path

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

12

/openbmc/qemu/tests/unit/
H A Dtest-qapi-util.c21 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 Dui-hmp-cmds.c274 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 Dutil.h26 int qapi_enum_parse(const QEnumLookup *lookup, const char *buf,
/openbmc/qemu/system/
H A Drunstate-hmp-cmds.c75 action = qapi_enum_parse(&WatchdogAction_lookup, qapi_value, -1, &err); in hmp_watchdog_action()
H A Dtpm.c120 i = qapi_enum_parse(&TpmType_lookup, value, -1, NULL); in tpm_init_tpmdev()
/openbmc/qemu/stats/
H A Dstats-hmp-cmds.c204 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 Dqapi-util.c68 int qapi_enum_parse(const QEnumLookup *lookup, const char *buf, in qapi_enum_parse() function
H A Dqapi-visit-core.c405 value = qapi_enum_parse(lookup, enum_str, -1, NULL); in input_type_enum()
/openbmc/qemu/migration/
H A Dglobal_state.c99 r = qapi_enum_parse(&RunState_lookup, runstate, -1, &local_err); in global_state_post_load()
H A Dmigration-hmp-cmds.c409 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 Dmachine-qmp-cmds.c38 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 Dqmp-cmd-test.c86 g_assert_cmpint(qapi_enum_parse(&QapiErrorClass_lookup, error_class, in test_query()
/openbmc/qemu/block/
H A Dblkdebug.c199 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 Dfile-win32.c320 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 Dgluster.c570 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 Dcrypto.c804 prealloc = qapi_enum_parse(&PreallocMode_lookup, buf, in block_crypto_co_create_opts_luks()
H A Dfile-posix.c629 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 Dparallels.c1223 s->prealloc_mode = qapi_enum_parse(&prealloc_mode_lookup, buf, in parallels_opts_prealloc()
H A Dquorum.c983 ret = qapi_enum_parse(&QuorumReadPattern_lookup, pattern_str, in quorum_open()
H A Dvmdk.c2754 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 Dblock-hmp-cmds.c1001 qapi_enum_parse(&BlockdevChangeReadOnlyMode_lookup, in hmp_change_medium()
/openbmc/qemu/
H A Dqemu-nbd.c675 qapi_enum_parse(&BlockdevDetectZeroesOptions_lookup, in main()
H A Dqemu-io-cmds.c2019 prealloc = qapi_enum_parse(&PreallocMode_lookup, optarg, in truncate_f()
/openbmc/qemu/hw/smbios/
H A Dsmbios.c1544 t41_i->kind = qapi_enum_parse(&type41_kind_lookup, in smbios_entry_add()
/openbmc/qemu/crypto/
H A Dblock-luks.c209 int ret = qapi_enum_parse(map, name, -1, NULL); in qcrypto_block_luks_name_lookup()

12