Lines Matching refs:t
168 struct spi_transfer *t) in sifive_spi_prep_transfer() argument
174 cr = DIV_ROUND_UP(clk_get_rate(spi->clk) >> 1, t->speed_hz) - 1; in sifive_spi_prep_transfer()
178 mode = max_t(unsigned int, t->rx_nbits, t->tx_nbits); in sifive_spi_prep_transfer()
181 cr = SIFIVE_SPI_FMT_LEN(t->bits_per_word); in sifive_spi_prep_transfer()
195 if (!t->rx_buf) in sifive_spi_prep_transfer()
205 return 1600000 * spi->fifo_depth <= t->speed_hz * mode; in sifive_spi_prep_transfer()
256 struct spi_transfer *t) in sifive_spi_transfer_one() argument
259 int poll = sifive_spi_prep_transfer(spi, device, t); in sifive_spi_transfer_one()
260 const u8 *tx_ptr = t->tx_buf; in sifive_spi_transfer_one()
261 u8 *rx_ptr = t->rx_buf; in sifive_spi_transfer_one()
262 unsigned int remaining_words = t->len; in sifive_spi_transfer_one()