Home
last modified time | relevance | path

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

/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/include/qapi/
H A Dutil.h26 int qapi_enum_parse(const QEnumLookup *lookup, const char *buf,
/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/system/
H A Drunstate-hmp-cmds.c75 action = qapi_enum_parse(&WatchdogAction_lookup, qapi_value, -1, &err); in hmp_watchdog_action()
H A Dtpm.c121 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()
/openbmc/qemu/tests/qtest/
H A Dqmp-cmd-test.c87 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 Dquorum.c983 ret = qapi_enum_parse(&QuorumReadPattern_lookup, pattern_str, in quorum_open()
/openbmc/qemu/
H A Dqemu-nbd.c679 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/crypto/
H A Dblock-luks.c209 int ret = qapi_enum_parse(map, name, -1, NULL); in qcrypto_block_luks_name_lookup()