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