Lines Matching refs:master
83 struct spi_master *master;
177 struct au1550_spi *hw = spi_master_get_devdata(spi->master);
237 struct au1550_spi *hw = spi_master_get_devdata(spi->master);
296 struct au1550_spi *hw = spi_master_get_devdata(spi->master);
322 * spi master done event irq is not generated unless rx fifo is empty (emptied)
353 struct au1550_spi *hw = spi_master_get_devdata(spi->master);
552 struct au1550_spi *hw = spi_master_get_devdata(spi->master);
655 * of Figure 8-4 with flowchart for SPI master operation:
659 * Rx FIFO Overflow, or Multiple-master Error
684 struct au1550_spi *hw = spi_master_get_devdata(spi->master);
771 struct spi_master *master;
775 master = spi_alloc_master(&pdev->dev, sizeof(struct au1550_spi));
776 if (master == NULL) {
783 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST;
785 hw = spi_master_get_devdata(master);
787 hw->master = spi_master_get(master);
847 hw->bitbang.master = hw->master;
850 hw->bitbang.master->setup = au1550_spi_setup;
906 master->bus_num = pdev->id;
907 master->num_chipselect = hw->pdata->num_chipselect;
929 dev_err(&pdev->dev, "Failed to register SPI master\n");
934 "spi master registered: bus_num=%d num_chipselect=%d\n",
935 master->bus_num, master->num_chipselect);
964 spi_master_put(hw->master);
974 dev_info(&pdev->dev, "spi master remove: bus_num=%d\n",
975 hw->master->bus_num);
991 spi_master_put(hw->master);