Lines Matching refs:plat_dev
183 struct platform_device *plat_dev; member
1297 static int pch_spi_pd_probe(struct platform_device *plat_dev) in pch_spi_pd_probe() argument
1301 struct pch_spi_board_data *board_dat = dev_get_platdata(&plat_dev->dev); in pch_spi_pd_probe()
1304 dev_dbg(&plat_dev->dev, "%s:debug\n", __func__); in pch_spi_pd_probe()
1309 dev_err(&plat_dev->dev, "spi_alloc_master[%d] failed.\n", in pch_spi_pd_probe()
1310 plat_dev->id); in pch_spi_pd_probe()
1317 platform_set_drvdata(plat_dev, data); in pch_spi_pd_probe()
1321 PCH_ADDRESS_SIZE * plat_dev->id; in pch_spi_pd_probe()
1324 dev_err(&plat_dev->dev, "%s pci_iomap failed\n", __func__); in pch_spi_pd_probe()
1328 data->io_remap_addr += PCH_ADDRESS_SIZE * plat_dev->id; in pch_spi_pd_probe()
1330 dev_dbg(&plat_dev->dev, "[ch%d] remap_addr=%p\n", in pch_spi_pd_probe()
1331 plat_dev->id, data->io_remap_addr); in pch_spi_pd_probe()
1342 data->plat_dev = plat_dev; in pch_spi_pd_probe()
1345 data->ch = plat_dev->id; in pch_spi_pd_probe()
1355 dev_err(&plat_dev->dev, "%s fail(retval=%d)\n", __func__, ret); in pch_spi_pd_probe()
1362 dev_err(&plat_dev->dev, in pch_spi_pd_probe()
1371 dev_info(&plat_dev->dev, "Use DMA for data transfers\n"); in pch_spi_pd_probe()
1379 dev_err(&plat_dev->dev, in pch_spi_pd_probe()
1399 static int pch_spi_pd_remove(struct platform_device *plat_dev) in pch_spi_pd_remove() argument
1401 struct pch_spi_board_data *board_dat = dev_get_platdata(&plat_dev->dev); in pch_spi_pd_remove()
1402 struct pch_spi_data *data = platform_get_drvdata(plat_dev); in pch_spi_pd_remove()
1406 dev_dbg(&plat_dev->dev, "%s:[ch%d] irq=%d\n", in pch_spi_pd_remove()
1407 __func__, plat_dev->id, board_dat->pdev->irq); in pch_spi_pd_remove()