Lines Matching refs:cs
66 struct mpc52xx_psc_spi_cs *cs = spi->controller_state; in mpc52xx_psc_spi_transfer_setup() local
68 cs->speed_hz = (t && t->speed_hz) in mpc52xx_psc_spi_transfer_setup()
70 cs->bits_per_word = (t && t->bits_per_word) in mpc52xx_psc_spi_transfer_setup()
72 cs->bits_per_word = ((cs->bits_per_word + 7) / 8) * 8; in mpc52xx_psc_spi_transfer_setup()
78 struct mpc52xx_psc_spi_cs *cs = spi->controller_state; in mpc52xx_psc_spi_activate_cs() local
108 if (cs->speed_hz) in mpc52xx_psc_spi_activate_cs()
109 ccr |= (MCLK / cs->speed_hz - 1) & 0xFF; in mpc52xx_psc_spi_activate_cs()
113 mps->bits_per_word = cs->bits_per_word; in mpc52xx_psc_spi_activate_cs()
267 struct mpc52xx_psc_spi_cs *cs = spi->controller_state; in mpc52xx_psc_spi_setup() local
273 if (!cs) { in mpc52xx_psc_spi_setup()
274 cs = kzalloc(sizeof *cs, GFP_KERNEL); in mpc52xx_psc_spi_setup()
275 if (!cs) in mpc52xx_psc_spi_setup()
277 spi->controller_state = cs; in mpc52xx_psc_spi_setup()
280 cs->bits_per_word = spi->bits_per_word; in mpc52xx_psc_spi_setup()
281 cs->speed_hz = spi->max_speed_hz; in mpc52xx_psc_spi_setup()