Lines Matching refs:t

242 static int qspi_write_msg(struct ti_qspi *qspi, struct spi_transfer *t,  in qspi_write_msg()  argument
250 txbuf = t->tx_buf; in qspi_write_msg()
252 wlen = t->bits_per_word >> 3; /* in bytes */ in qspi_write_msg()
311 static int qspi_read_msg(struct ti_qspi *qspi, struct spi_transfer *t, in qspi_read_msg() argument
320 rxbuf = t->rx_buf; in qspi_read_msg()
322 switch (t->rx_nbits) { in qspi_read_msg()
333 wlen = t->bits_per_word >> 3; /* in bytes */ in qspi_read_msg()
410 static int qspi_transfer_msg(struct ti_qspi *qspi, struct spi_transfer *t, in qspi_transfer_msg() argument
415 if (t->tx_buf) { in qspi_transfer_msg()
416 ret = qspi_write_msg(qspi, t, count); in qspi_transfer_msg()
423 if (t->rx_buf) { in qspi_transfer_msg()
424 ret = qspi_read_msg(qspi, t, count); in qspi_transfer_msg()
666 struct spi_transfer *t; in ti_qspi_start_transfer_one() local
682 list_for_each_entry(t, &m->transfers, transfer_list) in ti_qspi_start_transfer_one()
683 frame_len_words += t->len / (t->bits_per_word >> 3); in ti_qspi_start_transfer_one()
698 list_for_each_entry(t, &m->transfers, transfer_list) { in ti_qspi_start_transfer_one()
700 QSPI_WLEN(t->bits_per_word)); in ti_qspi_start_transfer_one()
702 wlen = t->bits_per_word >> 3; in ti_qspi_start_transfer_one()
703 transfer_len_words = min(t->len / wlen, frame_len_words); in ti_qspi_start_transfer_one()
705 ti_qspi_setup_clk(qspi, t->speed_hz); in ti_qspi_start_transfer_one()
706 ret = qspi_transfer_msg(qspi, t, transfer_len_words * wlen); in ti_qspi_start_transfer_one()