Home | History | Annotate | Download | only in tools

Lines Matching full:device

106 	printf("Bus %s Device %s: ID %04x:%04x Interface %d%s\n",
113 static struct usb_dev_handle *open_device(char *device, struct dfu_suffix *suffix)
165 printf("\rSelect device (abort with 0): ");
182 printf("Can't open device: %s (%d)\n", strerror(errno), errno);
222 printf("Device is not idle, can't detach it (state %d)\n", status.bState);
226 printf("Switching device into DFU mode ... ");
236 printf("\rCan't detach device: %s (%d)\n", strerror(errno), errno);
276 printf("\rCan't identify device with DFU mode\n");
286 printf("Can't open device: %s (%d)\n", strerror(errno), errno);
302 printf("Device is not in DFU mode, can't use it\n");
316 static void cmd_verify(char *device, int argc, char **argv)
412 static void cmd_modify(char *device, int argc, char **argv)
416 static void cmd_upgrade(char *device, int argc, char **argv)
483 udev = open_device(device, &suffix);
573 printf("\rWaiting for device ... ");
589 static void cmd_archive(char *device, int argc, char **argv)
607 udev = open_device(device, &suffix);
711 void (*func)(char *device, int argc, char **argv);
726 printf("dfutool - Device Firmware Upgrade utility ver %s\n\n", VERSION);
733 "\t-d, --device <device> USB device\n"
747 { "device", 1, 0, 'd' },
753 char *device = NULL;
759 device = strdup(optarg);
785 command[i].func(device, argc, argv);