Lines Matching refs:gadget
41 #include <linux/usb/gadget.h>
232 root = debugfs_create_dir(udc->gadget.name, NULL);
322 * configuration events up to gadget drivers (like all control messages).
623 * For the pxa27x, these can just wrap kmalloc/kfree. gadget drivers
709 * @status: usb request status sent to gadget API
1129 if (unlikely(!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN)) {
1318 if (ep->dev->gadget.speed == USB_SPEED_UNKNOWN || ep_is_empty(ep))
1415 if (!udc->driver || udc->gadget.speed == USB_SPEED_UNKNOWN) {
1504 * @_gadget: usb gadget
1515 * @_gadget: usb gadget
1541 * - and a gadget driver is bound
1562 * - or no gadget driver is bound
1578 * @_gadget: usb gadget using the control
1605 * @_gadget: usb gadget
1627 * pxa_udc_vbus_draw - Called by gadget driver after SET_CONFIGURATION completed
1628 * @_gadget: usb gadget
1676 udc->gadget.speed = USB_SPEED_UNKNOWN;
1685 * Initializes gadget endpoint list, endpoints locks. No action is taken
1694 INIT_LIST_HEAD(&dev->gadget.ep_list);
1695 INIT_LIST_HEAD(&dev->gadget.ep0->ep_list);
1711 &dev->gadget.ep_list);
1733 udc->gadget.speed = USB_SPEED_FULL;
1759 * usb_gadget_register_driver - Register gadget driver
1760 * @driver: gadget driver
1787 udc->gadget.dev.driver = &driver->driver;
1790 retval = device_add(&udc->gadget.dev);
1795 retval = driver->bind(&udc->gadget);
1801 dev_dbg(udc->dev, "registered gadget driver '%s'\n",
1805 retval = otg_set_peripheral(udc->transceiver, &udc->gadget);
1818 driver->unbind(&udc->gadget);
1820 device_del(&udc->gadget.dev);
1823 udc->gadget.dev.driver = NULL;
1832 * @driver: gadget driver
1835 * the gadget user.
1842 if (udc->gadget.speed == USB_SPEED_UNKNOWN)
1844 udc->gadget.speed = USB_SPEED_UNKNOWN;
1850 driver->disconnect(&udc->gadget);
1854 * usb_gadget_unregister_driver - Unregister the gadget driver
1855 * @driver: gadget driver
1872 driver->unbind(&udc->gadget);
1875 device_del(&udc->gadget.dev);
1876 dev_info(udc->dev, "unregistered gadget driver '%s'\n",
1943 i = udc->driver->setup(&udc->gadget, &u.r);
1979 * uniformly, by gadget drivers.
2170 udc->driver->setup(&udc->gadget, &req);
2199 udc->driver->setup(&udc->gadget, &req);
2263 if (udc->gadget.speed != USB_SPEED_UNKNOWN
2265 udc->driver->suspend(&udc->gadget);
2278 if (udc->gadget.speed != USB_SPEED_UNKNOWN
2280 udc->driver->resume(&udc->gadget);
2325 udc->gadget.speed = USB_SPEED_FULL;
2368 .gadget = {
2373 .init_name = "gadget",
2388 /* Endpoints for gadget zero */
2391 /* Endpoints for ether gadget, file storage gadget */
2464 device_initialize(&udc->gadget.dev);
2465 udc->gadget.dev.parent = &pdev->dev;
2466 udc->gadget.dev.dma_mask = NULL;