Lines Matching defs:tfr
206 struct spi_transfer *tfr)
216 if (tfr->len > SUN4I_MAX_XFER_SIZE)
219 if (tfr->tx_buf && tfr->len >= SUN4I_MAX_XFER_SIZE)
223 sspi->tx_buf = tfr->tx_buf;
224 sspi->rx_buf = tfr->rx_buf;
225 sspi->len = tfr->len;
270 if (mclk_rate < (2 * tfr->speed_hz)) {
271 clk_set_rate(sspi->mclk, 2 * tfr->speed_hz);
289 div = mclk_rate / (2 * tfr->speed_hz);
296 div = ilog2(mclk_rate) - ilog2(tfr->speed_hz);
304 tx_len = tfr->len;
307 sun4i_spi_write(sspi, SUN4I_BURST_CNT_REG, SUN4I_BURST_CNT(tfr->len));
328 tx_time = max(tfr->len * 8 * 2 / (tfr->speed_hz / 1000), 100U);
336 dev_name(&spi->dev), tfr->len, tfr->speed_hz,