Lines Matching refs:rx_len
140 uint32_t rx = 0, rx_len = 0; in spi_rtio_copy() local
155 rx_len = rx_bufs->buffers[rx].len; in spi_rtio_copy()
158 rx_len = tx_bufs->buffers[tx].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()
177 rx_buf, rx_len, NULL); in spi_rtio_copy()
183 tx_buf, rx_buf, rx_len, NULL); in spi_rtio_copy()
189 rx_len = rx_bufs->buffers[rx].len; in spi_rtio_copy()
192 rx_len = 0; in spi_rtio_copy()
204 (uint32_t)rx_len, in spi_rtio_copy()
209 rx_len = rx_bufs->buffers[rx].len; in spi_rtio_copy()
212 rx_len = 0; in spi_rtio_copy()
214 } else if (rx_len == 0) { in spi_rtio_copy()
227 } else if (tx_len > rx_len) { in spi_rtio_copy()
231 (uint32_t)rx_len, in spi_rtio_copy()
233 tx_len -= rx_len; in spi_rtio_copy()
234 tx_buf += rx_len; in spi_rtio_copy()
238 rx_len = rx_bufs->buffers[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()
249 rx_len -= tx_len; in spi_rtio_copy()
257 tx_len = rx_len; in spi_rtio_copy()