Lines Matching refs:cur_pos
180 unsigned cur_pos; member
262 unsigned remain_len = t->len - tspi->cur_pos; in tegra_spi_calculate_curr_xfer_param()
326 if (nbytes > t->len - tspi->cur_pos) in tegra_spi_fill_tx_fifo_from_client_txbuf()
327 nbytes = t->len - tspi->cur_pos; in tegra_spi_fill_tx_fifo_from_client_txbuf()
372 if (len > t->len - tspi->cur_pos) in tegra_spi_read_rx_fifo_to_client_rxbuf()
373 len = t->len - tspi->cur_pos; in tegra_spi_read_rx_fifo_to_client_rxbuf()
398 memcpy(tspi->tx_dma_buf, t->tx_buf + tspi->cur_pos, len); in tegra_spi_copy_client_txbuf_to_spi_txbuf()
407 if (consume > t->len - tspi->cur_pos) in tegra_spi_copy_client_txbuf_to_spi_txbuf()
408 consume = t->len - tspi->cur_pos; in tegra_spi_copy_client_txbuf_to_spi_txbuf()
447 if (consume > t->len - tspi->cur_pos) in tegra_spi_copy_spi_rxbuf_to_client_rxbuf()
448 consume = t->len - tspi->cur_pos; in tegra_spi_copy_spi_rxbuf_to_client_rxbuf()
794 tspi->cur_pos = 0; in tegra_spi_setup_transfer_one()
1149 tspi->cur_pos = tspi->cur_tx_pos; in handle_cpu_based_xfer()
1151 tspi->cur_pos = tspi->cur_rx_pos; in handle_cpu_based_xfer()
1153 if (tspi->cur_pos == t->len) { in handle_cpu_based_xfer()
1224 tspi->cur_pos = tspi->cur_tx_pos; in handle_dma_based_xfer()
1226 tspi->cur_pos = tspi->cur_rx_pos; in handle_dma_based_xfer()
1228 if (tspi->cur_pos == t->len) { in handle_dma_based_xfer()