Searched refs:bpw (Results 1 – 4 of 4) sorted by relevance
| /linux/include/linux/spi/ |
| H A D | spi.h | 1383 static inline bool spi_is_bpw_supported(struct spi_device *spi, u32 bpw) in spi_is_bpw_supported() argument 1387 if (bpw == 8 || (bpw <= 32 && bpw_mask & SPI_BPW_MASK(bpw))) in spi_is_bpw_supported() 1414 static inline u32 spi_bpw_to_bytes(u32 bpw) in spi_bpw_to_bytes() argument 1416 return roundup_pow_of_two(BITS_TO_BYTES(bpw)); in spi_bpw_to_bytes()
|
| /linux/drivers/spi/ |
| H A D | spi-uniphier.c | 317 unsigned int bpw = bytes_per_word(priv->bits_per_word); in uniphier_spi_fill_tx_fifo() local 319 fifo_threshold = DIV_ROUND_UP(priv->rx_bytes, bpw); in uniphier_spi_fill_tx_fifo() 325 DIV_ROUND_UP(priv->rx_bytes - priv->tx_bytes, bpw); in uniphier_spi_fill_tx_fifo() 351 unsigned int bpw = bytes_per_word(priv->bits_per_word); in uniphier_spi_can_dma() local 358 return DIV_ROUND_UP(t->len, bpw) > SSI_FIFO_DEPTH; in uniphier_spi_can_dma()
|
| 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/drivers/iio/adc/ |
| H A D | ad4691.c | 1285 unsigned int bpw = indio_dev->channels[0].scan_type.realbits; in ad4691_manual_offload_buffer_postenable() local 1317 st->scan_xfers[k].bits_per_word = bpw; in ad4691_manual_offload_buffer_postenable() 1330 st->scan_xfers[k].bits_per_word = bpw; in ad4691_manual_offload_buffer_postenable() 1378 unsigned int bpw = indio_dev->channels[0].scan_type.realbits; in ad4691_cnv_burst_offload_buffer_postenable() local 1424 st->scan_xfers[2 * k].bits_per_word = bpw; in ad4691_cnv_burst_offload_buffer_postenable() 1428 st->scan_xfers[2 * k + 1].bits_per_word = bpw; in ad4691_cnv_burst_offload_buffer_postenable()
|