Home
last modified time | relevance | path

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

/qemu/fsdev/
H A Dqemu-fsdev-throttle.c38 qemu_opt_get_number(opts, "throttling.bps-total", 0); in fsdev_throttle_parse_opts()
40 qemu_opt_get_number(opts, "throttling.bps-read", 0); in fsdev_throttle_parse_opts()
42 qemu_opt_get_number(opts, "throttling.bps-write", 0); in fsdev_throttle_parse_opts()
44 qemu_opt_get_number(opts, "throttling.iops-total", 0); in fsdev_throttle_parse_opts()
46 qemu_opt_get_number(opts, "throttling.iops-read", 0); in fsdev_throttle_parse_opts()
48 qemu_opt_get_number(opts, "throttling.iops-write", 0); in fsdev_throttle_parse_opts()
51 qemu_opt_get_number(opts, "throttling.bps-total-max", 0); in fsdev_throttle_parse_opts()
53 qemu_opt_get_number(opts, "throttling.bps-read-max", 0); in fsdev_throttle_parse_opts()
55 qemu_opt_get_number(opts, "throttling.bps-write-max", 0); in fsdev_throttle_parse_opts()
59 qemu_opt_get_number(opts, "throttling.iops-read-max", 0); in fsdev_throttle_parse_opts()
[all …]
/qemu/hw/smbios/
H A Dsmbios.c1465 type4.processor_family = qemu_opt_get_number(opts, in smbios_entry_add()
1475 type4.max_speed = qemu_opt_get_number(opts, "max-speed", in smbios_entry_add()
1493 t8_i->connector_type = qemu_opt_get_number(opts, in smbios_entry_add()
1495 t8_i->port_type = qemu_opt_get_number(opts, "port_type", 0); in smbios_entry_add()
1505 t->slot_type = qemu_opt_get_number(opts, "slot_type", 0); in smbios_entry_add()
1507 qemu_opt_get_number(opts, "slot_data_bus_width", 0); in smbios_entry_add()
1510 t->slot_id = qemu_opt_get_number(opts, "slot_id", 0); in smbios_entry_add()
1512 qemu_opt_get_number(opts, "slot_characteristics1", 0); in smbios_entry_add()
1514 qemu_opt_get_number(opts, "slot_characteristics2", 0); in smbios_entry_add()
1537 type17.speed = qemu_opt_get_number(opts, "speed", 0); in smbios_entry_add()
[all …]
/qemu/tests/unit/
H A Dtest-qemu-opts.c266 opt = qemu_opt_get_number(opts, "number1", 5); in test_qemu_opt_get_number()
272 opt = qemu_opt_get_number(opts, "number1", 5); in test_qemu_opt_get_number()
278 opt = qemu_opt_get_number(opts, "number1", 5); in test_qemu_opt_get_number()
397 opt = qemu_opt_get_number(opts, "number1", 5); in test_qemu_opts_reset()
403 opt = qemu_opt_get_number(opts, "number1", 5); in test_qemu_opts_reset()
556 g_assert_cmpuint(qemu_opt_get_number(opts, "number1", 1), ==, 0); in test_opts_parse_number()
563 g_assert_cmphex(qemu_opt_get_number(opts, "number1", 1), ==, UINT64_MAX); in test_opts_parse_number()
564 g_assert_cmphex(qemu_opt_get_number(opts, "number2", 0), ==, UINT64_MAX); in test_opts_parse_number()
582 g_assert_cmpuint(qemu_opt_get_number(opts, "number1", 1), ==, 42); in test_opts_parse_number()
583 g_assert_cmpuint(qemu_opt_get_number(opts, "number2", 0), ==, 42); in test_opts_parse_number()
[all …]
/qemu/
H A Dblockdev.c408 qemu_opt_get_number(opts, "throttling.bps-total", 0); in extract_common_blockdev_options()
410 qemu_opt_get_number(opts, "throttling.bps-read", 0); in extract_common_blockdev_options()
412 qemu_opt_get_number(opts, "throttling.bps-write", 0); in extract_common_blockdev_options()
414 qemu_opt_get_number(opts, "throttling.iops-total", 0); in extract_common_blockdev_options()
416 qemu_opt_get_number(opts, "throttling.iops-read", 0); in extract_common_blockdev_options()
418 qemu_opt_get_number(opts, "throttling.iops-write", 0); in extract_common_blockdev_options()
423 qemu_opt_get_number(opts, "throttling.bps-read-max", 0); in extract_common_blockdev_options()
447 qemu_opt_get_number(opts, "throttling.iops-size", 0); in extract_common_blockdev_options()
908 bus_id = qemu_opt_get_number(legacy_opts, "bus", 0); in drive_new()
909 unit_id = qemu_opt_get_number(legacy_opts, "unit", -1); in drive_new()
[all …]
/qemu/ui/
H A Dspice-core.c540 port = qemu_opt_get_number(opts, "port", 0); in qmp_query_spice_real()
541 tls_port = qemu_opt_get_number(opts, "tls-port", 0); in qmp_query_spice_real()
675 port = qemu_opt_get_number(opts, "port", 0); in qemu_spice_init()
676 tls_port = qemu_opt_get_number(opts, "tls-port", 0); in qemu_spice_init()
H A Dconsole-vc.c1029 val = qemu_opt_get_number(opts, "width", 0); in vc_chr_parse()
1035 val = qemu_opt_get_number(opts, "height", 0); in vc_chr_parse()
1041 val = qemu_opt_get_number(opts, "cols", 0); in vc_chr_parse()
1047 val = qemu_opt_get_number(opts, "rows", 0); in vc_chr_parse()
H A Dvnc.c3843 int to = qemu_opt_get_number(opts, "to", 0); in vnc_display_get_addresses()
4075 key_delay_ms = qemu_opt_get_number(opts, "key-delay-ms", 10); in vnc_display_open()
4136 vd->connections_limit = qemu_opt_get_number(opts, "connections", 32); in vnc_display_open()
4199 int head = qemu_opt_get_number(opts, "head", 0); in vnc_display_open()
H A Dspice-display.c1201 int head = qemu_opt_get_number(opts, "head", 0); in qemu_spice_display_init()
/qemu/block/
H A Dblkdebug.c209 .state = qemu_opt_get_number(opts, "state", 0), in add_rule()
215 rule->options.inject.error = qemu_opt_get_number(opts, "errno", EIO); in add_rule()
219 sector = qemu_opt_get_number(opts, "sector", -1); in add_rule()
247 qemu_opt_get_number(opts, "new_state", 0); in add_rule()
H A Dnull.c92 qemu_opt_get_number(opts, NULL_OPT_LATENCY, 0); in null_file_open()
H A Dblklogwrites.c272 s->update_interval = qemu_opt_get_number(opts, "log-super-update-interval", in blk_log_writes_open()
H A Dnbd.c1896 s->reconnect_delay = qemu_opt_get_number(opts, "reconnect-delay", 0); in nbd_process_options()
1897 s->open_timeout = qemu_opt_get_number(opts, "open-timeout", 0); in nbd_process_options()
H A Dcurl.c730 s->timeout = qemu_opt_get_number(opts, CURL_BLOCK_OPT_TIMEOUT, in curl_open()
H A Discsi.c1821 lun = qemu_opt_get_number(opts, "lun", 0); in iscsi_open()
1889 timeout = qemu_opt_get_number(opts, "timeout", 0); in iscsi_open()
H A Dquorum.c972 s->threshold = qemu_opt_get_number(opts, QUORUM_OPT_VOTE_THRESHOLD, 0); in quorum_open()
H A Dgluster.c814 s->debug = qemu_opt_get_number(opts, GLUSTER_OPT_DEBUG, in qemu_gluster_open()
H A Dnvme.c990 namespace = qemu_opt_get_number(opts, NVME_BLOCK_OPT_NAMESPACE, 1); in nvme_file_open()
H A Dqcow2.c1066 qemu_opt_get_number(opts, QCOW2_OPT_CACHE_CLEAN_INTERVAL, in qcow2_update_options_prepare()
5730 refcount_bits = qemu_opt_get_number(opts, BLOCK_OPT_REFCOUNT_BITS, in qcow2_amend_options()
H A Dvvfat.c1166 s->fat_type = qemu_opt_get_number(opts, "fat-type", 0); in vvfat_open()
H A Dfile-posix.c642 s->aio_max_batch = qemu_opt_get_number(opts, "aio-max-batch", 0); in raw_open_common()
/qemu/include/qemu/
H A Doption.h90 uint64_t qemu_opt_get_number(QemuOpts *opts, const char *name, uint64_t defval);
/qemu/system/
H A Dvl.c573 fd = qemu_opt_get_number(opts, "fd", -1); in parse_add_fd()
574 fdset_id = qemu_opt_get_number(opts, "set", -1); in parse_add_fd()
627 fd = qemu_opt_get_number(opts, "fd", -1); in cleanup_add_fd()
3405 qemu_opt_get_number(opts, "bootindex", -1); in qemu_init()
/qemu/hw/9pfs/
H A D9p-local.c1556 qemu_opt_get_number(opts, "fmode", SM_LOCAL_MODE_BITS) & 0777; in local_parse_opts()
1558 qemu_opt_get_number(opts, "dmode", SM_LOCAL_DIR_MODE_BITS) & 0777; in local_parse_opts()
/qemu/chardev/
H A Dchar-socket.c1496 sock->reconnect = qemu_opt_get_number(opts, "reconnect", 0); in qemu_chr_parse_socket()
1519 .to = qemu_opt_get_number(opts, "to", 0), in qemu_chr_parse_socket()
/qemu/util/
H A Dqemu-option.c392 uint64_t qemu_opt_get_number(QemuOpts *opts, const char *name, uint64_t defval) in qemu_opt_get_number() function