Lines Matching refs:bpw_len
172 u32 bpw_len; member
266 u32 n_read, tx_index, rx_index, bpw_len; in pch_spi_handler_sub() local
280 bpw_len = data->bpw_len; in pch_spi_handler_sub()
291 if (tx_index < bpw_len) in pch_spi_handler_sub()
296 if ((bpw_len - rx_index) <= PCH_MAX_FIFO_DEPTH) { in pch_spi_handler_sub()
313 if ((tx_index == bpw_len) && (rx_index == tx_index)) { in pch_spi_handler_sub()
546 data->bpw_len = data->cur_trans->len / (*bpw / 8); in pch_spi_set_tx()
579 for (j = 0; j < data->bpw_len; j++) in pch_spi_set_tx()
583 for (j = 0; j < data->bpw_len; j++) in pch_spi_set_tx()
589 n_writes = data->bpw_len; in pch_spi_set_tx()
663 if ((data->bpw_len) > PCH_MAX_FIFO_DEPTH) in pch_spi_set_ir()
706 for (j = 0; j < data->bpw_len; j++) in pch_spi_copy_rx_data()
710 for (j = 0; j < data->bpw_len; j++) in pch_spi_copy_rx_data()
730 for (j = 0; j < data->bpw_len; j++) in pch_spi_copy_rx_data_for_dma()
736 for (j = 0; j < data->bpw_len; j++) in pch_spi_copy_rx_data_for_dma()
935 data->bpw_len = data->cur_trans->len / (*bpw / 8); in pch_spi_handle_dma()
937 if (data->bpw_len > PCH_BUF_SIZE) { in pch_spi_handle_dma()
938 data->bpw_len = PCH_BUF_SIZE; in pch_spi_handle_dma()
947 for (i = 0; i < data->bpw_len; i++) in pch_spi_handle_dma()
952 for (i = 0; i < data->bpw_len; i++) in pch_spi_handle_dma()
958 if (data->bpw_len > PCH_DMA_TRANS_SIZE) { in pch_spi_handle_dma()
959 if (data->bpw_len % PCH_DMA_TRANS_SIZE) { in pch_spi_handle_dma()
960 num = data->bpw_len / PCH_DMA_TRANS_SIZE + 1; in pch_spi_handle_dma()
961 rem = data->bpw_len % PCH_DMA_TRANS_SIZE; in pch_spi_handle_dma()
963 num = data->bpw_len / PCH_DMA_TRANS_SIZE; in pch_spi_handle_dma()
969 size = data->bpw_len; in pch_spi_handle_dma()
970 rem = data->bpw_len; in pch_spi_handle_dma()
1030 if (data->bpw_len > PCH_MAX_FIFO_DEPTH) { in pch_spi_handle_dma()
1032 if (data->bpw_len % PCH_DMA_TRANS_SIZE > 4) { in pch_spi_handle_dma()
1033 num = data->bpw_len / PCH_DMA_TRANS_SIZE + 1; in pch_spi_handle_dma()
1034 rem = data->bpw_len % PCH_DMA_TRANS_SIZE - head; in pch_spi_handle_dma()
1036 num = data->bpw_len / PCH_DMA_TRANS_SIZE; in pch_spi_handle_dma()
1037 rem = data->bpw_len % PCH_DMA_TRANS_SIZE + in pch_spi_handle_dma()
1043 size = data->bpw_len; in pch_spi_handle_dma()
1044 rem = data->bpw_len; in pch_spi_handle_dma()