Lines Matching refs:tx_len
139 uint32_t tx = 0, tx_len = 0; in spi_rtio_copy() local
147 tx_len = tx_bufs->buffers[tx].len; in spi_rtio_copy()
150 tx_len = rx_bufs->buffers[rx].len; in spi_rtio_copy()
162 while ((tx < tx_count || rx < rx_count) && (tx_len > 0 || rx_len > 0)) { in spi_rtio_copy()
174 if (tx_len == rx_len) { in spi_rtio_copy()
180 tx_buf, tx_len, NULL); in spi_rtio_copy()
196 tx_len = tx_bufs->buffers[tx].len; in spi_rtio_copy()
199 tx_len = 0; in spi_rtio_copy()
201 } else if (tx_len == 0) { in spi_rtio_copy()
217 (uint32_t)tx_len, in spi_rtio_copy()
222 tx_len = rx_bufs->buffers[rx].len; in spi_rtio_copy()
225 tx_len = 0; in spi_rtio_copy()
227 } else if (tx_len > rx_len) { in spi_rtio_copy()
233 tx_len -= rx_len; in spi_rtio_copy()
241 rx_len = tx_len; in spi_rtio_copy()
243 } else if (rx_len > tx_len) { in spi_rtio_copy()
247 (uint32_t)tx_len, in spi_rtio_copy()
249 rx_len -= tx_len; in spi_rtio_copy()
250 rx_buf += tx_len; in spi_rtio_copy()
254 tx_len = tx_bufs->buffers[tx].len; in spi_rtio_copy()
257 tx_len = rx_len; in spi_rtio_copy()