Lines Matching refs:master
277 struct ep93xx_spi *espi = spi_master_get_devdata(spi->master);
340 struct ep93xx_spi *espi = spi_master_get_devdata(spi->master);
380 * ep93xx_spi_cleanup() - cleans up master controller specific state
383 * This function releases master controller specific state for given @spi
757 struct spi_master *master;
765 master = spi_alloc_master(&pdev->dev, sizeof(*espi));
766 if (!master) {
767 dev_err(&pdev->dev, "failed to allocate spi master\n");
771 master->setup = ep93xx_spi_setup;
772 master->transfer = ep93xx_spi_transfer;
773 master->cleanup = ep93xx_spi_cleanup;
774 master->bus_num = pdev->id;
775 master->num_chipselect = info->num_chipselect;
776 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH;
778 platform_set_drvdata(pdev, master);
780 espi = spi_master_get_devdata(master);
847 error = spi_register_master(master);
849 dev_err(&pdev->dev, "failed to register SPI master\n");
869 spi_master_put(master);
877 struct spi_master *master = platform_get_drvdata(pdev);
878 struct ep93xx_spi *espi = spi_master_get_devdata(master);
911 spi_unregister_master(master);