Lines Matching defs:tfr
114 struct spi_transfer *tfr)
120 if (CS42L43_SPI_ROOT_HZ / cs42l43_clock_divs[i] <= tfr->speed_hz)
129 if (tfr->tx_buf) {
131 regmap_write(priv->regmap, CS42L43_TRAN_CONFIG4, tfr->len - 1);
132 } else if (tfr->rx_buf) {
134 regmap_write(priv->regmap, CS42L43_TRAN_CONFIG5, tfr->len - 1);
139 if (tfr->tx_buf)
140 ret = cs42l43_spi_tx(priv->regmap, (const u8 *)tfr->tx_buf, tfr->len);
141 else if (tfr->rx_buf)
142 ret = cs42l43_spi_rx(priv->regmap, (u8 *)tfr->rx_buf, tfr->len);