Searched refs:bpw (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/spi/ |
| H A D | spi-topcliff-pch.c | 516 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() 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 == 8) { in pch_spi_copy_rx_data_for_dma() 819 static void pch_spi_request_dma(struct pch_spi_data *data, int bpw) in pch_spi_request_dma() argument [all …]
|
| H A D | spi-fsl-lpspi.c | 101 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 <= 16) { in fsl_lpspi_setup_transfer()
|
| H A D | spi-stm32.c | 601 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()
|
| /linux/include/linux/spi/ |
| H A D | spi.h | 1367 static inline bool spi_is_bpw_supported(struct spi_device *spi, u32 bpw) in spi_is_bpw_supported() argument 1371 if (bpw == 8 || (bpw <= 32 && bpw_mask & SPI_BPW_MASK(bpw))) in spi_is_bpw_supported() 1398 static inline u32 spi_bpw_to_bytes(u32 bpw) in spi_bpw_to_bytes() argument 1400 return roundup_pow_of_two(BITS_TO_BYTES(bpw)); in spi_bpw_to_bytes()
|