Lines Matching refs:cur_trans

181 	struct spi_transfer *cur_trans;  member
365 data->cur_trans = NULL; in pch_spi_handler()
526 if (data->cur_trans->speed_hz) { in pch_spi_set_tx()
528 pch_spi_set_baud_rate(data->master, data->cur_trans->speed_hz); in pch_spi_set_tx()
532 if (data->cur_trans->bits_per_word && in pch_spi_set_tx()
533 (data->current_msg->spi->bits_per_word != data->cur_trans->bits_per_word)) { in pch_spi_set_tx()
536 data->cur_trans->bits_per_word); in pch_spi_set_tx()
537 *bpw = data->cur_trans->bits_per_word; in pch_spi_set_tx()
546 data->bpw_len = data->cur_trans->len / (*bpw / 8); in pch_spi_set_tx()
549 size = data->cur_trans->len * sizeof(*data->pkt_tx_buff); in pch_spi_set_tx()
576 if (data->cur_trans->tx_buf != NULL) { in pch_spi_set_tx()
578 tx_buf = data->cur_trans->tx_buf; in pch_spi_set_tx()
582 tx_sbuf = data->cur_trans->tx_buf; in pch_spi_set_tx()
630 data->cur_trans = NULL; in pch_spi_nomore_transfer()
701 if (!data->cur_trans->rx_buf) in pch_spi_copy_rx_data()
705 rx_buf = data->cur_trans->rx_buf; in pch_spi_copy_rx_data()
709 rx_sbuf = data->cur_trans->rx_buf; in pch_spi_copy_rx_data()
724 if (!data->cur_trans->rx_buf) in pch_spi_copy_rx_data_for_dma()
728 rx_buf = data->cur_trans->rx_buf; in pch_spi_copy_rx_data_for_dma()
732 data->cur_trans->rx_buf = rx_buf; in pch_spi_copy_rx_data_for_dma()
734 rx_sbuf = data->cur_trans->rx_buf; in pch_spi_copy_rx_data_for_dma()
738 data->cur_trans->rx_buf = rx_sbuf; in pch_spi_copy_rx_data_for_dma()
915 if (data->cur_trans->speed_hz) { in pch_spi_handle_dma()
918 pch_spi_set_baud_rate(data->master, data->cur_trans->speed_hz); in pch_spi_handle_dma()
923 if (data->cur_trans->bits_per_word && in pch_spi_handle_dma()
925 data->cur_trans->bits_per_word)) { in pch_spi_handle_dma()
929 data->cur_trans->bits_per_word); in pch_spi_handle_dma()
931 *bpw = data->cur_trans->bits_per_word; in pch_spi_handle_dma()
935 data->bpw_len = data->cur_trans->len / (*bpw / 8); in pch_spi_handle_dma()
939 data->cur_trans->len -= PCH_BUF_SIZE; in pch_spi_handle_dma()
943 if (data->cur_trans->tx_buf != NULL) { in pch_spi_handle_dma()
945 tx_buf = data->cur_trans->tx_buf; in pch_spi_handle_dma()
950 tx_sbuf = data->cur_trans->tx_buf; in pch_spi_handle_dma()
1160 if (data->cur_trans == NULL) { in pch_spi_process_messages()
1161 data->cur_trans = in pch_spi_process_messages()
1168 data->cur_trans = in pch_spi_process_messages()
1169 list_entry(data->cur_trans->transfer_list.next, in pch_spi_process_messages()
1177 if (!data->cur_trans->len) in pch_spi_process_messages()
1179 cnt = (data->cur_trans->len - 1) / PCH_BUF_SIZE + 1; in pch_spi_process_messages()
1180 data->save_total_len = data->cur_trans->len; in pch_spi_process_messages()
1183 char *save_rx_buf = data->cur_trans->rx_buf; in pch_spi_process_messages()
1194 data->cur_trans = NULL; in pch_spi_process_messages()
1199 data->cur_trans->rx_buf = save_rx_buf; in pch_spi_process_messages()
1210 data->cur_trans->len = data->save_total_len; in pch_spi_process_messages()
1211 data->current_msg->actual_length += data->cur_trans->len; in pch_spi_process_messages()
1217 spi_transfer_delay_exec(data->cur_trans); in pch_spi_process_messages()
1222 if ((data->cur_trans->transfer_list.next) == in pch_spi_process_messages()
1229 } while (data->cur_trans != NULL); in pch_spi_process_messages()