Lines Matching refs:glue
153 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_enable() local
154 const struct dsps_musb_wrapper *wrp = glue->wrp; in dsps_musb_enable()
186 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_disable() local
187 const struct dsps_musb_wrapper *wrp = glue->wrp; in dsps_musb_disable()
205 struct dsps_glue *glue = platform_get_drvdata(pdev); in otg_timer() local
206 const struct dsps_musb_wrapper *wrp = glue->wrp; in otg_timer()
244 mod_timer(&glue->timer, in otg_timer()
259 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_try_idle() local
273 del_timer(&glue->timer); in dsps_musb_try_idle()
278 if (time_after(last_timer, timeout) && timer_pending(&glue->timer)) { in dsps_musb_try_idle()
288 mod_timer(&glue->timer, timeout); in dsps_musb_try_idle()
299 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_interrupt() local
300 const struct dsps_musb_wrapper *wrp = glue->wrp; in dsps_interrupt()
363 mod_timer(&glue->timer, in dsps_interrupt()
371 del_timer(&glue->timer); in dsps_interrupt()
400 mod_timer(&glue->timer, jiffies + wrp->poll_seconds * HZ); in dsps_interrupt()
414 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_init() local
415 const struct dsps_musb_wrapper *wrp = glue->wrp; in dsps_musb_init()
446 setup_timer(&glue->timer, otg_timer, (unsigned long) musb); in dsps_musb_init()
482 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_exit() local
490 del_timer_sync(&glue->timer); in dsps_musb_exit()
527 static int __devinit dsps_create_musb_pdev(struct dsps_glue *glue, u8 id) in dsps_create_musb_pdev() argument
529 struct device *dev = glue->dev; in dsps_create_musb_pdev()
573 glue->musb = musb; in dsps_create_musb_pdev()
603 static void __devexit dsps_delete_musb_pdev(struct dsps_glue *glue) in dsps_delete_musb_pdev() argument
605 platform_device_del(glue->musb); in dsps_delete_musb_pdev()
606 platform_device_put(glue->musb); in dsps_delete_musb_pdev()
614 struct dsps_glue *glue; in dsps_probe() local
619 glue = kzalloc(sizeof(*glue), GFP_KERNEL); in dsps_probe()
620 if (!glue) { in dsps_probe()
634 glue->dev = &pdev->dev; in dsps_probe()
636 glue->wrp = kmemdup(wrp, sizeof(*wrp), GFP_KERNEL); in dsps_probe()
637 if (!glue->wrp) { in dsps_probe()
642 platform_set_drvdata(pdev, glue); in dsps_probe()
654 ret = dsps_create_musb_pdev(glue, 0); in dsps_probe()
666 kfree(glue->wrp); in dsps_probe()
668 kfree(glue); in dsps_probe()
674 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_remove() local
677 dsps_delete_musb_pdev(glue); in dsps_remove()
682 kfree(glue->wrp); in dsps_remove()
683 kfree(glue); in dsps_remove()