Lines Matching refs:cs
71 int cs, int pol);
92 static void s3c24xx_spi_gpiocs(struct s3c2410_spi_info *spi, int cs, int pol) in s3c24xx_spi_gpiocs() argument
99 struct s3c24xx_spi_devstate *cs = spi->controller_state; in s3c24xx_spi_chipsel() local
108 writeb(cs->spcon, hw->regs + S3C2410_SPCON); in s3c24xx_spi_chipsel()
112 writeb(cs->spcon | S3C2410_SPCON_ENSCK, in s3c24xx_spi_chipsel()
123 struct s3c24xx_spi_devstate *cs = spi->controller_state; in s3c24xx_spi_update_state() local
133 if (spi->mode != cs->mode) { in s3c24xx_spi_update_state()
142 cs->mode = spi->mode; in s3c24xx_spi_update_state()
143 cs->spcon = spcon; in s3c24xx_spi_update_state()
146 if (cs->hz != hz) { in s3c24xx_spi_update_state()
156 cs->hz = hz; in s3c24xx_spi_update_state()
157 cs->sppre = div; in s3c24xx_spi_update_state()
166 struct s3c24xx_spi_devstate *cs = spi->controller_state; in s3c24xx_spi_setupxfer() local
172 writeb(cs->sppre, hw->regs + S3C2410_SPPRE); in s3c24xx_spi_setupxfer()
179 struct s3c24xx_spi_devstate *cs = spi->controller_state; in s3c24xx_spi_setup() local
184 if (!cs) { in s3c24xx_spi_setup()
185 cs = devm_kzalloc(&spi->dev, in s3c24xx_spi_setup()
188 if (!cs) in s3c24xx_spi_setup()
191 cs->spcon = SPCON_DEFAULT; in s3c24xx_spi_setup()
192 cs->hz = -1; in s3c24xx_spi_setup()
193 spi->controller_state = cs; in s3c24xx_spi_setup()