Lines Matching refs:opts
47 QemuOpts *opts;
53 opts = qemu_opts_parse(qemu_find_opts("drive"), optstr, 0);
54 if (!opts) {
58 qemu_opt_set(opts, "file", file);
59 return opts;
111 qemu_opts_del(dinfo->opts);
134 DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi, int *fatal_error)
172 bus_id = qemu_opt_get_number(opts, "bus", 0);
173 unit_id = qemu_opt_get_number(opts, "unit", -1);
174 index = qemu_opt_get_number(opts, "index", -1);
176 cyls = qemu_opt_get_number(opts, "cyls", 0);
177 heads = qemu_opt_get_number(opts, "heads", 0);
178 secs = qemu_opt_get_number(opts, "secs", 0);
180 snapshot = qemu_opt_get_bool(opts, "snapshot", 0);
181 ro = qemu_opt_get_bool(opts, "readonly", 0);
183 file = qemu_opt_get(opts, "file");
184 serial = qemu_opt_get(opts, "serial");
186 if ((buf = qemu_opt_get(opts, "if")) != NULL) {
236 if ((buf = qemu_opt_get(opts, "trans")) != NULL) {
255 if ((buf = qemu_opt_get(opts, "media")) != NULL) {
271 if ((buf = qemu_opt_get(opts, "cache")) != NULL) {
288 if ((buf = qemu_opt_get(opts, "aio")) != NULL) {
300 if ((buf = qemu_opt_get(opts, "format")) != NULL) {
315 if ((buf = qemu_opt_get(opts, "werror")) != NULL) {
328 if ((buf = qemu_opt_get(opts, "rerror")) != NULL) {
340 if ((devaddr = qemu_opt_get(opts, "addr")) != NULL) {
400 if ((buf = qemu_opts_id(opts)) != NULL) {
419 dinfo->opts = opts;
454 opts = qemu_opts_create(qemu_find_opts("device"), NULL, 0);
455 qemu_opt_set(opts, "driver", "virtio-blk-pci");
456 qemu_opt_set(opts, "drive", dinfo->id);
458 qemu_opt_set(opts, "addr", devaddr);