Lines Matching refs:master
82 struct spi_master *master;
94 return spi_master_get_devdata(sdev->master);
513 struct spi_master *master;
517 master = spi_alloc_master(&pdev->dev, sizeof(struct s3c24xx_spi));
518 if (master == NULL) {
524 hw = spi_master_get_devdata(master);
527 hw->master = spi_master_get(master);
544 /* setup the master state. */
547 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH;
549 master->num_chipselect = hw->pdata->num_cs;
550 master->bus_num = pdata->bus_num;
554 hw->bitbang.master = hw->master;
559 hw->master->setup = s3c24xx_spi_setup;
560 hw->master->cleanup = s3c24xx_spi_cleanup;
634 dev_err(&pdev->dev, "Failed to register SPI master\n");
659 spi_master_put(hw->master);
671 spi_unregister_master(hw->master);
685 spi_master_put(hw->master);