Lines Matching refs:udc
286 static void s3c2410_udc_nuke(struct s3c2410_udc *udc, in s3c2410_udc_nuke() argument
1327 struct s3c2410_udc *udc; in s3c2410_udc_dequeue() local
1340 udc = to_s3c2410_udc(ep->gadget); in s3c2410_udc_dequeue()
1465 struct s3c2410_udc *udc = to_s3c2410_udc(gadget); in s3c2410_udc_set_selfpowered() local
1470 udc->devstatus |= (1 << USB_DEVICE_SELF_POWERED); in s3c2410_udc_set_selfpowered()
1472 udc->devstatus &= ~(1 << USB_DEVICE_SELF_POWERED); in s3c2410_udc_set_selfpowered()
1480 static int s3c2410_udc_set_pullup(struct s3c2410_udc *udc, int is_on) in s3c2410_udc_set_pullup() argument
1488 s3c2410_udc_enable(udc); in s3c2410_udc_set_pullup()
1490 if (udc->gadget.speed != USB_SPEED_UNKNOWN) { in s3c2410_udc_set_pullup()
1491 if (udc->driver && udc->driver->disconnect) in s3c2410_udc_set_pullup()
1492 udc->driver->disconnect(&udc->gadget); in s3c2410_udc_set_pullup()
1495 s3c2410_udc_disable(udc); in s3c2410_udc_set_pullup()
1506 struct s3c2410_udc *udc = to_s3c2410_udc(gadget); in s3c2410_udc_vbus_session() local
1510 udc->vbus = (is_active != 0); in s3c2410_udc_vbus_session()
1511 s3c2410_udc_set_pullup(udc, is_active); in s3c2410_udc_vbus_session()
1517 struct s3c2410_udc *udc = to_s3c2410_udc(gadget); in s3c2410_udc_pullup() local
1521 s3c2410_udc_set_pullup(udc, is_on ? 0 : 1); in s3c2410_udc_pullup()
1680 struct s3c2410_udc *udc = the_controller; in usb_gadget_probe_driver() local
1686 if (!udc) in usb_gadget_probe_driver()
1689 if (udc->driver) in usb_gadget_probe_driver()
1705 udc->driver = driver; in usb_gadget_probe_driver()
1706 udc->gadget.dev.driver = &driver->driver; in usb_gadget_probe_driver()
1709 if ((retval = device_add(&udc->gadget.dev)) != 0) { in usb_gadget_probe_driver()
1717 if ((retval = bind(&udc->gadget)) != 0) { in usb_gadget_probe_driver()
1718 device_del(&udc->gadget.dev); in usb_gadget_probe_driver()
1723 s3c2410_udc_enable(udc); in usb_gadget_probe_driver()
1728 udc->driver = NULL; in usb_gadget_probe_driver()
1729 udc->gadget.dev.driver = NULL; in usb_gadget_probe_driver()
1739 struct s3c2410_udc *udc = the_controller; in usb_gadget_unregister_driver() local
1741 if (!udc) in usb_gadget_unregister_driver()
1744 if (!driver || driver != udc->driver || !driver->unbind) in usb_gadget_unregister_driver()
1752 driver->disconnect(&udc->gadget); in usb_gadget_unregister_driver()
1754 driver->unbind(&udc->gadget); in usb_gadget_unregister_driver()
1756 device_del(&udc->gadget.dev); in usb_gadget_unregister_driver()
1757 udc->driver = NULL; in usb_gadget_unregister_driver()
1760 s3c2410_udc_disable(udc); in usb_gadget_unregister_driver()
1844 struct s3c2410_udc *udc = &memory; in s3c2410_udc_probe() local
1879 spin_lock_init (&udc->lock); in s3c2410_udc_probe()
1894 device_initialize(&udc->gadget.dev); in s3c2410_udc_probe()
1895 udc->gadget.dev.parent = &pdev->dev; in s3c2410_udc_probe()
1896 udc->gadget.dev.dma_mask = pdev->dev.dma_mask; in s3c2410_udc_probe()
1898 the_controller = udc; in s3c2410_udc_probe()
1899 platform_set_drvdata(pdev, udc); in s3c2410_udc_probe()
1901 s3c2410_udc_disable(udc); in s3c2410_udc_probe()
1902 s3c2410_udc_reinit(udc); in s3c2410_udc_probe()
1906 IRQF_DISABLED, gadget_name, udc); in s3c2410_udc_probe()
1932 gadget_name, udc); in s3c2410_udc_probe()
1943 udc->vbus = 1; in s3c2410_udc_probe()
1958 udc->regs_info = debugfs_create_file("registers", S_IRUGO, in s3c2410_udc_probe()
1960 udc, &s3c2410_udc_debugfs_fops); in s3c2410_udc_probe()
1961 if (!udc->regs_info) in s3c2410_udc_probe()
1971 free_irq(gpio_to_irq(udc_info->vbus_pin), udc); in s3c2410_udc_probe()
1976 free_irq(IRQ_USBD, udc); in s3c2410_udc_probe()
1990 struct s3c2410_udc *udc = platform_get_drvdata(pdev); in s3c2410_udc_remove() local
1994 if (udc->driver) in s3c2410_udc_remove()
1997 debugfs_remove(udc->regs_info); in s3c2410_udc_remove()
2005 free_irq(irq, udc); in s3c2410_udc_remove()
2008 free_irq(IRQ_USBD, udc); in s3c2410_udc_remove()