Lines Matching refs:cur_len
158 int cur_len; in spi_sh_send() local
167 cur_len = min(SPI_SH_FIFO_SIZE, remain); in spi_sh_send()
168 for (i = 0; i < cur_len && in spi_sh_send()
182 cur_len = i; in spi_sh_send()
184 remain -= cur_len; in spi_sh_send()
185 data += cur_len; in spi_sh_send()
223 int cur_len; in spi_sh_receive() local
252 cur_len = min(SPI_SH_FIFO_SIZE, remain); in spi_sh_receive()
253 for (i = 0; i < cur_len; i++) { in spi_sh_receive()
259 remain -= cur_len; in spi_sh_receive()
260 data += cur_len; in spi_sh_receive()