• Home
  • Raw
  • Download

Lines Matching refs:info

189 int match_fastboot(usb_ifc_info *info)  in match_fastboot()  argument
191 return match_fastboot_with_serial(info, serial); in match_fastboot()
194 int match_fastboot_with_serial(usb_ifc_info *info, const char *local_serial) in match_fastboot_with_serial() argument
196 if(!(vendor_id && (info->dev_vendor == vendor_id)) && in match_fastboot_with_serial()
197 (info->dev_vendor != 0x18d1) && // Google in match_fastboot_with_serial()
198 (info->dev_vendor != 0x8087) && // Intel in match_fastboot_with_serial()
199 (info->dev_vendor != 0x0451) && in match_fastboot_with_serial()
200 (info->dev_vendor != 0x0502) && in match_fastboot_with_serial()
201 (info->dev_vendor != 0x0fce) && // Sony Ericsson in match_fastboot_with_serial()
202 (info->dev_vendor != 0x05c6) && // Qualcomm in match_fastboot_with_serial()
203 (info->dev_vendor != 0x22b8) && // Motorola in match_fastboot_with_serial()
204 (info->dev_vendor != 0x0955) && // Nvidia in match_fastboot_with_serial()
205 (info->dev_vendor != 0x413c) && // DELL in match_fastboot_with_serial()
206 (info->dev_vendor != 0x2314) && // INQ Mobile in match_fastboot_with_serial()
207 (info->dev_vendor != 0x0b05) && // Asus in match_fastboot_with_serial()
208 (info->dev_vendor != 0x0bb4)) // HTC in match_fastboot_with_serial()
210 if(info->ifc_class != 0xff) return -1; in match_fastboot_with_serial()
211 if(info->ifc_subclass != 0x42) return -1; in match_fastboot_with_serial()
212 if(info->ifc_protocol != 0x03) return -1; in match_fastboot_with_serial()
215 if (local_serial && (strcmp(local_serial, info->serial_number) != 0 && in match_fastboot_with_serial()
216 strcmp(local_serial, info->device_path) != 0)) return -1; in match_fastboot_with_serial()
220 int list_devices_callback(usb_ifc_info *info) in list_devices_callback() argument
222 if (match_fastboot_with_serial(info, NULL) == 0) { in list_devices_callback()
223 char* serial = info->serial_number; in list_devices_callback()
224 if (!info->writable) { in list_devices_callback()
233 } else if (!info->device_path) { in list_devices_callback()
236 printf("%-22s fastboot %s\n", serial, info->device_path); in list_devices_callback()