Lines Matching refs:gadget
2 * linux/drivers/usb/gadget/lh7a40x_udc.c
278 dev->gadget.speed = USB_SPEED_UNKNOWN;
292 INIT_LIST_HEAD(&dev->gadget.ep_list);
293 INIT_LIST_HEAD(&dev->gadget.ep0->ep_list);
301 list_add_tail(&ep->ep.ep_list, &dev->gadget.ep_list);
324 dev->gadget.speed = USB_SPEED_UNKNOWN;
431 dev->gadget.dev.driver = &driver->driver;
433 device_add(&dev->gadget.dev);
434 retval = driver->bind(&dev->gadget);
437 dev->gadget.name, driver->driver.name, retval);
438 device_del(&dev->gadget.dev);
441 dev->gadget.dev.driver = 0;
449 printk(KERN_WARNING "%s: registered gadget driver '%s'\n",
450 dev->gadget.name, driver->driver.name);
477 driver->unbind(&dev->gadget);
478 dev->gadget.dev.driver = NULL;
479 device_del(&dev->gadget.dev);
483 DEBUG("unregistered gadget driver '%s'\n", driver->driver.name);
861 if (dev->gadget.speed == USB_SPEED_UNKNOWN)
863 dev->gadget.speed = USB_SPEED_UNKNOWN;
877 driver->disconnect(&dev->gadget);
889 dev->gadget.speed = USB_SPEED_FULL;
960 if (dev->gadget.speed != USB_SPEED_UNKNOWN
964 dev->driver->resume(&dev->gadget);
973 } else if (dev->gadget.speed !=
976 dev->driver->suspend(&dev->gadget);
1023 if (!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN) {
1136 if (unlikely(!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN)) {
1317 if (ep->dev->gadget.speed != USB_SPEED_UNKNOWN ||
1755 i = dev->driver->setup(&dev->gadget, &ctrl);
1761 (" --> ERROR: gadget setup FAILED (stalling), setup returned %d\n",
1955 .gadget = {
1960 .init_name = "gadget",
2049 device_initialize(&dev->gadget.dev);
2050 dev->gadget.dev.parent = &pdev->dev;