Lines Matching refs:udc
271 static void s3c2410_udc_nuke(struct s3c2410_udc *udc, in s3c2410_udc_nuke() argument
1295 struct s3c2410_udc *udc; in s3c2410_udc_dequeue() local
1308 udc = to_s3c2410_udc(ep->gadget); in s3c2410_udc_dequeue()
1433 struct s3c2410_udc *udc = to_s3c2410_udc(gadget); in s3c2410_udc_set_selfpowered() local
1439 udc->devstatus |= (1 << USB_DEVICE_SELF_POWERED); in s3c2410_udc_set_selfpowered()
1441 udc->devstatus &= ~(1 << USB_DEVICE_SELF_POWERED); in s3c2410_udc_set_selfpowered()
1449 static int s3c2410_udc_set_pullup(struct s3c2410_udc *udc, int is_on) in s3c2410_udc_set_pullup() argument
1457 s3c2410_udc_enable(udc); in s3c2410_udc_set_pullup()
1459 if (udc->gadget.speed != USB_SPEED_UNKNOWN) { in s3c2410_udc_set_pullup()
1460 if (udc->driver && udc->driver->disconnect) in s3c2410_udc_set_pullup()
1461 udc->driver->disconnect(&udc->gadget); in s3c2410_udc_set_pullup()
1464 s3c2410_udc_disable(udc); in s3c2410_udc_set_pullup()
1475 struct s3c2410_udc *udc = to_s3c2410_udc(gadget); in s3c2410_udc_vbus_session() local
1479 udc->vbus = (is_active != 0); in s3c2410_udc_vbus_session()
1480 s3c2410_udc_set_pullup(udc, is_active); in s3c2410_udc_vbus_session()
1486 struct s3c2410_udc *udc = to_s3c2410_udc(gadget); in s3c2410_udc_pullup() local
1490 s3c2410_udc_set_pullup(udc, is_on); in s3c2410_udc_pullup()
1653 struct s3c2410_udc *udc = to_s3c2410(g); in s3c2410_udc_start() local
1658 udc->driver = driver; in s3c2410_udc_start()
1661 s3c2410_udc_enable(udc); in s3c2410_udc_start()
1668 struct s3c2410_udc *udc = to_s3c2410(g); in s3c2410_udc_stop() local
1670 udc->driver = NULL; in s3c2410_udc_stop()
1673 s3c2410_udc_disable(udc); in s3c2410_udc_stop()
1757 struct s3c2410_udc *udc = &memory; in s3c2410_udc_probe() local
1792 spin_lock_init(&udc->lock); in s3c2410_udc_probe()
1807 the_controller = udc; in s3c2410_udc_probe()
1808 platform_set_drvdata(pdev, udc); in s3c2410_udc_probe()
1810 s3c2410_udc_disable(udc); in s3c2410_udc_probe()
1811 s3c2410_udc_reinit(udc); in s3c2410_udc_probe()
1815 0, gadget_name, udc); in s3c2410_udc_probe()
1842 gadget_name, udc); in s3c2410_udc_probe()
1853 udc->vbus = 1; in s3c2410_udc_probe()
1867 retval = usb_add_gadget_udc(&pdev->dev, &udc->gadget); in s3c2410_udc_probe()
1872 udc->regs_info = debugfs_create_file("registers", S_IRUGO, in s3c2410_udc_probe()
1874 udc, &s3c2410_udc_debugfs_fops); in s3c2410_udc_probe()
1875 if (!udc->regs_info) in s3c2410_udc_probe()
1889 free_irq(gpio_to_irq(udc_info->vbus_pin), udc); in s3c2410_udc_probe()
1894 free_irq(IRQ_USBD, udc); in s3c2410_udc_probe()
1908 struct s3c2410_udc *udc = platform_get_drvdata(pdev); in s3c2410_udc_remove() local
1913 if (udc->driver) in s3c2410_udc_remove()
1916 usb_del_gadget_udc(&udc->gadget); in s3c2410_udc_remove()
1917 debugfs_remove(udc->regs_info); in s3c2410_udc_remove()
1925 free_irq(irq, udc); in s3c2410_udc_remove()
1928 free_irq(IRQ_USBD, udc); in s3c2410_udc_remove()