Lines Matching refs:composite
2 * composite.c - infrastructure for Composite USB Gadgets
28 #include <linux/usb/composite.h>
41 static struct usb_composite_driver *composite;
475 * One of the main tasks of a composite driver's bind() routine is to
616 sp = composite->strings;
645 if (composite->strings) {
646 len = lookup_string(composite->strings, buf, language, id);
898 * REVISIT it could make sense to let the composite device
960 if (composite->disconnect)
961 composite->disconnect(cdev);
1016 if (composite->unbind)
1017 composite->unbind(cdev);
1026 composite = NULL;
1076 cdev->driver = composite;
1086 /* composite gadget needs to assign strings for whole device (like
1090 status = composite->bind(cdev);
1094 cdev->desc = *composite->dev;
1109 string_override(composite->strings,
1112 string_override(composite->strings,
1115 string_override(composite->strings,
1122 INFO(cdev, "%s ready\n", composite->name);
1148 if (composite->suspend)
1149 composite->suspend(cdev);
1164 if (composite->resume)
1165 composite->resume(cdev);
1196 * usb_composite_register() - register a composite driver
1200 * This function is used to register drivers using the composite driver
1212 if (!driver || !driver->dev || !driver->bind || composite)
1216 driver->name = "composite";
1219 composite = driver;
1225 * usb_composite_unregister() - unregister a composite driver
1228 * This function is used to unregister drivers using the composite
1233 if (composite != driver)