Lines Matching refs:master
359 struct sh_msiof_spi_priv *p = spi_master_get_devdata(spi->master);
463 struct sh_msiof_spi_priv *p = spi_master_get_devdata(spi->master);
536 struct spi_master *master;
542 master = spi_alloc_master(&pdev->dev, sizeof(struct sh_msiof_spi_priv));
543 if (master == NULL) {
544 dev_err(&pdev->dev, "failed to allocate spi master\n");
549 p = spi_master_get_devdata(master);
597 /* init master and bitbang code */
598 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH;
599 master->mode_bits |= SPI_LSB_FIRST | SPI_3WIRE;
600 master->flags = 0;
601 master->bus_num = pdev->id;
602 master->num_chipselect = p->info->num_chipselect;
603 master->setup = spi_bitbang_setup;
604 master->cleanup = spi_bitbang_cleanup;
606 p->bitbang.master = master;
625 spi_master_put(master);
641 spi_master_put(p->bitbang.master);