Searched refs:bytes_per_word (Results 1 – 9 of 9) sorted by relevance
56 int bytes_per_word; member108 switch (hw->bytes_per_word) { in hw_txbyte()126 hw->bytes_per_word = DIV_ROUND_UP(t->bits_per_word, 8); in altera_spi_txrx()127 hw->len = t->len / hw->bytes_per_word; in altera_spi_txrx()154 switch (hw->bytes_per_word) { in altera_spi_txrx()169 return hw->count * hw->bytes_per_word; in altera_spi_txrx()179 switch (hw->bytes_per_word) { in altera_spi_irq()
179 unsigned bytes_per_word; member251 switch (tspi->bytes_per_word) { in tegra_slink_get_packed_size()276 tspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8); in tegra_slink_calculate_curr_xfer_param()289 tspi->curr_dma_words = max_len/tspi->bytes_per_word; in tegra_slink_calculate_curr_xfer_param()292 max_word = (remain_len - 1) / tspi->bytes_per_word + 1; in tegra_slink_calculate_curr_xfer_param()318 nbytes = written_words * tspi->bytes_per_word; in tegra_slink_fill_tx_fifo_from_client_txbuf()329 nbytes = written_words * tspi->bytes_per_word; in tegra_slink_fill_tx_fifo_from_client_txbuf()332 for (i = 0; nbytes && (i < tspi->bytes_per_word); in tegra_slink_fill_tx_fifo_from_client_txbuf()338 tspi->cur_tx_pos += written_words * tspi->bytes_per_word; in tegra_slink_fill_tx_fifo_from_client_txbuf()355 len = tspi->curr_dma_words * tspi->bytes_per_word; in tegra_slink_read_rx_fifo_to_client_rxbuf()[all …]
180 unsigned bytes_per_word; member260 tspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8); in tegra_spi_calculate_curr_xfer_param()272 tspi->curr_dma_words = max_len/tspi->bytes_per_word; in tegra_spi_calculate_curr_xfer_param()275 max_word = (remain_len - 1) / tspi->bytes_per_word + 1; in tegra_spi_calculate_curr_xfer_param()301 nbytes = written_words * tspi->bytes_per_word; in tegra_spi_fill_tx_fifo_from_client_txbuf()313 nbytes = written_words * tspi->bytes_per_word; in tegra_spi_fill_tx_fifo_from_client_txbuf()317 for (i = 0; nbytes && (i < tspi->bytes_per_word); in tegra_spi_fill_tx_fifo_from_client_txbuf()323 tspi->cur_tx_pos += written_words * tspi->bytes_per_word; in tegra_spi_fill_tx_fifo_from_client_txbuf()340 len = tspi->curr_dma_words * tspi->bytes_per_word; in tegra_spi_read_rx_fifo_to_client_rxbuf()347 tspi->cur_rx_pos += tspi->curr_dma_words * tspi->bytes_per_word; in tegra_spi_read_rx_fifo_to_client_rxbuf()[all …]
91 u8 bytes_per_word; member127 switch (xspi->bytes_per_word) { in xilinx_spi_tx()140 xspi->tx_ptr += xspi->bytes_per_word; in xilinx_spi_tx()150 switch (xspi->bytes_per_word) { in xilinx_spi_rx()162 xspi->rx_ptr += xspi->bytes_per_word; in xilinx_spi_rx()251 remaining_words = t->len / xspi->bytes_per_word; in xilinx_spi_txrx_bufs()454 xspi->bytes_per_word = bits_per_word / 8; in xilinx_spi_probe()
65 u16 bytes_per_word; member110 if (spi_st->bytes_per_word == 1) { in ssc_write_tx_fifo()136 if (spi_st->bytes_per_word == 1) { in ssc_read_rx_fifo()162 spi_st->bytes_per_word = 2; in spi_st_transfer_one()170 spi_st->bytes_per_word = 2; in spi_st_transfer_one()180 spi_st->bytes_per_word = 1; in spi_st_transfer_one()
128 unsigned bytes_per_word; member175 tsd->bytes_per_word = DIV_ROUND_UP(t->bits_per_word, 8); in tegra_sflash_calculate_curr_xfer_param()176 max_word = remain_len / tsd->bytes_per_word; in tegra_sflash_calculate_curr_xfer_param()193 nbytes = max_n_32bit * tsd->bytes_per_word; in tegra_sflash_fill_tx_fifo_from_client_txbuf()200 for (i = 0; nbytes && (i < tsd->bytes_per_word); in tegra_sflash_fill_tx_fifo_from_client_txbuf()209 tsd->cur_tx_pos += max_n_32bit * tsd->bytes_per_word; in tegra_sflash_fill_tx_fifo_from_client_txbuf()225 for (i = 0; (i < tsd->bytes_per_word); i++) in tegra_sflash_read_rx_fifo_to_client_rxbuf()230 tsd->cur_rx_pos += read_words * tsd->bytes_per_word; in tegra_sflash_read_rx_fifo_to_client_rxbuf()
141 u8 *bytes_per_word; member310 dspi->bytes_per_word[spi->chip_select] = 1; in davinci_spi_setup_transfer()314 dspi->bytes_per_word[spi->chip_select] = 2; in davinci_spi_setup_transfer()599 data_type = dspi->bytes_per_word[spi->chip_select]; in davinci_spi_bufs()966 dspi->bytes_per_word = devm_kzalloc(&pdev->dev, in davinci_spi_probe()967 sizeof(*dspi->bytes_per_word) * in davinci_spi_probe()969 if (dspi->bytes_per_word == NULL) { in davinci_spi_probe()
837 unsigned int bytes_per_word; in sh_msiof_transfer_one() local904 bytes_per_word = 1; in sh_msiof_transfer_one()908 bytes_per_word = 2; in sh_msiof_transfer_one()919 bytes_per_word = 4; in sh_msiof_transfer_one()930 bytes_per_word = 4; in sh_msiof_transfer_one()943 words = len / bytes_per_word; in sh_msiof_transfer_one()952 tx_buf += n * bytes_per_word; in sh_msiof_transfer_one()954 rx_buf += n * bytes_per_word; in sh_msiof_transfer_one()
304 int max_fifo_depth, fifo_depth, bytes_per_word; in omap2_mcspi_set_fifo() local311 bytes_per_word = mcspi_bytes_per_word(cs->word_len); in omap2_mcspi_set_fifo()312 if (t->len % bytes_per_word != 0) in omap2_mcspi_set_fifo()321 if (fifo_depth < 2 || fifo_depth % bytes_per_word != 0) in omap2_mcspi_set_fifo()324 wcnt = t->len / bytes_per_word; in omap2_mcspi_set_fifo()532 int bytes_per_word = mcspi_bytes_per_word(word_len); in omap2_mcspi_rx_dma() local534 count -= (bytes_per_word << 1); in omap2_mcspi_rx_dma()