Lines Matching full:device

160         error_report("Device '%s' not found", id);  in hmp_drive_del()
165 error_report("Deleting device added with blockdev-add" in hmp_drive_del()
184 * If this BlockBackend has a device attached to it, its refcount will be in hmp_drive_del()
185 * decremented when the device is removed; otherwise we have to do so here. in hmp_drive_del()
198 const char *device = qdict_get_str(qdict, "device"); in hmp_commit() local
205 if (!strcmp(device, "all")) { in hmp_commit()
210 blk = blk_by_name(device); in hmp_commit()
212 error_report("Device '%s' not found", device); in hmp_commit()
219 error_report("Device '%s' has no medium", device); in hmp_commit()
226 error_report("'commit' error for '%s': %s", device, strerror(-ret)); in hmp_commit()
238 .device = (char *)qdict_get_str(qdict, "device"), in hmp_drive_mirror()
258 const char *device = qdict_get_str(qdict, "device"); in hmp_drive_backup() local
266 .device = (char *)device, in hmp_drive_backup()
289 const char *device = qdict_get_str(qdict, "device"); in hmp_block_job_set_speed() local
292 qmp_block_job_set_speed(device, value, &error); in hmp_block_job_set_speed()
300 const char *device = qdict_get_str(qdict, "device"); in hmp_block_job_cancel() local
303 qmp_block_job_cancel(device, true, force, &error); in hmp_block_job_cancel()
311 const char *device = qdict_get_str(qdict, "device"); in hmp_block_job_pause() local
313 qmp_block_job_pause(device, &error); in hmp_block_job_pause()
321 const char *device = qdict_get_str(qdict, "device"); in hmp_block_job_resume() local
323 qmp_block_job_resume(device, &error); in hmp_block_job_resume()
331 const char *device = qdict_get_str(qdict, "device"); in hmp_block_job_complete() local
333 qmp_block_job_complete(device, &error); in hmp_block_job_complete()
340 const char *device = qdict_get_str(qdict, "device"); in hmp_snapshot_blkdev() local
357 qmp_blockdev_snapshot_sync(device, NULL, filename, NULL, format, in hmp_snapshot_blkdev()
365 const char *device = qdict_get_str(qdict, "device"); in hmp_snapshot_blkdev_internal() local
369 qmp_blockdev_snapshot_internal_sync(device, name, &err); in hmp_snapshot_blkdev_internal()
375 const char *device = qdict_get_str(qdict, "device"); in hmp_snapshot_delete_blkdev_internal() local
380 qmp_blockdev_snapshot_delete_internal_sync(device, id, name, &err); in hmp_snapshot_delete_blkdev_internal()
427 .device = info->value->device, in hmp_nbd_server_start()
448 const char *device = qdict_get_str(qdict, "device"); in hmp_nbd_server_add() local
454 .device = (char *) device, in hmp_nbd_server_add()
485 const char *device = qdict_get_str(qdict, "device"); in hmp_block_resize() local
489 qmp_block_resize(device, NULL, size, &err); in hmp_block_resize()
496 const char *device = qdict_get_str(qdict, "device"); in hmp_block_stream() local
500 qmp_block_stream(device, device, base, NULL, NULL, false, false, NULL, in hmp_block_stream()
511 char *device = (char *) qdict_get_str(qdict, "device"); in hmp_block_set_io_throttle() local
523 * (deprecated) block device name and the qdev ID but the HMP in hmp_block_set_io_throttle()
526 if (blk_by_name(device)) { in hmp_block_set_io_throttle()
527 throttle.device = device; in hmp_block_set_io_throttle()
529 throttle.id = device; in hmp_block_set_io_throttle()
539 const char *device = qdict_get_str(qdict, "device"); in hmp_eject() local
542 qmp_eject(device, NULL, true, force, &err); in hmp_eject()
552 const char *device = qdict_get_str(qdict, "device"); in hmp_qemu_io() local
558 blk = blk_by_qdev_id(device, &err); in hmp_qemu_io()
563 blk = blk_by_name(device); in hmp_qemu_io()
565 bs = bdrv_lookup_bs(NULL, device, &err); in hmp_qemu_io()
602 * extended, possibly resulting in a read-only guest device keeping write in hmp_qemu_io()
619 if (info && *info->device) { in print_block_info()
620 monitor_puts(mon, info->device); in print_block_info()
653 monitor_printf(mon, " Removable device: %slocked, tray %s\n", in print_block_info()
731 const char *device = qdict_get_try_str(qdict, "device"); in hmp_info_block() local
744 if (device && strcmp(device, info->value->device)) { in hmp_info_block()
759 if ((!device && !nodes) || printed) { in hmp_info_block()
767 if (device && strcmp(device, blockdev->value->node_name)) { in hmp_info_block()
787 if (!stats->value->device) { in hmp_info_blockstats()
791 monitor_printf(mon, "%s:", stats->value->device); in hmp_info_blockstats()
833 monitor_printf(mon, "Streaming device %s: Completed %" PRId64 in hmp_info_block_jobs()
836 list->value->device, in hmp_info_block_jobs()
841 monitor_printf(mon, "Type %s, device %s: Completed %" PRId64 in hmp_info_block_jobs()
845 list->value->device, in hmp_info_block_jobs()
993 void hmp_change_medium(Monitor *mon, const char *device, const char *target, in hmp_change_medium() argument
1010 qmp_blockdev_change_medium(device, NULL, target, arg, true, force, in hmp_change_medium()