Lines Matching full:unit_id
143 int bus_id, unit_id;
173 unit_id = qemu_opt_get_number(opts, "unit", -1);
350 if (bus_id != 0 || unit_id != -1) {
357 unit_id = index;
360 unit_id = index % max_devs;
365 /* if user doesn't specify a unit_id,
369 if (unit_id == -1) {
370 unit_id = 0;
371 while (drive_get(type, bus_id, unit_id) != NULL) {
372 unit_id++;
373 if (max_devs && unit_id >= max_devs) {
374 unit_id -= max_devs;
382 if (max_devs && unit_id >= max_devs) {
384 unit_id, max_devs - 1);
392 if (drive_get(type, bus_id, unit_id) != NULL) {
409 devname, bus_id, mediastr, unit_id);
412 devname, mediastr, unit_id);
418 dinfo->unit = unit_id;