Lines Matching defs:tfr
212 struct spi_transfer *tfr)
218 if (tfr->rx_buf) {
229 tfr->rx_sg.sgl,
230 tfr->rx_sg.nents,
240 if (tfr->tx_buf) {
251 tfr->tx_sg.sgl,
252 tfr->tx_sg.nents,
262 if (tfr->rx_buf) {
267 if (tfr->tx_buf) {
277 struct spi_transfer *tfr)
288 if (tfr->len > SUN6I_MAX_XFER_SIZE)
293 sspi->tx_buf = tfr->tx_buf;
294 sspi->rx_buf = tfr->rx_buf;
295 sspi->len = tfr->len;
296 use_dma = host->can_dma ? host->can_dma(host, spi, tfr) : false;
323 if (tfr->tx_buf)
325 if (tfr->rx_buf)
361 rx_len = tfr->len;
375 if (mclk_rate < (2 * tfr->speed_hz)) {
376 clk_set_rate(sspi->mclk, 2 * tfr->speed_hz);
394 div_cdr1 = DIV_ROUND_UP(mclk_rate, tfr->speed_hz);
398 tfr->effective_speed_hz = mclk_rate / (2 * div_cdr2);
402 tfr->effective_speed_hz = mclk_rate / (1 << div);
407 clk_set_rate(sspi->mclk, tfr->speed_hz);
408 tfr->effective_speed_hz = clk_get_rate(sspi->mclk);
422 if (tfr->effective_speed_hz <= 24000000)
424 else if (tfr->effective_speed_hz >= 80000000)
437 tx_len = tfr->len;
438 nbits = tfr->tx_nbits;
439 } else if (tfr->rx_buf) {
440 nbits = tfr->rx_nbits;
457 sun6i_spi_write(sspi, SUN6I_BURST_CNT_REG, tfr->len);
464 ret = sun6i_spi_prepare_dma(sspi, tfr);
489 tx_time = spi_controller_xfer_timeout(host, tfr);
513 dev_name(&spi->dev), tfr->len, tfr->speed_hz,