Lines Matching refs:udc
269 static void s3c2410_udc_nuke(struct s3c2410_udc *udc, in s3c2410_udc_nuke() argument
1293 struct s3c2410_udc *udc; in s3c2410_udc_dequeue() local
1306 udc = to_s3c2410_udc(ep->gadget); in s3c2410_udc_dequeue()
1431 struct s3c2410_udc *udc = to_s3c2410_udc(gadget); in s3c2410_udc_set_selfpowered() local
1437 udc->devstatus |= (1 << USB_DEVICE_SELF_POWERED); in s3c2410_udc_set_selfpowered()
1439 udc->devstatus &= ~(1 << USB_DEVICE_SELF_POWERED); in s3c2410_udc_set_selfpowered()
1447 static int s3c2410_udc_set_pullup(struct s3c2410_udc *udc, int is_on) in s3c2410_udc_set_pullup() argument
1455 s3c2410_udc_enable(udc); in s3c2410_udc_set_pullup()
1457 if (udc->gadget.speed != USB_SPEED_UNKNOWN) { in s3c2410_udc_set_pullup()
1458 if (udc->driver && udc->driver->disconnect) in s3c2410_udc_set_pullup()
1459 udc->driver->disconnect(&udc->gadget); in s3c2410_udc_set_pullup()
1462 s3c2410_udc_disable(udc); in s3c2410_udc_set_pullup()
1473 struct s3c2410_udc *udc = to_s3c2410_udc(gadget); in s3c2410_udc_vbus_session() local
1477 udc->vbus = (is_active != 0); in s3c2410_udc_vbus_session()
1478 s3c2410_udc_set_pullup(udc, is_active); in s3c2410_udc_vbus_session()
1484 struct s3c2410_udc *udc = to_s3c2410_udc(gadget); in s3c2410_udc_pullup() local
1488 s3c2410_udc_set_pullup(udc, is_on); in s3c2410_udc_pullup()
1651 struct s3c2410_udc *udc = to_s3c2410(g); in s3c2410_udc_start() local
1656 udc->driver = driver; in s3c2410_udc_start()
1659 s3c2410_udc_enable(udc); in s3c2410_udc_start()
1666 struct s3c2410_udc *udc = to_s3c2410(g); in s3c2410_udc_stop() local
1668 udc->driver = NULL; in s3c2410_udc_stop()
1671 s3c2410_udc_disable(udc); in s3c2410_udc_stop()
1765 struct s3c2410_udc *udc = &memory; in s3c2410_udc_probe() local
1800 spin_lock_init(&udc->lock); in s3c2410_udc_probe()
1815 the_controller = udc; in s3c2410_udc_probe()
1816 platform_set_drvdata(pdev, udc); in s3c2410_udc_probe()
1818 s3c2410_udc_disable(udc); in s3c2410_udc_probe()
1819 s3c2410_udc_reinit(udc); in s3c2410_udc_probe()
1823 0, gadget_name, udc); in s3c2410_udc_probe()
1850 gadget_name, udc); in s3c2410_udc_probe()
1861 udc->vbus = 1; in s3c2410_udc_probe()
1875 retval = usb_add_gadget_udc(&pdev->dev, &udc->gadget); in s3c2410_udc_probe()
1880 udc->regs_info = debugfs_create_file("registers", S_IRUGO, in s3c2410_udc_probe()
1882 udc, &s3c2410_udc_debugfs_fops); in s3c2410_udc_probe()
1883 if (!udc->regs_info) in s3c2410_udc_probe()
1897 free_irq(gpio_to_irq(udc_info->vbus_pin), udc); in s3c2410_udc_probe()
1902 free_irq(IRQ_USBD, udc); in s3c2410_udc_probe()
1916 struct s3c2410_udc *udc = platform_get_drvdata(pdev); in s3c2410_udc_remove() local
1921 if (udc->driver) in s3c2410_udc_remove()
1924 usb_del_gadget_udc(&udc->gadget); in s3c2410_udc_remove()
1925 debugfs_remove(udc->regs_info); in s3c2410_udc_remove()
1933 free_irq(irq, udc); in s3c2410_udc_remove()
1936 free_irq(IRQ_USBD, udc); in s3c2410_udc_remove()