Lines Matching refs:t

294 				struct spi_transfer *t, int enable)  in omap2_mcspi_set_fifo()  argument
308 if (t->len % bytes_per_word != 0) in omap2_mcspi_set_fifo()
311 if (t->rx_buf != NULL && t->tx_buf != NULL) in omap2_mcspi_set_fifo()
316 wcnt = t->len / bytes_per_word; in omap2_mcspi_set_fifo()
321 if (t->rx_buf != NULL) { in omap2_mcspi_set_fifo()
326 if (t->tx_buf != NULL) { in omap2_mcspi_set_fifo()
339 if (t->rx_buf != NULL) in omap2_mcspi_set_fifo()
342 if (t->tx_buf != NULL) in omap2_mcspi_set_fifo()
898 struct spi_transfer *t) in omap2_mcspi_setup_transfer() argument
908 if (t != NULL && t->bits_per_word) in omap2_mcspi_setup_transfer()
909 word_len = t->bits_per_word; in omap2_mcspi_setup_transfer()
913 if (t && t->speed_hz) in omap2_mcspi_setup_transfer()
914 speed_hz = t->speed_hz; in omap2_mcspi_setup_transfer()
1129 struct spi_transfer *t) in omap2_mcspi_transfer_one() argument
1168 (t->speed_hz != spi->max_speed_hz) || in omap2_mcspi_transfer_one()
1169 (t->bits_per_word != spi->bits_per_word)) { in omap2_mcspi_transfer_one()
1171 status = omap2_mcspi_setup_transfer(spi, t); in omap2_mcspi_transfer_one()
1174 if (t->speed_hz == spi->max_speed_hz && in omap2_mcspi_transfer_one()
1175 t->bits_per_word == spi->bits_per_word) in omap2_mcspi_transfer_one()
1190 if (t->tx_buf == NULL) in omap2_mcspi_transfer_one()
1192 else if (t->rx_buf == NULL) in omap2_mcspi_transfer_one()
1195 if (cd && cd->turbo_mode && t->tx_buf == NULL) { in omap2_mcspi_transfer_one()
1197 if (t->len > ((cs->word_len + 7) >> 3)) in omap2_mcspi_transfer_one()
1203 if (t->len) { in omap2_mcspi_transfer_one()
1208 ctlr->can_dma(ctlr, spi, t)) in omap2_mcspi_transfer_one()
1209 omap2_mcspi_set_fifo(spi, t, 1); in omap2_mcspi_transfer_one()
1214 if (t->tx_buf == NULL) in omap2_mcspi_transfer_one()
1220 ctlr->can_dma(ctlr, spi, t)) in omap2_mcspi_transfer_one()
1221 count = omap2_mcspi_txrx_dma(spi, t); in omap2_mcspi_transfer_one()
1223 count = omap2_mcspi_txrx_pio(spi, t); in omap2_mcspi_transfer_one()
1225 if (count != t->len) { in omap2_mcspi_transfer_one()
1234 omap2_mcspi_set_fifo(spi, t, 0); in omap2_mcspi_transfer_one()
1256 if (mcspi->fifo_depth > 0 && t) in omap2_mcspi_transfer_one()
1257 omap2_mcspi_set_fifo(spi, t, 0); in omap2_mcspi_transfer_one()