Lines Matching refs:gadget
2 * M66592 UDC (USB gadget)
31 #include <linux/usb/gadget.h>
35 MODULE_DESCRIPTION("M66592 USB gadget driver");
106 m66592->gadget.speed = USB_SPEED_UNKNOWN;
108 m66592->driver->disconnect(&m66592->gadget);
499 /* if complete is true, gadget driver complete function is not call */
732 if (ep->m66592->gadget.speed == USB_SPEED_UNKNOWN)
1008 m66592_queue(m66592->gadget.ep0, m66592->ep0_req, GFP_KERNEL);
1115 m66592->gadget.speed = USB_SPEED_HIGH;
1118 m66592->gadget.speed = USB_SPEED_FULL;
1121 m66592->gadget.speed = USB_SPEED_UNKNOWN;
1134 m66592->driver->disconnect(&m66592->gadget);
1140 && m66592->gadget.speed == USB_SPEED_UNKNOWN)
1171 if (m66592->driver->setup(&m66592->gadget, &ctrl) < 0)
1357 if (ep->m66592->gadget.speed == USB_SPEED_UNKNOWN)
1475 m66592->gadget.dev.driver = &driver->driver;
1477 retval = device_add(&m66592->gadget.dev);
1483 retval = driver->bind (&m66592->gadget);
1486 device_del(&m66592->gadget.dev);
1504 m66592->gadget.dev.driver = NULL;
1519 if (m66592->gadget.speed != USB_SPEED_UNKNOWN)
1525 driver->unbind(&m66592->gadget);
1526 m66592->gadget.dev.driver = NULL;
1531 device_del(&m66592->gadget.dev);
1623 m66592->gadget.ops = &m66592_gadget_ops;
1624 device_initialize(&m66592->gadget.dev);
1625 dev_set_name(&m66592->gadget.dev, "gadget");
1626 m66592->gadget.is_dualspeed = 1;
1627 m66592->gadget.dev.parent = &pdev->dev;
1628 m66592->gadget.dev.dma_mask = pdev->dev.dma_mask;
1629 m66592->gadget.dev.release = pdev->dev.release;
1630 m66592->gadget.name = udc_name;
1657 INIT_LIST_HEAD(&m66592->gadget.ep_list);
1658 m66592->gadget.ep0 = &m66592->ep[0].ep;
1659 INIT_LIST_HEAD(&m66592->gadget.ep0->ep_list);
1666 &m66592->gadget.ep_list);