Lines Matching refs:master
208 struct mpc8xxx_spi *mspi = spi_master_get_devdata(spi->master);
243 struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master);
338 mpc8xxx_spi = spi_master_get_devdata(spi->master);
526 struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master);
662 mpc8xxx_spi = spi_master_get_devdata(spi->master);
764 struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master);
997 struct spi_master *master;
1002 master = spi_alloc_master(dev, sizeof(struct mpc8xxx_spi));
1003 if (master == NULL) {
1008 dev_set_drvdata(dev, master);
1011 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH
1014 master->setup = mpc8xxx_spi_setup;
1015 master->transfer = mpc8xxx_spi_transfer;
1016 master->cleanup = mpc8xxx_spi_cleanup;
1017 master->dev.of_node = dev->of_node;
1019 mpc8xxx_spi = spi_master_get_devdata(master);
1054 master->bus_num = pdata->bus_num;
1055 master->num_chipselect = pdata->max_chipselect;
1075 dev_name(master->dev.parent));
1081 ret = spi_register_master(master);
1088 return master;
1099 spi_master_put(master);
1107 struct spi_master *master;
1109 master = dev_get_drvdata(dev);
1110 mpc8xxx_spi = spi_master_get_devdata(master);
1114 spi_unregister_master(master);
1252 struct spi_master *master;
1302 master = mpc8xxx_spi_probe(dev, &mem, irq.start);
1303 if (IS_ERR(master)) {
1304 ret = PTR_ERR(master);
1349 struct spi_master *master;
1362 master = mpc8xxx_spi_probe(&pdev->dev, mem, irq);
1363 if (IS_ERR(master))
1364 return PTR_ERR(master);