Lines Matching refs:start

142 static char *usb_dump_endpoint_descriptor(int speed, char *start, char *end,  in usb_dump_endpoint_descriptor()  argument
148 if (start > end) in usb_dump_endpoint_descriptor()
149 return start; in usb_dump_endpoint_descriptor()
172 return start; in usb_dump_endpoint_descriptor()
183 start += sprintf(start, format_endpt, desc->bEndpointAddress, dir, in usb_dump_endpoint_descriptor()
188 return start; in usb_dump_endpoint_descriptor()
191 static char *usb_dump_interface_descriptor(char *start, char *end, in usb_dump_interface_descriptor() argument
200 if (start > end) in usb_dump_interface_descriptor()
201 return start; in usb_dump_interface_descriptor()
209 start += sprintf(start, format_iface, in usb_dump_interface_descriptor()
219 return start; in usb_dump_interface_descriptor()
222 static char *usb_dump_interface(int speed, char *start, char *end, in usb_dump_interface() argument
229 start = usb_dump_interface_descriptor(start, end, intfc, iface, setno); in usb_dump_interface()
231 if (start > end) in usb_dump_interface()
232 return start; in usb_dump_interface()
233 start = usb_dump_endpoint_descriptor(speed, in usb_dump_interface()
234 start, end, &desc->endpoint[i].desc); in usb_dump_interface()
236 return start; in usb_dump_interface()
239 static char *usb_dump_iad_descriptor(char *start, char *end, in usb_dump_iad_descriptor() argument
242 if (start > end) in usb_dump_iad_descriptor()
243 return start; in usb_dump_iad_descriptor()
244 start += sprintf(start, format_iad, in usb_dump_iad_descriptor()
251 return start; in usb_dump_iad_descriptor()
259 static char *usb_dump_config_descriptor(char *start, char *end, in usb_dump_config_descriptor() argument
265 if (start > end) in usb_dump_config_descriptor()
266 return start; in usb_dump_config_descriptor()
271 start += sprintf(start, format_config, in usb_dump_config_descriptor()
278 return start; in usb_dump_config_descriptor()
281 static char *usb_dump_config(int speed, char *start, char *end, in usb_dump_config() argument
288 if (start > end) in usb_dump_config()
289 return start; in usb_dump_config()
292 return start + sprintf(start, "(null Cfg. desc.)\n"); in usb_dump_config()
293 start = usb_dump_config_descriptor(start, end, &config->desc, active, in usb_dump_config()
298 start = usb_dump_iad_descriptor(start, end, in usb_dump_config()
305 if (start > end) in usb_dump_config()
306 return start; in usb_dump_config()
307 start = usb_dump_interface(speed, in usb_dump_config()
308 start, end, intfc, interface, j); in usb_dump_config()
311 return start; in usb_dump_config()
317 static char *usb_dump_device_descriptor(char *start, char *end, in usb_dump_device_descriptor() argument
323 if (start > end) in usb_dump_device_descriptor()
324 return start; in usb_dump_device_descriptor()
325 start += sprintf(start, format_device1, in usb_dump_device_descriptor()
333 if (start > end) in usb_dump_device_descriptor()
334 return start; in usb_dump_device_descriptor()
335 start += sprintf(start, format_device2, in usb_dump_device_descriptor()
339 return start; in usb_dump_device_descriptor()
345 static char *usb_dump_device_strings(char *start, char *end, in usb_dump_device_strings() argument
348 if (start > end) in usb_dump_device_strings()
349 return start; in usb_dump_device_strings()
351 start += sprintf(start, format_string_manufacturer, in usb_dump_device_strings()
353 if (start > end) in usb_dump_device_strings()
356 start += sprintf(start, format_string_product, dev->product); in usb_dump_device_strings()
357 if (start > end) in usb_dump_device_strings()
361 start += sprintf(start, format_string_serialnumber, in usb_dump_device_strings()
365 return start; in usb_dump_device_strings()
368 static char *usb_dump_desc(char *start, char *end, struct usb_device *dev) in usb_dump_desc() argument
372 if (start > end) in usb_dump_desc()
373 return start; in usb_dump_desc()
375 start = usb_dump_device_descriptor(start, end, &dev->descriptor); in usb_dump_desc()
377 if (start > end) in usb_dump_desc()
378 return start; in usb_dump_desc()
380 start = usb_dump_device_strings(start, end, dev); in usb_dump_desc()
383 if (start > end) in usb_dump_desc()
384 return start; in usb_dump_desc()
385 start = usb_dump_config(dev->speed, in usb_dump_desc()
386 start, end, dev->config + i, in usb_dump_desc()
390 return start; in usb_dump_desc()
396 static char *usb_dump_hub_descriptor(char *start, char *end, in usb_dump_hub_descriptor() argument
402 if (start > end) in usb_dump_hub_descriptor()
403 return start; in usb_dump_hub_descriptor()
404 start += sprintf(start, "Interface:"); in usb_dump_hub_descriptor()
405 while (leng && start <= end) { in usb_dump_hub_descriptor()
406 start += sprintf(start, " %02x", *ptr); in usb_dump_hub_descriptor()
409 *start++ = '\n'; in usb_dump_hub_descriptor()
410 return start; in usb_dump_hub_descriptor()
413 static char *usb_dump_string(char *start, char *end, in usb_dump_string() argument
416 if (start > end) in usb_dump_string()
417 return start; in usb_dump_string()
418 start += sprintf(start, "Interface:"); in usb_dump_string()
421 start += sprintf(start, "%s: %.100s ", id, in usb_dump_string()
423 return start; in usb_dump_string()