Lines Matching full: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()
185 return start; in usb_dump_endpoint_descriptor()
196 start += sprintf(start, format_endpt, desc->bEndpointAddress, dir, in usb_dump_endpoint_descriptor()
201 return start; in usb_dump_endpoint_descriptor()
204 static char *usb_dump_interface_descriptor(char *start, char *end, in usb_dump_interface_descriptor() argument
213 if (start > end) in usb_dump_interface_descriptor()
214 return start; in usb_dump_interface_descriptor()
222 start += sprintf(start, format_iface, in usb_dump_interface_descriptor()
232 return start; in usb_dump_interface_descriptor()
235 static char *usb_dump_interface(int speed, char *start, char *end, in usb_dump_interface() argument
242 start = usb_dump_interface_descriptor(start, end, intfc, iface, setno); in usb_dump_interface()
244 if (start > end) in usb_dump_interface()
245 return start; in usb_dump_interface()
246 start = usb_dump_endpoint_descriptor(speed, in usb_dump_interface()
247 start, end, &desc->endpoint[i].desc); in usb_dump_interface()
249 return start; in usb_dump_interface()
252 static char *usb_dump_iad_descriptor(char *start, char *end, in usb_dump_iad_descriptor() argument
255 if (start > end) in usb_dump_iad_descriptor()
256 return start; in usb_dump_iad_descriptor()
257 start += sprintf(start, format_iad, in usb_dump_iad_descriptor()
264 return start; in usb_dump_iad_descriptor()
272 static char *usb_dump_config_descriptor(char *start, char *end, in usb_dump_config_descriptor() argument
278 if (start > end) in usb_dump_config_descriptor()
279 return start; in usb_dump_config_descriptor()
284 start += sprintf(start, format_config, in usb_dump_config_descriptor()
291 return start; in usb_dump_config_descriptor()
294 static char *usb_dump_config(int speed, char *start, char *end, in usb_dump_config() argument
301 if (start > end) in usb_dump_config()
302 return start; in usb_dump_config()
305 return start + sprintf(start, "(null Cfg. desc.)\n"); in usb_dump_config()
306 start = usb_dump_config_descriptor(start, end, &config->desc, active, in usb_dump_config()
311 start = usb_dump_iad_descriptor(start, end, in usb_dump_config()
318 if (start > end) in usb_dump_config()
319 return start; in usb_dump_config()
320 start = usb_dump_interface(speed, in usb_dump_config()
321 start, end, intfc, interface, j); in usb_dump_config()
324 return start; in usb_dump_config()
330 static char *usb_dump_device_descriptor(char *start, char *end, in usb_dump_device_descriptor() argument
336 if (start > end) in usb_dump_device_descriptor()
337 return start; in usb_dump_device_descriptor()
338 start += sprintf(start, format_device1, in usb_dump_device_descriptor()
346 if (start > end) in usb_dump_device_descriptor()
347 return start; in usb_dump_device_descriptor()
348 start += sprintf(start, format_device2, in usb_dump_device_descriptor()
352 return start; in usb_dump_device_descriptor()
358 static char *usb_dump_device_strings(char *start, char *end, in usb_dump_device_strings() argument
361 if (start > end) in usb_dump_device_strings()
362 return start; in usb_dump_device_strings()
364 start += sprintf(start, format_string_manufacturer, in usb_dump_device_strings()
366 if (start > end) in usb_dump_device_strings()
369 start += sprintf(start, format_string_product, dev->product); in usb_dump_device_strings()
370 if (start > end) in usb_dump_device_strings()
374 start += sprintf(start, format_string_serialnumber, in usb_dump_device_strings()
378 return start; in usb_dump_device_strings()
381 static char *usb_dump_desc(char *start, char *end, struct usb_device *dev) in usb_dump_desc() argument
385 if (start > end) in usb_dump_desc()
386 return start; in usb_dump_desc()
388 start = usb_dump_device_descriptor(start, end, &dev->descriptor); in usb_dump_desc()
390 if (start > end) in usb_dump_desc()
391 return start; in usb_dump_desc()
393 start = usb_dump_device_strings(start, end, dev); in usb_dump_desc()
396 if (start > end) in usb_dump_desc()
397 return start; in usb_dump_desc()
398 start = usb_dump_config(dev->speed, in usb_dump_desc()
399 start, end, dev->config + i, in usb_dump_desc()
403 return start; in usb_dump_desc()
409 static char *usb_dump_hub_descriptor(char *start, char *end, in usb_dump_hub_descriptor() argument
415 if (start > end) in usb_dump_hub_descriptor()
416 return start; in usb_dump_hub_descriptor()
417 start += sprintf(start, "Interface:"); in usb_dump_hub_descriptor()
418 while (leng && start <= end) { in usb_dump_hub_descriptor()
419 start += sprintf(start, " %02x", *ptr); in usb_dump_hub_descriptor()
422 *start++ = '\n'; in usb_dump_hub_descriptor()
423 return start; in usb_dump_hub_descriptor()
426 static char *usb_dump_string(char *start, char *end, in usb_dump_string() argument
429 if (start > end) in usb_dump_string()
430 return start; in usb_dump_string()
431 start += sprintf(start, "Interface:"); in usb_dump_string()
434 start += sprintf(start, "%s: %.100s ", id, in usb_dump_string()
436 return start; in usb_dump_string()
537 /* if we can start copying some data to the user */ in usb_device_dump()