Home
last modified time | relevance | path

Searched refs:bytes_per_word (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/spi/
H A Dspi-tegra20-slink.c170 unsigned bytes_per_word; member
239 switch (tspi->bytes_per_word) { in tegra_slink_get_packed_size()
264 tspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8); in tegra_slink_calculate_curr_xfer_param()
277 tspi->curr_dma_words = max_len/tspi->bytes_per_word; in tegra_slink_calculate_curr_xfer_param()
280 max_word = (remain_len - 1) / tspi->bytes_per_word + 1; in tegra_slink_calculate_curr_xfer_param()
306 nbytes = written_words * tspi->bytes_per_word; in tegra_slink_fill_tx_fifo_from_client_txbuf()
317 nbytes = written_words * tspi->bytes_per_word; in tegra_slink_fill_tx_fifo_from_client_txbuf()
320 for (i = 0; nbytes && (i < tspi->bytes_per_word); in tegra_slink_fill_tx_fifo_from_client_txbuf()
326 tspi->cur_tx_pos += written_words * tspi->bytes_per_word; in tegra_slink_fill_tx_fifo_from_client_txbuf()
343 len = tspi->curr_dma_words * tspi->bytes_per_word; in tegra_slink_read_rx_fifo_to_client_rxbuf()
[all …]
H A Dspi-tegra114.c181 unsigned bytes_per_word; member
267 tspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8); in tegra_spi_calculate_curr_xfer_param()
280 tspi->curr_dma_words = max_len/tspi->bytes_per_word; in tegra_spi_calculate_curr_xfer_param()
283 max_word = (remain_len - 1) / tspi->bytes_per_word + 1; in tegra_spi_calculate_curr_xfer_param()
309 nbytes = written_words * tspi->bytes_per_word; in tegra_spi_fill_tx_fifo_from_client_txbuf()
319 tspi->cur_tx_pos += written_words * tspi->bytes_per_word; in tegra_spi_fill_tx_fifo_from_client_txbuf()
324 nbytes = written_words * tspi->bytes_per_word; in tegra_spi_fill_tx_fifo_from_client_txbuf()
331 for (i = 0; nbytes && (i < tspi->bytes_per_word); in tegra_spi_fill_tx_fifo_from_client_txbuf()
356 len = tspi->curr_dma_words * tspi->bytes_per_word; in tegra_spi_read_rx_fifo_to_client_rxbuf()
364 tspi->cur_rx_pos += tspi->curr_dma_words * tspi->bytes_per_word; in tegra_spi_read_rx_fifo_to_client_rxbuf()
[all …]
H A Dspi-tegra210-quad.c198 unsigned int bytes_per_word; member
282 tqspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8); in tegra_qspi_calculate_curr_xfer_param()
302 tqspi->curr_dma_words = max_len / tqspi->bytes_per_word; in tegra_qspi_calculate_curr_xfer_param()
305 max_word = (remain_len - 1) / tqspi->bytes_per_word + 1; in tegra_qspi_calculate_curr_xfer_param()
328 len = written_words * tqspi->bytes_per_word; in tegra_qspi_fill_tx_fifo_from_client_txbuf()
338 tqspi->cur_tx_pos += written_words * tqspi->bytes_per_word; in tegra_qspi_fill_tx_fifo_from_client_txbuf()
341 u8 bytes_per_word = tqspi->bytes_per_word; in tegra_qspi_fill_tx_fifo_from_client_txbuf() local
345 len = written_words * tqspi->bytes_per_word; in tegra_qspi_fill_tx_fifo_from_client_txbuf()
352 for (i = 0; len && (i < min(4, bytes_per_word)); i++, len--) in tegra_qspi_fill_tx_fifo_from_client_txbuf()
374 len = tqspi->curr_dma_words * tqspi->bytes_per_word; in tegra_qspi_read_rx_fifo_to_client_rxbuf()
[all …]
H A Dspi-altera-core.c94 switch (hw->bytes_per_word) { in altera_spi_tx_word()
121 switch (hw->bytes_per_word) { in altera_spi_rx_word()
151 hw->bytes_per_word = DIV_ROUND_UP(t->bits_per_word, 8); in altera_spi_txrx()
152 hw->len = t->len / hw->bytes_per_word; in altera_spi_txrx()
H A Dspi-imx.c362 unsigned int bytes_per_word; in spi_imx_buf_rx_swap_u32() local
364 bytes_per_word = spi_imx_bytes_per_word(spi_imx->bits_per_word); in spi_imx_buf_rx_swap_u32()
365 if (bytes_per_word == 1) in spi_imx_buf_rx_swap_u32()
367 else if (bytes_per_word == 2) in spi_imx_buf_rx_swap_u32()
409 unsigned int bytes_per_word; in spi_imx_buf_tx_swap_u32() local
419 bytes_per_word = spi_imx_bytes_per_word(spi_imx->bits_per_word); in spi_imx_buf_tx_swap_u32()
421 if (bytes_per_word == 1) in spi_imx_buf_tx_swap_u32()
423 else if (bytes_per_word == 2) in spi_imx_buf_tx_swap_u32()
461 unsigned int bytes_per_word = spi_imx_bytes_per_word(spi_imx->bits_per_word); in mx53_ecspi_rx_target() local
463 if (bytes_per_word == 1) in mx53_ecspi_rx_target()
[all …]
H A Dspi-davinci.c187 u8 *bytes_per_word; member
355 dspi->bytes_per_word[spi_get_chipselect(spi, 0)] = 1; in davinci_spi_setup_transfer()
359 dspi->bytes_per_word[spi_get_chipselect(spi, 0)] = 2; in davinci_spi_setup_transfer()
642 data_type = dspi->bytes_per_word[spi_get_chipselect(spi, 0)]; in davinci_spi_bufs()
954 dspi->bytes_per_word = devm_kcalloc(&pdev->dev, in davinci_spi_probe()
956 sizeof(*dspi->bytes_per_word), in davinci_spi_probe()
958 if (dspi->bytes_per_word == NULL) { in davinci_spi_probe()
H A Dspi-omap2-mcspi.c313 int max_fifo_depth, bytes_per_word; in omap2_mcspi_set_fifo() local
320 bytes_per_word = mcspi_bytes_per_word(cs->word_len); in omap2_mcspi_set_fifo()
321 if (t->len % bytes_per_word != 0) in omap2_mcspi_set_fifo()
329 wcnt = t->len / bytes_per_word; in omap2_mcspi_set_fifo()
336 xferlevel |= (bytes_per_word - 1) << 8; in omap2_mcspi_set_fifo()
341 xferlevel |= bytes_per_word - 1; in omap2_mcspi_set_fifo()
567 int bytes_per_word = mcspi_bytes_per_word(word_len); in omap2_mcspi_rx_dma() local
569 count -= (bytes_per_word << 1); in omap2_mcspi_rx_dma()
H A Dspi-amlogic-spisg.c158 u32 bytes_per_word; member
602 spisg->bytes_per_word = spi->bits_per_word >> 3; in aml_spisg_prepare_message()
H A Dspi-geni-qcom.c423 int bytes_per_word = (mas->cur_bits_per_word / BITS_PER_BYTE) + 1; in setup_gsi_xfer() local
425 peripheral.rx_len = (xfer->len / bytes_per_word); in setup_gsi_xfer()
/linux/include/linux/spi/
H A Daltera.h36 int bytes_per_word; member