Lines Matching refs:master
78 struct spi_master *master; member
89 return spi_master_get_devdata(sdev->master); in to_hw()
493 struct spi_master *master; in s3c24xx_spi_probe() local
497 master = spi_alloc_master(&pdev->dev, sizeof(struct s3c24xx_spi)); in s3c24xx_spi_probe()
498 if (master == NULL) { in s3c24xx_spi_probe()
503 hw = spi_master_get_devdata(master); in s3c24xx_spi_probe()
506 hw->master = master; in s3c24xx_spi_probe()
526 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in s3c24xx_spi_probe()
528 master->num_chipselect = hw->pdata->num_cs; in s3c24xx_spi_probe()
529 master->bus_num = pdata->bus_num; in s3c24xx_spi_probe()
530 master->bits_per_word_mask = SPI_BPW_MASK(8); in s3c24xx_spi_probe()
534 hw->bitbang.master = hw->master; in s3c24xx_spi_probe()
539 hw->master->setup = s3c24xx_spi_setup; in s3c24xx_spi_probe()
609 spi_master_put(hw->master); in s3c24xx_spi_probe()
619 spi_master_put(hw->master); in s3c24xx_spi_remove()
631 ret = spi_master_suspend(hw->master); in s3c24xx_spi_suspend()
647 return spi_master_resume(hw->master); in s3c24xx_spi_resume()