Lines Matching refs:cs
60 struct mpc512x_psc_spi_cs *cs = spi->controller_state; in mpc512x_psc_spi_transfer_setup() local
62 cs->speed_hz = (t && t->speed_hz) in mpc512x_psc_spi_transfer_setup()
64 cs->bits_per_word = (t && t->bits_per_word) in mpc512x_psc_spi_transfer_setup()
66 cs->bits_per_word = ((cs->bits_per_word + 7) / 8) * 8; in mpc512x_psc_spi_transfer_setup()
72 struct mpc512x_psc_spi_cs *cs = spi->controller_state; in mpc512x_psc_spi_activate_cs() local
101 speed = cs->speed_hz; in mpc512x_psc_spi_activate_cs()
108 mps->bits_per_word = cs->bits_per_word; in mpc512x_psc_spi_activate_cs()
349 struct mpc512x_psc_spi_cs *cs = spi->controller_state; in mpc512x_psc_spi_setup() local
355 if (!cs) { in mpc512x_psc_spi_setup()
356 cs = kzalloc(sizeof *cs, GFP_KERNEL); in mpc512x_psc_spi_setup()
357 if (!cs) in mpc512x_psc_spi_setup()
365 kfree(cs); in mpc512x_psc_spi_setup()
372 spi->controller_state = cs; in mpc512x_psc_spi_setup()
375 cs->bits_per_word = spi->bits_per_word; in mpc512x_psc_spi_setup()
376 cs->speed_hz = spi->max_speed_hz; in mpc512x_psc_spi_setup()