Lines Matching refs:t
64 struct spi_transfer *t) in mpc52xx_psc_spi_transfer_setup() argument
68 cs->speed_hz = (t && t->speed_hz) in mpc52xx_psc_spi_transfer_setup()
69 ? t->speed_hz : spi->max_speed_hz; in mpc52xx_psc_spi_transfer_setup()
70 cs->bits_per_word = (t && t->bits_per_word) in mpc52xx_psc_spi_transfer_setup()
71 ? t->bits_per_word : spi->bits_per_word; in mpc52xx_psc_spi_transfer_setup()
132 struct spi_transfer *t) in mpc52xx_psc_spi_transfer_rxtx() argument
139 unsigned char *rx_buf = (unsigned char *)t->rx_buf; in mpc52xx_psc_spi_transfer_rxtx()
140 unsigned char *tx_buf = (unsigned char *)t->tx_buf; in mpc52xx_psc_spi_transfer_rxtx()
146 if (!t->tx_buf && !t->rx_buf && t->len) in mpc52xx_psc_spi_transfer_rxtx()
151 while (rb < t->len) { in mpc52xx_psc_spi_transfer_rxtx()
152 if (t->len - rb > MPC52xx_PSC_BUFSIZE) { in mpc52xx_psc_spi_transfer_rxtx()
156 send_at_once = t->len - sb; in mpc52xx_psc_spi_transfer_rxtx()
157 rfalarm = MPC52xx_PSC_BUFSIZE - (t->len - rb); in mpc52xx_psc_spi_transfer_rxtx()
179 if (t->len - rb == 1) { in mpc52xx_psc_spi_transfer_rxtx()
215 struct spi_transfer *t = NULL; in mpc52xx_psc_spi_work() local
226 list_for_each_entry (t, &m->transfers, transfer_list) { in mpc52xx_psc_spi_work()
227 if (t->bits_per_word || t->speed_hz) { in mpc52xx_psc_spi_work()
228 status = mpc52xx_psc_spi_transfer_setup(spi, t); in mpc52xx_psc_spi_work()
235 cs_change = t->cs_change; in mpc52xx_psc_spi_work()
237 status = mpc52xx_psc_spi_transfer_rxtx(spi, t); in mpc52xx_psc_spi_work()
240 m->actual_length += t->len; in mpc52xx_psc_spi_work()
242 if (t->delay_usecs) in mpc52xx_psc_spi_work()
243 udelay(t->delay_usecs); in mpc52xx_psc_spi_work()