Lines Matching refs:t
204 struct spi_transfer *t) in bcm63xx_spi_setup_transfer() argument
212 if (t->speed_hz >= bcm63xx_spi_freq_table[i][0]) { in bcm63xx_spi_setup_transfer()
229 clk_cfg, t->speed_hz); in bcm63xx_spi_setup_transfer()
242 struct spi_transfer *t = first; in bcm63xx_txrx_bufs() local
250 t->tx_buf, t->rx_buf, t->len); in bcm63xx_txrx_bufs()
252 if (num_transfers > 1 && t->tx_buf && t->len <= BCM63XX_SPI_MAX_PREPEND) in bcm63xx_txrx_bufs()
253 prepend_len = t->len; in bcm63xx_txrx_bufs()
257 if (t->tx_buf) { in bcm63xx_txrx_bufs()
259 memcpy_toio(bs->tx_io + len, t->tx_buf, t->len); in bcm63xx_txrx_bufs()
262 if (t != first) in bcm63xx_txrx_bufs()
266 if (t->rx_buf) { in bcm63xx_txrx_bufs()
269 if (t == first) in bcm63xx_txrx_bufs()
273 len += t->len; in bcm63xx_txrx_bufs()
275 t = list_entry(t->transfer_list.next, struct spi_transfer, in bcm63xx_txrx_bufs()
317 t = first; in bcm63xx_txrx_bufs()
320 if (t->rx_buf) in bcm63xx_txrx_bufs()
321 memcpy_fromio(t->rx_buf, bs->rx_io + len, t->len); in bcm63xx_txrx_bufs()
323 if (t != first || prepend_len == 0) in bcm63xx_txrx_bufs()
324 len += t->len; in bcm63xx_txrx_bufs()
326 t = list_entry(t->transfer_list.next, struct spi_transfer, in bcm63xx_txrx_bufs()
337 struct spi_transfer *t, *first = NULL; in bcm63xx_spi_transfer_one() local
349 list_for_each_entry(t, &m->transfers, transfer_list) { in bcm63xx_spi_transfer_one()
351 first = t; in bcm63xx_spi_transfer_one()
354 total_len += t->len; in bcm63xx_spi_transfer_one()
356 if (n_transfers == 2 && !first->rx_buf && !t->tx_buf && in bcm63xx_spi_transfer_one()
359 else if (can_use_prepend && t->tx_buf) in bcm63xx_spi_transfer_one()
373 if (t->speed_hz != first->speed_hz) { in bcm63xx_spi_transfer_one()
380 if (t->delay_usecs) { in bcm63xx_spi_transfer_one()
386 if (t->cs_change || in bcm63xx_spi_transfer_one()
387 list_is_last(&t->transfer_list, &m->transfers)) { in bcm63xx_spi_transfer_one()