Lines Matching refs:t
61 struct spi_transfer *t, in bitbang_txrx_8() argument
65 unsigned bits = t->bits_per_word; in bitbang_txrx_8()
66 unsigned count = t->len; in bitbang_txrx_8()
67 const u8 *tx = t->tx_buf; in bitbang_txrx_8()
68 u8 *rx = t->rx_buf; in bitbang_txrx_8()
80 return t->len - count; in bitbang_txrx_8()
90 struct spi_transfer *t, in bitbang_txrx_16() argument
94 unsigned bits = t->bits_per_word; in bitbang_txrx_16()
95 unsigned count = t->len; in bitbang_txrx_16()
96 const u16 *tx = t->tx_buf; in bitbang_txrx_16()
97 u16 *rx = t->rx_buf; in bitbang_txrx_16()
109 return t->len - count; in bitbang_txrx_16()
119 struct spi_transfer *t, in bitbang_txrx_32() argument
123 unsigned bits = t->bits_per_word; in bitbang_txrx_32()
124 unsigned count = t->len; in bitbang_txrx_32()
125 const u32 *tx = t->tx_buf; in bitbang_txrx_32()
126 u32 *rx = t->rx_buf; in bitbang_txrx_32()
138 return t->len - count; in bitbang_txrx_32()
141 int spi_bitbang_setup_transfer(struct spi_device *spi, struct spi_transfer *t) in spi_bitbang_setup_transfer() argument
147 if (t) { in spi_bitbang_setup_transfer()
148 bits_per_word = t->bits_per_word; in spi_bitbang_setup_transfer()
149 hz = t->speed_hz; in spi_bitbang_setup_transfer()
233 static int spi_bitbang_bufs(struct spi_device *spi, struct spi_transfer *t) in spi_bitbang_bufs() argument
243 err = bitbang->set_line_direction(spi, !!(t->tx_buf)); in spi_bitbang_bufs()
251 flags = t->tx_buf ? SPI_CONTROLLER_NO_RX : SPI_CONTROLLER_NO_TX; in spi_bitbang_bufs()
252 return cs->txrx_bufs(spi, cs->txrx_word, nsecs, t, flags); in spi_bitbang_bufs()
254 return cs->txrx_bufs(spi, cs->txrx_word, nsecs, t, 0); in spi_bitbang_bufs()