Lines Matching defs:device

78 static int fwflash_update(char *device, char *filename, int flags);
79 static int fwflash_read_file(char *device, char *filename);
533 * verifier for this device has already been loaded. If it
578 "device\n"));
777 * each flashable device, which is added to fw_devices
797 gettext("Unable to take device tree snapshot: %s\n"),
821 /* only bump startidx if we've found at least one device */
873 fwflash_update(char *device, char *filename, int flags)
886 * through the device list looking for the device which
888 * image file and device, verify the image, then call the
892 * image onto an incompatible device because the verifier
896 /* new firmware filename and device desc */
903 if (device == NULL) {
905 gettext("Invalid device requested (null)\n"));
911 gettext("Unable to allocate space for device "
914 device);
915 realfile = device;
919 * device filename in realfile.
921 if (realpath(device, realfile) == NULL) {
923 gettext("Unable to resolve device filename"
929 realfile = device;
936 gettext("fwflash_update: fw_filename (%s) device (%s)\n"),
937 filename, device);
947 "for device %s\n"),
974 "device %s: %d\n"),
989 /* report the same device that the user passed in */
993 ((strncmp(device, realfile, strlen(device)) == 0) ?
994 realfile : device));
1003 * We validate that the device path is in our global device list and
1007 fwflash_read_file(char *device, char *filename)
1013 /* new firmware filename and device desc */
1016 if (strncmp(curdev->access_devname, device,
1032 gettext("No device matching %s was found.\n"),
1033 device);
1068 "\t-r file\t\tfile to dump device firmware to\n"
1070 "\t-d device_path\tpathname of device to be flashed\n\n"));