Lines Matching refs:master
2 * Freescale STMP378X SPI master driver
130 struct stmp_spi *ss = spi_master_get_devdata(spi->master);
419 struct stmp_spi *ss = spi_master_get_devdata(spi->master);
456 struct spi_master *master;
460 master = spi_alloc_master(&dev->dev, sizeof(struct stmp_spi));
461 if (master == NULL) {
465 master->flags = SPI_MASTER_HALF_DUPLEX;
467 ss = spi_master_get_devdata(master);
468 platform_set_drvdata(dev, master);
494 master->transfer = stmp_spi_transfer;
495 master->setup = stmp_spi_setup;
498 master->mode_bits = SPI_CPOL | SPI_CPHA;
526 master->bus_num = dev->id;
527 master->num_chipselect = 1;
561 err = spi_register_master(master);
563 dev_dbg(&dev->dev, "cannot register spi master, %d\n", err);
567 (u32)ss->regs, ss->irq, master->bus_num,
587 spi_master_put(master);
595 struct spi_master *master;
597 master = platform_get_drvdata(dev);
598 if (master == NULL)
600 ss = spi_master_get_devdata(master);
602 spi_unregister_master(master);
611 spi_master_put(master);
621 struct spi_master *master;
623 master = platform_get_drvdata(pdev);
624 ss = spi_master_get_devdata(master);
635 struct spi_master *master;
637 master = platform_get_drvdata(pdev);
638 ss = spi_master_get_devdata(master);