Lines Matching refs:t
88 struct spi_transfer *t) in bcm63xx_spi_setup_transfer() argument
96 if (t->speed_hz >= bcm63xx_spi_freq_table[i][0]) { in bcm63xx_spi_setup_transfer()
113 clk_cfg, t->speed_hz); in bcm63xx_spi_setup_transfer()
127 struct spi_transfer *t = first; in bcm63xx_txrx_bufs() local
135 t->tx_buf, t->rx_buf, t->len); in bcm63xx_txrx_bufs()
137 if (num_transfers > 1 && t->tx_buf && t->len <= BCM63XX_SPI_MAX_PREPEND) in bcm63xx_txrx_bufs()
138 prepend_len = t->len; in bcm63xx_txrx_bufs()
142 if (t->tx_buf) { in bcm63xx_txrx_bufs()
144 memcpy_toio(bs->tx_io + len, t->tx_buf, t->len); in bcm63xx_txrx_bufs()
147 if (t != first) in bcm63xx_txrx_bufs()
151 if (t->rx_buf) { in bcm63xx_txrx_bufs()
154 if (t == first) in bcm63xx_txrx_bufs()
158 len += t->len; in bcm63xx_txrx_bufs()
160 t = list_entry(t->transfer_list.next, struct spi_transfer, in bcm63xx_txrx_bufs()
202 t = first; in bcm63xx_txrx_bufs()
205 if (t->rx_buf) in bcm63xx_txrx_bufs()
206 memcpy_fromio(t->rx_buf, bs->rx_io + len, t->len); in bcm63xx_txrx_bufs()
208 if (t != first || prepend_len == 0) in bcm63xx_txrx_bufs()
209 len += t->len; in bcm63xx_txrx_bufs()
211 t = list_entry(t->transfer_list.next, struct spi_transfer, in bcm63xx_txrx_bufs()
222 struct spi_transfer *t, *first = NULL; in bcm63xx_spi_transfer_one() local
234 list_for_each_entry(t, &m->transfers, transfer_list) { in bcm63xx_spi_transfer_one()
236 first = t; in bcm63xx_spi_transfer_one()
239 total_len += t->len; in bcm63xx_spi_transfer_one()
241 if (n_transfers == 2 && !first->rx_buf && !t->tx_buf && in bcm63xx_spi_transfer_one()
244 else if (can_use_prepend && t->tx_buf) in bcm63xx_spi_transfer_one()
258 if (t->speed_hz != first->speed_hz) { in bcm63xx_spi_transfer_one()
265 if (t->delay_usecs) { in bcm63xx_spi_transfer_one()
271 if (t->cs_change || in bcm63xx_spi_transfer_one()
272 list_is_last(&t->transfer_list, &m->transfers)) { in bcm63xx_spi_transfer_one()