Lines Matching refs:tx_len
102 unsigned int tx_len; /* number of data to be written in bytes */ member
112 while ((priv->tx_len > 0) && in stm32_spi_write_txfifo()
114 u32 offs = priv->cur_xferlen - priv->tx_len; in stm32_spi_write_txfifo()
116 if (priv->tx_len >= sizeof(u32) && in stm32_spi_write_txfifo()
121 priv->tx_len -= sizeof(u32); in stm32_spi_write_txfifo()
122 } else if (priv->tx_len >= sizeof(u16) && in stm32_spi_write_txfifo()
127 priv->tx_len -= sizeof(u16); in stm32_spi_write_txfifo()
132 priv->tx_len -= sizeof(u8); in stm32_spi_write_txfifo()
136 debug("%s: %d bytes left\n", __func__, priv->tx_len); in stm32_spi_write_txfifo()
377 priv->tx_len = priv->tx_buf ? bitlen / 8 : 0; in stm32_spi_xfer()
403 priv->tx_len, priv->rx_len); in stm32_spi_xfer()
437 if (priv->tx_buf && priv->tx_len > 0) in stm32_spi_xfer()