Lines Matching refs:t

178 					struct spi_transfer *t)  in fsl_spi_setup_transfer()  argument
188 if (t) { in fsl_spi_setup_transfer()
189 bits_per_word = t->bits_per_word; in fsl_spi_setup_transfer()
190 hz = t->speed_hz; in fsl_spi_setup_transfer()
235 struct spi_transfer *t, unsigned int len) in fsl_spi_cpu_bufs() argument
252 static int fsl_spi_bufs(struct spi_device *spi, struct spi_transfer *t, in fsl_spi_bufs() argument
257 unsigned int len = t->len; in fsl_spi_bufs()
263 if (t->bits_per_word) in fsl_spi_bufs()
264 bits_per_word = t->bits_per_word; in fsl_spi_bufs()
271 mpc8xxx_spi->tx = t->tx_buf; in fsl_spi_bufs()
272 mpc8xxx_spi->rx = t->rx_buf; in fsl_spi_bufs()
277 ret = fsl_spi_cpm_bufs(mpc8xxx_spi, t, is_dma_mapped); in fsl_spi_bufs()
279 ret = fsl_spi_cpu_bufs(mpc8xxx_spi, t, len); in fsl_spi_bufs()
298 struct spi_transfer *t; in fsl_spi_prepare_message() local
312 list_for_each_entry(t, &m->transfers, transfer_list) { in fsl_spi_prepare_message()
313 if (t->speed_hz != first->speed_hz) { in fsl_spi_prepare_message()
319 if (t->len < 256 || t->bits_per_word != 8) in fsl_spi_prepare_message()
321 if ((t->len & 3) == 0) in fsl_spi_prepare_message()
322 t->bits_per_word = 32; in fsl_spi_prepare_message()
323 else if ((t->len & 1) == 0) in fsl_spi_prepare_message()
324 t->bits_per_word = 16; in fsl_spi_prepare_message()
334 if (m->spi->mode & SPI_LSB_FIRST && t->bits_per_word > 8) in fsl_spi_prepare_message()
336 if (t->bits_per_word == 16 || t->bits_per_word == 32) in fsl_spi_prepare_message()
337 t->bits_per_word = 8; /* pretend its 8 bits */ in fsl_spi_prepare_message()
338 if (t->bits_per_word == 8 && t->len >= 256 && in fsl_spi_prepare_message()
340 t->bits_per_word = 16; in fsl_spi_prepare_message()
348 struct spi_transfer *t) in fsl_spi_transfer_one() argument
352 status = fsl_spi_setup_transfer(spi, t); in fsl_spi_transfer_one()
355 if (t->len) in fsl_spi_transfer_one()
356 status = fsl_spi_bufs(spi, t, !!t->tx_dma || !!t->rx_dma); in fsl_spi_transfer_one()