• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/usb/

Lines Matching refs:start

173 	char *start,
181 if (start > end)
182 return start;
221 return start;
231 start += sprintf(start, format_endpt, desc->bEndpointAddress, dir,
235 return start;
238 static char *usb_dump_interface_descriptor(char *start, char *end, const struct usb_interface *iface, int setno)
242 if (start > end)
243 return start;
244 start += sprintf(start, format_iface,
253 return start;
258 char *start,
266 start = usb_dump_interface_descriptor(start, end, iface, setno);
268 if (start > end)
269 return start;
270 start = usb_dump_endpoint_descriptor(speed,
271 start, end, desc->endpoint + i);
273 return start;
283 static char *usb_dump_config_descriptor(char *start, char *end, const struct usb_config_descriptor *desc, int active)
285 if (start > end)
286 return start;
287 start += sprintf(start, format_config,
293 return start;
298 char *start,
307 if (start > end)
308 return start;
310 return start + sprintf(start, "(null Cfg. desc.)\n");
311 start = usb_dump_config_descriptor(start, end, config, active);
317 if (start > end)
318 return start;
319 start = usb_dump_interface(speed,
320 start, end, interface, j);
323 return start;
329 static char *usb_dump_device_descriptor(char *start, char *end, const struct usb_device_descriptor *desc)
331 if (start > end)
332 return start;
333 start += sprintf (start, format_device1,
341 if (start > end)
342 return start;
343 start += sprintf(start, format_device2,
346 return start;
352 static char *usb_dump_device_strings (char *start, char *end, struct usb_device *dev)
356 if (start > end)
357 return start;
360 return start;
363 start += sprintf(start, format_string_manufacturer, buf);
365 if (start > end)
369 start += sprintf(start, format_string_product, buf);
371 if (start > end)
376 start += sprintf(start, format_string_serialnumber, buf);
381 return start;
384 static char *usb_dump_desc(char *start, char *end, struct usb_device *dev)
388 if (start > end)
389 return start;
391 start = usb_dump_device_descriptor(start, end, &dev->descriptor);
393 if (start > end)
394 return start;
396 start = usb_dump_device_strings (start, end, dev);
399 if (start > end)
400 return start;
401 start = usb_dump_config(dev->speed,
402 start, end, dev->config + i,
406 return start;
412 static char *usb_dump_hub_descriptor(char *start, char *end, const struct usb_hub_descriptor * desc)
417 if (start > end)
418 return start;
419 start += sprintf(start, "Interface:");
420 while (leng && start <= end) {
421 start += sprintf(start, " %02x", *ptr);
424 *start++ = '\n';
425 return start;
428 static char *usb_dump_string(char *start, char *end, const struct usb_device *dev, char *id, int index)
430 if (start > end)
431 return start;
432 start += sprintf(start, "Interface:");
434 start += sprintf(start, "%s: %.100s ", id, dev->stringindex[index]);
435 return start;
522 /* if we can start copying some data to the user */