Lines Matching refs:pdev
152 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_musb_enable() local
153 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_enable()
185 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_musb_disable() local
186 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_disable()
204 struct platform_device *pdev = to_platform_device(dev->parent); in otg_timer() local
205 struct dsps_glue *glue = platform_get_drvdata(pdev); in otg_timer()
258 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_musb_try_idle() local
259 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_try_idle()
298 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_interrupt() local
299 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_interrupt()
413 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_musb_init() local
414 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_init()
481 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_musb_exit() local
482 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_exit()
530 struct platform_device *pdev = to_platform_device(dev); in dsps_create_musb_pdev() local
540 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, res_name); in dsps_create_musb_pdev()
551 res = platform_get_resource_byname(pdev, IORESOURCE_IRQ, res_name); in dsps_create_musb_pdev()
609 static int __devinit dsps_probe(struct platform_device *pdev) in dsps_probe() argument
611 const struct platform_device_id *id = platform_get_device_id(pdev); in dsps_probe()
621 dev_err(&pdev->dev, "unable to allocate glue memory\n"); in dsps_probe()
627 iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in dsps_probe()
629 dev_err(&pdev->dev, "failed to get usbss mem resource\n"); in dsps_probe()
634 glue->dev = &pdev->dev; in dsps_probe()
638 dev_err(&pdev->dev, "failed to duplicate wrapper struct memory\n"); in dsps_probe()
642 platform_set_drvdata(pdev, glue); in dsps_probe()
645 pm_runtime_enable(&pdev->dev); in dsps_probe()
647 ret = pm_runtime_get_sync(&pdev->dev); in dsps_probe()
649 dev_err(&pdev->dev, "pm_runtime_get_sync FAILED"); in dsps_probe()
656 dev_err(&pdev->dev, "failed to create child pdev\n"); in dsps_probe()
663 pm_runtime_put(&pdev->dev); in dsps_probe()
665 pm_runtime_disable(&pdev->dev); in dsps_probe()
672 static int __devexit dsps_remove(struct platform_device *pdev) in dsps_remove() argument
674 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_remove()
680 pm_runtime_put(&pdev->dev); in dsps_remove()
681 pm_runtime_disable(&pdev->dev); in dsps_remove()