Lines Matching refs:gadget
21 #include <linux/usb/gadget.h>
264 root = debugfs_create_dir(udc->gadget.name, NULL);
278 usba_ep_init_debugfs(udc, to_usba_ep(udc->gadget.ep0));
291 usba_ep_cleanup_debugfs(to_usba_ep(udc->gadget.ep0));
654 * most gadget drivers would trigger this non-error ...
656 if (udc->gadget.speed != USB_SPEED_UNKNOWN)
778 if (!udc->driver || udc->gadget.speed == USB_SPEED_UNKNOWN || !ep->desc)
969 static int usba_udc_get_frame(struct usb_gadget *gadget)
971 struct usba_udc *udc = to_usba_udc(gadget);
976 static int usba_udc_wakeup(struct usb_gadget *gadget)
978 struct usba_udc *udc = to_usba_udc(gadget);
995 usba_udc_set_selfpowered(struct usb_gadget *gadget, int is_selfpowered)
997 struct usba_udc *udc = to_usba_udc(gadget);
1031 .gadget = {
1033 .ep_list = LIST_HEAD_INIT(the_udc.gadget.ep_list),
1037 .init_name = "gadget",
1053 ep = to_usba_ep(udc->gadget.ep0);
1059 list_for_each_entry(ep, &udc->gadget.ep_list, ep.ep_list) {
1073 return to_usba_ep(udc->gadget.ep0);
1075 list_for_each_entry (ep, &udc->gadget.ep_list, ep.ep_list) {
1333 retval = udc->driver->setup(&udc->gadget, crq);
1522 ret = udc->driver->setup(&udc->gadget, &crq.crq);
1647 if (udc->gadget.speed != USB_SPEED_UNKNOWN
1650 udc->driver->suspend(&udc->gadget);
1664 if (udc->gadget.speed != USB_SPEED_UNKNOWN
1667 udc->driver->resume(&udc->gadget);
1700 if (udc->gadget.speed != USB_SPEED_UNKNOWN
1702 udc->gadget.speed = USB_SPEED_UNKNOWN;
1704 udc->driver->disconnect(&udc->gadget);
1710 udc->gadget.speed = USB_SPEED_HIGH;
1713 udc->gadget.speed = USB_SPEED_FULL;
1766 udc->gadget.speed = USB_SPEED_UNKNOWN;
1772 udc->driver->disconnect(&udc->gadget);
1802 udc->gadget.dev.driver = &driver->driver;
1808 ret = driver->bind(&udc->gadget);
1834 udc->gadget.dev.driver = NULL;
1853 udc->gadget.speed = USB_SPEED_UNKNOWN;
1862 udc->driver->disconnect(&udc->gadget);
1864 driver->unbind(&udc->gadget);
1865 udc->gadget.dev.driver = NULL;
1925 device_initialize(&udc->gadget.dev);
1926 udc->gadget.dev.parent = &pdev->dev;
1927 udc->gadget.dev.dma_mask = pdev->dev.dma_mask;
1942 the_udc.gadget.ep0 = &usba_ep[0].ep;
1976 list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list);
1987 ret = device_add(&udc->gadget.dev);
1989 dev_dbg(&pdev->dev, "Could not add gadget: %d\n", ret);
2062 device_unregister(&udc->gadget.dev);