Lines Matching refs:gadget
2 * R8A66597 UDC (USB gadget)
33 #include <linux/usb/gadget.h>
101 r8a66597->gadget.speed = USB_SPEED_UNKNOWN;
103 r8a66597->driver->disconnect(&r8a66597->gadget);
469 /* if complete is true, gadget driver complete function is not call */
676 if (ep->r8a66597->gadget.speed == USB_SPEED_UNKNOWN)
951 r8a66597_queue(r8a66597->gadget.ep0, r8a66597->ep0_req, GFP_KERNEL);
1063 r8a66597->gadget.speed = USB_SPEED_HIGH;
1066 r8a66597->gadget.speed = USB_SPEED_FULL;
1069 r8a66597->gadget.speed = USB_SPEED_UNKNOWN;
1083 r8a66597->driver->disconnect(&r8a66597->gadget);
1089 && r8a66597->gadget.speed == USB_SPEED_UNKNOWN)
1120 if (r8a66597->driver->setup(&r8a66597->gadget, &ctrl)
1289 if (ep->r8a66597->gadget.speed == USB_SPEED_UNKNOWN)
1426 r8a66597->gadget.dev.driver = &driver->driver;
1428 retval = device_add(&r8a66597->gadget.dev);
1434 retval = driver->bind(&r8a66597->gadget);
1437 device_del(&r8a66597->gadget.dev);
1455 r8a66597->gadget.dev.driver = NULL;
1470 if (r8a66597->gadget.speed != USB_SPEED_UNKNOWN)
1476 driver->unbind(&r8a66597->gadget);
1481 device_del(&r8a66597->gadget.dev);
1570 r8a66597->gadget.ops = &r8a66597_gadget_ops;
1571 device_initialize(&r8a66597->gadget.dev);
1572 dev_set_name(&r8a66597->gadget.dev, "gadget");
1573 r8a66597->gadget.is_dualspeed = 1;
1574 r8a66597->gadget.dev.parent = &pdev->dev;
1575 r8a66597->gadget.dev.dma_mask = pdev->dev.dma_mask;
1576 r8a66597->gadget.dev.release = pdev->dev.release;
1577 r8a66597->gadget.name = udc_name;
1607 INIT_LIST_HEAD(&r8a66597->gadget.ep_list);
1608 r8a66597->gadget.ep0 = &r8a66597->ep[0].ep;
1609 INIT_LIST_HEAD(&r8a66597->gadget.ep0->ep_list);
1616 &r8a66597->gadget.ep_list);
1689 MODULE_DESCRIPTION("R8A66597 USB gadget driver");