Lines Matching refs:bpw
516 static void pch_spi_set_tx(struct pch_spi_data *data, int *bpw)
537 *bpw = data->cur_trans->bits_per_word;
539 *bpw = data->current_msg->spi->bits_per_word;
546 data->bpw_len = data->cur_trans->len / (*bpw / 8);
577 if (*bpw == 8) {
638 * bpw;sfer requests in the current message or there are
694 static void pch_spi_copy_rx_data(struct pch_spi_data *data, int bpw)
704 if (bpw == 8) {
715 static void pch_spi_copy_rx_data_for_dma(struct pch_spi_data *data, int bpw)
727 if (bpw == 8) {
819 static void pch_spi_request_dma(struct pch_spi_data *data, int bpw)
828 if (bpw == 8)
895 static void pch_spi_handle_dma(struct pch_spi_data *data, int *bpw)
931 *bpw = data->cur_trans->bits_per_word;
933 *bpw = data->current_msg->spi->bits_per_word;
935 data->bpw_len = data->cur_trans->len / (*bpw / 8);
944 if (*bpw == 8) {
995 sg->offset = sg->offset * (*bpw / 8);
1001 sg->offset = sg->offset * (*bpw / 8);
1007 sg->offset = sg->offset * (*bpw / 8);
1063 sg->offset = sg->offset * (*bpw / 8);
1069 sg->offset = sg->offset * (*bpw / 8);
1107 int bpw;
1186 pch_spi_handle_dma(data, &bpw);
1197 pch_spi_copy_rx_data_for_dma(data, bpw);
1201 pch_spi_set_tx(data, &bpw);
1203 pch_spi_copy_rx_data(data, bpw);