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 start = usb_dump_endpoint_descriptor(speed, in usb_dump_interface()
232 start, end, &desc->endpoint[i].desc); in usb_dump_interface()
234 return start; in usb_dump_interface()
237 static char *usb_dump_iad_descriptor(char *start, char *end, in usb_dump_iad_descriptor() argument
240 if (start > end) in usb_dump_iad_descriptor()
241 return start; in usb_dump_iad_descriptor()
242 start += sprintf(start, format_iad, in usb_dump_iad_descriptor()
249 return start; in usb_dump_iad_descriptor()
257 static char *usb_dump_config_descriptor(char *start, char *end, in usb_dump_config_descriptor() argument
263 if (start > end) in usb_dump_config_descriptor()
264 return start; in usb_dump_config_descriptor()
269 start += sprintf(start, format_config, in usb_dump_config_descriptor()
276 return start; in usb_dump_config_descriptor()
279 static char *usb_dump_config(int speed, char *start, char *end, in usb_dump_config() argument
286 if (start > end) in usb_dump_config()
287 return start; in usb_dump_config()
290 return start + sprintf(start, "(null Cfg. desc.)\n"); in usb_dump_config()
291 start = usb_dump_config_descriptor(start, end, &config->desc, active, in usb_dump_config()
296 start = usb_dump_iad_descriptor(start, end, in usb_dump_config()
303 start = usb_dump_interface(speed, in usb_dump_config()
304 start, end, intfc, interface, j); in usb_dump_config()
307 return start; in usb_dump_config()
313 static char *usb_dump_device_descriptor(char *start, char *end, in usb_dump_device_descriptor() argument
319 if (start > end) in usb_dump_device_descriptor()
320 return start; in usb_dump_device_descriptor()
321 start += sprintf(start, format_device1, in usb_dump_device_descriptor()
329 if (start > end) in usb_dump_device_descriptor()
330 return start; in usb_dump_device_descriptor()
331 start += sprintf(start, format_device2, in usb_dump_device_descriptor()
335 return start; in usb_dump_device_descriptor()
341 static char *usb_dump_device_strings(char *start, char *end, in usb_dump_device_strings() argument
344 if (start > end) in usb_dump_device_strings()
345 return start; in usb_dump_device_strings()
347 start += sprintf(start, format_string_manufacturer, in usb_dump_device_strings()
349 if (start > end) in usb_dump_device_strings()
352 start += sprintf(start, format_string_product, dev->product); in usb_dump_device_strings()
353 if (start > end) in usb_dump_device_strings()
357 start += sprintf(start, format_string_serialnumber, in usb_dump_device_strings()
361 return start; in usb_dump_device_strings()
364 static char *usb_dump_desc(char *start, char *end, struct usb_device *dev) in usb_dump_desc() argument
368 start = usb_dump_device_descriptor(start, end, &dev->descriptor); in usb_dump_desc()
370 start = usb_dump_device_strings(start, end, dev); in usb_dump_desc()
373 start = usb_dump_config(dev->speed, in usb_dump_desc()
374 start, end, dev->config + i, in usb_dump_desc()
378 return start; in usb_dump_desc()