Lines Matching refs:gadget
2 * driver/usb/gadget/imx_udc.c
35 #include <linux/usb/gadget.h>
58 imx_usb->gadget.speed = USB_SPEED_FULL;
69 imx_usb->gadget.speed = USB_SPEED_UNKNOWN;
322 struct imx_udc_struct, gadget);
647 i = imx_usb->driver->setup(&imx_usb->gadget, &u.r);
663 * USB gadget callback functions
697 if (!imx_usb->driver || imx_usb->gadget.speed == USB_SPEED_UNKNOWN) {
784 host. This assume all gadget drivers reply set
790 "<%s> gadget reply set config\n", __func__);
804 if (!imx_usb->driver || imx_usb->gadget.speed == USB_SPEED_UNKNOWN) {
914 if (imx_ep->imx_usb->gadget.speed == USB_SPEED_UNKNOWN)
978 INIT_LIST_HEAD(&imx_usb->gadget.ep_list);
979 INIT_LIST_HEAD(&imx_usb->gadget.ep0->ep_list);
988 &imx_usb->gadget.ep_list);
1003 if (imx_usb->gadget.speed == USB_SPEED_UNKNOWN)
1020 driver->disconnect(&imx_usb->gadget);
1062 imx_usb->driver->setup(&imx_usb->gadget, &u);
1075 imx_usb->driver->setup(&imx_usb->gadget, &u);
1120 if (imx_usb->gadget.speed == USB_SPEED_UNKNOWN
1122 imx_usb->driver->resume(&imx_usb->gadget);
1125 imx_usb->gadget.speed = USB_SPEED_FULL;
1129 if (imx_usb->gadget.speed != USB_SPEED_UNKNOWN
1131 imx_usb->driver->suspend(&imx_usb->gadget);
1134 imx_usb->gadget.speed = USB_SPEED_UNKNOWN;
1142 imx_usb->gadget.speed = USB_SPEED_UNKNOWN;
1146 imx_usb->gadget.speed = USB_SPEED_FULL;
1228 .gadget = {
1233 .init_name = "gadget",
1327 imx_usb->gadget.dev.driver = &driver->driver;
1329 retval = device_add(&imx_usb->gadget.dev);
1332 retval = driver->bind(&imx_usb->gadget);
1336 device_del(&imx_usb->gadget.dev);
1341 D_INI(imx_usb->dev, "<%s> registered gadget driver '%s'\n",
1349 imx_usb->gadget.dev.driver = NULL;
1367 driver->unbind(&imx_usb->gadget);
1368 imx_usb->gadget.dev.driver = NULL;
1371 device_del(&imx_usb->gadget.dev);
1373 D_INI(imx_usb->dev, "<%s> unregistered gadget driver '%s'\n",
1474 device_initialize(&imx_usb->gadget.dev);
1476 imx_usb->gadget.dev.parent = &pdev->dev;
1477 imx_usb->gadget.dev.dma_mask = pdev->dev.dma_mask;