Home
last modified time | relevance | path

Searched refs:bpw (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/spi/
H A Dspi-topcliff-pch.c516 static void pch_spi_set_tx(struct pch_spi_data *data, int *bpw) in pch_spi_set_tx() argument
537 *bpw = data->cur_trans->bits_per_word; in pch_spi_set_tx()
539 *bpw = data->current_msg->spi->bits_per_word; in pch_spi_set_tx()
546 data->bpw_len = data->cur_trans->len / (*bpw / 8); in pch_spi_set_tx()
577 if (*bpw == 8) { in pch_spi_set_tx()
638 * bpw;sfer requests in the current message or there are in pch_spi_nomore_transfer()
694 static void pch_spi_copy_rx_data(struct pch_spi_data *data, int bpw) in pch_spi_copy_rx_data() argument
704 if (bpw == 8) { in pch_spi_copy_rx_data()
715 static void pch_spi_copy_rx_data_for_dma(struct pch_spi_data *data, int bpw) in pch_spi_copy_rx_data_for_dma() argument
727 if (bpw in pch_spi_copy_rx_data_for_dma()
819 pch_spi_request_dma(struct pch_spi_data * data,int bpw) pch_spi_request_dma() argument
895 pch_spi_handle_dma(struct pch_spi_data * data,int * bpw) pch_spi_handle_dma() argument
1107 int bpw; pch_spi_process_messages() local
[all...]
H A Dspi-fsl-lpspi.c101 u8 bpw; member
205 static int fsl_lpspi_bytes_per_word(const int bpw) in fsl_lpspi_bytes_per_word() argument
207 return DIV_ROUND_UP(bpw, BITS_PER_BYTE); in fsl_lpspi_bytes_per_word()
293 temp |= FIELD_PREP(TCR_FRAMESZ, fsl_lpspi->config.bpw - 1); in fsl_lpspi_set_cmd()
391 switch (fsl_lpspi_bytes_per_word(fsl_lpspi->config.bpw)) { in fsl_lpspi_dma_configure()
473 fsl_lpspi->config.bpw = t->bits_per_word; in fsl_lpspi_setup_transfer()
482 if (!fsl_lpspi->config.bpw) in fsl_lpspi_setup_transfer()
483 fsl_lpspi->config.bpw = spi->bits_per_word; in fsl_lpspi_setup_transfer()
486 if (fsl_lpspi->config.bpw <= 8) { in fsl_lpspi_setup_transfer()
489 } else if (fsl_lpspi->config.bpw < in fsl_lpspi_setup_transfer()
[all...]
H A Dspi-stm32.c601 u32 packet, bpw; in stm32h7_spi_prepare_fthlv() local
607 bpw = DIV_ROUND_UP(spi->cur_bpw, 8); in stm32h7_spi_prepare_fthlv()
608 return DIV_ROUND_UP(packet, bpw); in stm32h7_spi_prepare_fthlv()
1783 u32 bpw; in stm32f7_spi_set_bpw() local
1786 bpw = spi->cur_bpw - 1; in stm32f7_spi_set_bpw()
1789 cr2_setb |= FIELD_PREP(STM32F7_SPI_CR2_DS, bpw); in stm32f7_spi_set_bpw()
1808 u32 bpw, fthlv; in stm32h7_spi_set_bpw() local
1811 bpw = spi->cur_bpw - 1; in stm32h7_spi_set_bpw()
1814 cfg1_setb |= FIELD_PREP(STM32H7_SPI_CFG1_DSIZE, bpw); in stm32h7_spi_set_bpw()
H A Dspi-ep93xx.c99 #define bits_per_word_to_dss(bpw) ((bpw) - 1) argument
/linux/include/linux/spi/
H A Dspi.h1356 * @bpw: Bits per word
1358 * This function checks to see if the SPI controller supports @bpw.
1361 * True if @bpw is supported, false otherwise.
1363 static inline bool spi_is_bpw_supported(struct spi_device *spi, u32 bpw)
1367 if (bpw == 8 || (bpw <= 32 && bpw_mask & SPI_BPW_MASK(bpw))) in spi_is_bpw_supported() argument
1375 * @bpw: Bits per word in spi_is_bpw_supported()
1377 * This function converts the given @bpw to bytes. The result is always
1392 * Bytes for the given @bpw
1398 spi_bpw_to_bytes(u32 bpw) spi_bpw_to_bytes() argument
[all...]