Lines Matching defs:bpw
544 static void pch_spi_set_tx(struct pch_spi_data *data, int *bpw)
565 *bpw = data->cur_trans->bits_per_word;
567 *bpw = data->current_msg->spi->bits_per_word;
574 data->bpw_len = data->cur_trans->len / (*bpw / 8);
605 if (*bpw == 8) {
666 * bpw;sfer requests in the current message or there are
722 static void pch_spi_copy_rx_data(struct pch_spi_data *data, int bpw)
732 if (bpw == 8) {
743 static void pch_spi_copy_rx_data_for_dma(struct pch_spi_data *data, int bpw)
755 if (bpw == 8) {
847 static void pch_spi_request_dma(struct pch_spi_data *data, int bpw)
856 if (bpw == 8)
917 static void pch_spi_handle_dma(struct pch_spi_data *data, int *bpw)
953 *bpw = data->cur_trans->bits_per_word;
955 *bpw = data->current_msg->spi->bits_per_word;
957 data->bpw_len = data->cur_trans->len / (*bpw / 8);
966 if (*bpw == 8) {
1017 sg->offset = sg->offset * (*bpw / 8);
1023 sg->offset = sg->offset * (*bpw / 8);
1029 sg->offset = sg->offset * (*bpw / 8);
1085 sg->offset = sg->offset * (*bpw / 8);
1091 sg->offset = sg->offset * (*bpw / 8);
1129 int bpw;
1207 pch_spi_handle_dma(data, &bpw);
1218 pch_spi_copy_rx_data_for_dma(data, bpw);
1222 pch_spi_set_tx(data, &bpw);
1224 pch_spi_copy_rx_data(data, bpw);