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()
505 hw->master = master; in s3c24xx_spi_probe()
525 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in s3c24xx_spi_probe()
527 master->num_chipselect = hw->pdata->num_cs; in s3c24xx_spi_probe()
528 master->bus_num = pdata->bus_num; in s3c24xx_spi_probe()
529 master->bits_per_word_mask = SPI_BPW_MASK(8); in s3c24xx_spi_probe()
533 hw->bitbang.master = hw->master; in s3c24xx_spi_probe()
538 hw->master->setup = s3c24xx_spi_setup; in s3c24xx_spi_probe()
608 spi_master_put(hw->master); in s3c24xx_spi_probe()
618 spi_master_put(hw->master); in s3c24xx_spi_remove()
630 ret = spi_master_suspend(hw->master); in s3c24xx_spi_suspend()
646 return spi_master_resume(hw->master); in s3c24xx_spi_resume()