Lines Matching refs:rx_len
111 unsigned int rx_len; /* number of data to be read in bytes */ member
152 while ((priv->rx_len > 0) && in stm32_spi_read_rxfifo()
155 u32 offs = priv->cur_xferlen - priv->rx_len; in stm32_spi_read_rxfifo()
158 (priv->rx_len >= sizeof(u32) || (sr & SPI_SR_RXWNE))) { in stm32_spi_read_rxfifo()
162 priv->rx_len -= sizeof(u32); in stm32_spi_read_rxfifo()
164 (priv->rx_len >= sizeof(u16) || in stm32_spi_read_rxfifo()
170 priv->rx_len -= sizeof(u16); in stm32_spi_read_rxfifo()
175 priv->rx_len -= sizeof(u8); in stm32_spi_read_rxfifo()
182 log_debug("%d bytes left\n", priv->rx_len); in stm32_spi_read_rxfifo()
386 priv->rx_len = priv->rx_buf ? bitlen / 8 : 0; in stm32_spi_xfer()
411 priv->tx_len, priv->rx_len); in stm32_spi_xfer()
435 if (priv->rx_buf && priv->rx_len > 0) in stm32_spi_xfer()
449 if (priv->rx_buf && priv->rx_len > 0) in stm32_spi_xfer()
453 if (priv->rx_buf && priv->rx_len > 0) in stm32_spi_xfer()