Lines Matching refs:t
237 struct spi_transfer *t) in tegra_slink_get_packed_size() argument
255 struct spi_transfer *t) in tegra_slink_calculate_curr_xfer_param() argument
257 unsigned remain_len = t->len - tspi->cur_pos; in tegra_slink_calculate_curr_xfer_param()
263 bits_per_word = t->bits_per_word; in tegra_slink_calculate_curr_xfer_param()
273 tspi->packed_size = tegra_slink_get_packed_size(tspi, t); in tegra_slink_calculate_curr_xfer_param()
289 struct tegra_slink_data *tspi, struct spi_transfer *t) in tegra_slink_fill_tx_fifo_from_client_txbuf() argument
298 u8 *tx_buf = (u8 *)t->tx_buf + tspi->cur_tx_pos; in tegra_slink_fill_tx_fifo_from_client_txbuf()
331 struct tegra_slink_data *tspi, struct spi_transfer *t) in tegra_slink_read_rx_fifo_to_client_rxbuf() argument
338 u8 *rx_buf = (u8 *)t->rx_buf + tspi->cur_rx_pos; in tegra_slink_read_rx_fifo_to_client_rxbuf()
364 struct tegra_slink_data *tspi, struct spi_transfer *t) in tegra_slink_copy_client_txbuf_to_spi_txbuf() argument
372 memcpy(tspi->tx_dma_buf, t->tx_buf + tspi->cur_pos, len); in tegra_slink_copy_client_txbuf_to_spi_txbuf()
376 u8 *tx_buf = (u8 *)t->tx_buf + tspi->cur_tx_pos; in tegra_slink_copy_client_txbuf_to_spi_txbuf()
395 struct tegra_slink_data *tspi, struct spi_transfer *t) in tegra_slink_copy_spi_rxbuf_to_client_rxbuf() argument
405 memcpy(t->rx_buf + tspi->cur_rx_pos, tspi->rx_dma_buf, len); in tegra_slink_copy_spi_rxbuf_to_client_rxbuf()
409 unsigned char *rx_buf = t->rx_buf + tspi->cur_rx_pos; in tegra_slink_copy_spi_rxbuf_to_client_rxbuf()
410 u32 rx_mask = ((u32)1 << t->bits_per_word) - 1; in tegra_slink_copy_spi_rxbuf_to_client_rxbuf()
471 struct tegra_slink_data *tspi, struct spi_transfer *t) in tegra_slink_start_dma_based_transfer() argument
512 tegra_slink_copy_client_txbuf_to_spi_txbuf(tspi, t); in tegra_slink_start_dma_based_transfer()
556 struct tegra_slink_data *tspi, struct spi_transfer *t) in tegra_slink_start_cpu_based_transfer() argument
572 cur_words = tegra_slink_fill_tx_fifo_from_client_txbuf(tspi, t); in tegra_slink_start_cpu_based_transfer()
672 struct spi_transfer *t) in tegra_slink_start_transfer_one() argument
682 bits_per_word = t->bits_per_word; in tegra_slink_start_transfer_one()
683 speed = t->speed_hz; in tegra_slink_start_transfer_one()
693 tspi->curr_xfer = t; in tegra_slink_start_transfer_one()
694 total_fifo_words = tegra_slink_calculate_curr_xfer_param(spi, tspi, t); in tegra_slink_start_transfer_one()
704 if (t->rx_buf) { in tegra_slink_start_transfer_one()
708 if (t->tx_buf) { in tegra_slink_start_transfer_one()
725 ret = tegra_slink_start_dma_based_transfer(tspi, t); in tegra_slink_start_transfer_one()
727 ret = tegra_slink_start_cpu_based_transfer(tspi, t); in tegra_slink_start_transfer_one()
841 struct spi_transfer *t = tspi->curr_xfer; in handle_cpu_based_xfer() local
860 tegra_slink_read_rx_fifo_to_client_rxbuf(tspi, t); in handle_cpu_based_xfer()
867 if (tspi->cur_pos == t->len) { in handle_cpu_based_xfer()
872 tegra_slink_calculate_curr_xfer_param(tspi->cur_spi, tspi, t); in handle_cpu_based_xfer()
873 tegra_slink_start_cpu_based_transfer(tspi, t); in handle_cpu_based_xfer()
881 struct spi_transfer *t = tspi->curr_xfer; in handle_dma_based_xfer() local
934 tegra_slink_copy_spi_rxbuf_to_client_rxbuf(tspi, t); in handle_dma_based_xfer()
941 if (tspi->cur_pos == t->len) { in handle_dma_based_xfer()
948 tspi, t); in handle_dma_based_xfer()
950 err = tegra_slink_start_dma_based_transfer(tspi, t); in handle_dma_based_xfer()
952 err = tegra_slink_start_cpu_based_transfer(tspi, t); in handle_dma_based_xfer()