Searched refs:qemu_strtosz (Results 1 – 9 of 9) sorted by relevance
/openbmc/qemu/tests/unit/ |
H A D | test-cutils.c | 3317 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 …]
|
/openbmc/qemu/include/qemu/ |
H A D | cutils.h | 169 int qemu_strtosz(const char *nptr, const char **end, uint64_t *result);
|
/openbmc/qemu/migration/ |
H A D | file.c | 38 ret = qemu_strtosz(option, NULL, offsetp); in file_parse_offset()
|
/openbmc/qemu/qapi/ |
H A D | opts-visitor.c | 516 err = qemu_strtosz(opt->str ? opt->str : "", NULL, obj); in opts_type_size()
|
H A D | qobject-input-visitor.c | 644 if (qemu_strtosz(str, NULL, obj) < 0) { in qobject_input_type_size_keyval()
|
/openbmc/qemu/util/ |
H A D | cutils.c | 368 int qemu_strtosz(const char *nptr, const char **end, uint64_t *result) in qemu_strtosz() function
|
H A D | qemu-option.c | 138 err = qemu_strtosz(value, NULL, &size); in parse_option_size()
|
/openbmc/qemu/ |
H A D | qemu-io-cmds.c | 185 err = qemu_strtosz(s, NULL, &value); in cvtnum()
|
H A D | qemu-img.c | 490 err = qemu_strtosz(value, NULL, &res); in cvtnum_full()
|