Lines Matching full:remain
204 uint32_t remain, flags, tx_len, rx_len; in spi_max32_transceive_sync() local
212 remain = tx_len - req->txCnt; in spi_max32_transceive_sync()
213 if (remain > 0) { in spi_max32_transceive_sync()
216 MIN(remain, sizeof(data->dummy))); in spi_max32_transceive_sync()
219 MXC_SPI_WriteTXFIFO(spi, &req->txData[req->txCnt], remain); in spi_max32_transceive_sync()
797 uint32_t flags, remain; in spi_max32_isr() local
803 remain = (req->txLen << dfs_shift) - req->txCnt; in spi_max32_isr()
805 if (remain) { in spi_max32_isr()
808 MIN(remain, sizeof(data->dummy))); in spi_max32_isr()
811 MXC_SPI_WriteTXFIFO(spi, &req->txData[req->txCnt], remain); in spi_max32_isr()
818 remain = (req->rxLen << dfs_shift) - req->rxCnt; in spi_max32_isr()
819 if (remain) { in spi_max32_isr()
820 req->rxCnt += MXC_SPI_ReadRXFIFO(spi, &req->rxData[req->rxCnt], remain); in spi_max32_isr()
821 remain = (req->rxLen << dfs_shift) - req->rxCnt; in spi_max32_isr()
822 if (remain >= MXC_SPI_FIFO_DEPTH) { in spi_max32_isr()
825 MXC_SPI_SetRXThreshold(spi, remain); in spi_max32_isr()