Home
last modified time | relevance | path

Searched refs:qemu_strtosz (Results 1 – 9 of 9) sorted by relevance

/qemu/tests/unit/
H A Dtest-cutils.c3317 do_strtosz_full(str, qemu_strtosz, exp_ret, exp_val, exp_offset, in do_strtosz()
3484 do_strtosz_full("1k ", qemu_strtosz, 0, 1024, 2, -EINVAL, 0); in test_qemu_strtosz_trailing()
3487 do_strtosz_full("123xxx", qemu_strtosz, 0, 123, 3, -EINVAL, 0); in test_qemu_strtosz_trailing()
3494 do_strtosz_full("1kiB", qemu_strtosz, 0, 1024, 2, -EINVAL, 0); in test_qemu_strtosz_trailing()
3497 do_strtosz_full("0x", qemu_strtosz, 0, 0, 1, -EINVAL, 0); in test_qemu_strtosz_trailing()
3500 do_strtosz_full("00x1", qemu_strtosz, 0, 0, 2, -EINVAL, 0); in test_qemu_strtosz_trailing()
3503 do_strtosz_full("0b1000", qemu_strtosz, 0, 0, 2, -EINVAL, 0); in test_qemu_strtosz_trailing()
3506 do_strtosz_full("0.NaN", qemu_strtosz, 0, 0, 2, -EINVAL, 0); in test_qemu_strtosz_trailing()
3509 do_strtosz_full("123-45", qemu_strtosz, 0, 123, 3, -EINVAL, 0); in test_qemu_strtosz_trailing()
3523 do_strtosz_full("-2M", qemu_strtosz, -ERANGE, 0, 2, -EINVAL, 0); in test_qemu_strtosz_erange()
[all …]
/qemu/include/qemu/
H A Dcutils.h169 int qemu_strtosz(const char *nptr, const char **end, uint64_t *result);
/qemu/migration/
H A Dfile.c38 ret = qemu_strtosz(option, NULL, offsetp); in file_parse_offset()
/qemu/qapi/
H A Dopts-visitor.c516 err = qemu_strtosz(opt->str ? opt->str : "", NULL, obj); in opts_type_size()
H A Dqobject-input-visitor.c644 if (qemu_strtosz(str, NULL, obj) < 0) { in qobject_input_type_size_keyval()
/qemu/util/
H A Dcutils.c368 int qemu_strtosz(const char *nptr, const char **end, uint64_t *result) in qemu_strtosz() function
H A Dqemu-option.c138 err = qemu_strtosz(value, NULL, &size); in parse_option_size()
/qemu/
H A Dqemu-io-cmds.c185 err = qemu_strtosz(s, NULL, &value); in cvtnum()
H A Dqemu-img.c490 err = qemu_strtosz(value, NULL, &res); in cvtnum_full()