Lines Matching refs:cs
86 struct mpc512x_psc_spi_cs *cs = spi->controller_state; in mpc512x_psc_spi_transfer_setup() local
88 cs->speed_hz = (t && t->speed_hz) in mpc512x_psc_spi_transfer_setup()
90 cs->bits_per_word = (t && t->bits_per_word) in mpc512x_psc_spi_transfer_setup()
92 cs->bits_per_word = ((cs->bits_per_word + 7) / 8) * 8; in mpc512x_psc_spi_transfer_setup()
98 struct mpc512x_psc_spi_cs *cs = spi->controller_state; in mpc512x_psc_spi_activate_cs() local
126 speed = cs->speed_hz; in mpc512x_psc_spi_activate_cs()
133 mps->bits_per_word = cs->bits_per_word; in mpc512x_psc_spi_activate_cs()
370 struct mpc512x_psc_spi_cs *cs = spi->controller_state; in mpc512x_psc_spi_setup() local
376 if (!cs) { in mpc512x_psc_spi_setup()
377 cs = kzalloc(sizeof *cs, GFP_KERNEL); in mpc512x_psc_spi_setup()
378 if (!cs) in mpc512x_psc_spi_setup()
386 kfree(cs); in mpc512x_psc_spi_setup()
393 spi->controller_state = cs; in mpc512x_psc_spi_setup()
396 cs->bits_per_word = spi->bits_per_word; in mpc512x_psc_spi_setup()
397 cs->speed_hz = spi->max_speed_hz; in mpc512x_psc_spi_setup()