Lines Matching refs:pdev
29 struct platform_device *pdev = to_platform_device(dev); in tmio_mmc_suspend() local
30 const struct mfd_cell *cell = mfd_get_cell(pdev); in tmio_mmc_suspend()
37 cell->disable(pdev); in tmio_mmc_suspend()
44 struct platform_device *pdev = to_platform_device(dev); in tmio_mmc_resume() local
45 const struct mfd_cell *cell = mfd_get_cell(pdev); in tmio_mmc_resume()
50 ret = cell->resume(pdev); in tmio_mmc_resume()
59 static int tmio_mmc_probe(struct platform_device *pdev) in tmio_mmc_probe() argument
61 const struct mfd_cell *cell = mfd_get_cell(pdev); in tmio_mmc_probe()
67 if (pdev->num_resources != 2) in tmio_mmc_probe()
70 pdata = pdev->dev.platform_data; in tmio_mmc_probe()
74 irq = platform_get_irq(pdev, 0); in tmio_mmc_probe()
82 ret = cell->enable(pdev); in tmio_mmc_probe()
87 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in tmio_mmc_probe()
95 host = tmio_mmc_host_alloc(pdev); in tmio_mmc_probe()
106 ret = devm_request_irq(&pdev->dev, irq, tmio_mmc_irq, in tmio_mmc_probe()
108 dev_name(&pdev->dev), host); in tmio_mmc_probe()
123 cell->disable(pdev); in tmio_mmc_probe()
128 static int tmio_mmc_remove(struct platform_device *pdev) in tmio_mmc_remove() argument
130 const struct mfd_cell *cell = mfd_get_cell(pdev); in tmio_mmc_remove()
131 struct mmc_host *mmc = platform_get_drvdata(pdev); in tmio_mmc_remove()
137 cell->disable(pdev); in tmio_mmc_remove()