Lines Matching refs:t
474 struct spi_transfer t[2]; in rt5677_spi_read() local
490 memset(t, 0, sizeof(t)); in rt5677_spi_read()
491 t[0].tx_buf = header; in rt5677_spi_read()
492 t[0].len = sizeof(header); in rt5677_spi_read()
493 t[0].speed_hz = RT5677_SPI_FREQ; in rt5677_spi_read()
494 t[1].rx_buf = body; in rt5677_spi_read()
495 t[1].speed_hz = RT5677_SPI_FREQ; in rt5677_spi_read()
496 spi_message_init_with_transfers(&m, t, ARRAY_SIZE(t)); in rt5677_spi_read()
498 for (offset = 0; offset < len; offset += t[1].len) { in rt5677_spi_read()
500 len - offset, &t[1].len); in rt5677_spi_read()
515 rt5677_spi_reverse(cb + offset, len - offset, body, t[1].len); in rt5677_spi_read()
529 struct spi_transfer t; in rt5677_spi_write() local
545 memset(&t, 0, sizeof(t)); in rt5677_spi_write()
546 t.tx_buf = buf; in rt5677_spi_write()
547 t.speed_hz = RT5677_SPI_FREQ; in rt5677_spi_write()
548 spi_message_init_with_transfers(&m, &t, 1); in rt5677_spi_write()
552 len - offset, &t.len); in rt5677_spi_write()
562 rt5677_spi_reverse(body, t.len, cb + offset, len - offset); in rt5677_spi_write()
563 offset += t.len; in rt5677_spi_write()
564 t.len += RT5677_SPI_HEADER + 1; in rt5677_spi_write()