Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/spi/
Dspi-dln2.c91 u8 bpw; member
302 static int dln2_spi_set_bpw(struct dln2_spi *dln2, u8 bpw) in dln2_spi_set_bpw() argument
306 u8 bpw; in dln2_spi_set_bpw() member
310 tx.bpw = bpw; in dln2_spi_set_bpw()
355 static int dln2_spi_copy_to_buf(u8 *dln2_buf, const u8 *src, u16 len, u8 bpw) in dln2_spi_copy_to_buf() argument
360 if (bpw <= 8) { in dln2_spi_copy_to_buf()
362 } else if (bpw <= 16) { in dln2_spi_copy_to_buf()
388 static int dln2_spi_copy_from_buf(u8 *dest, const u8 *dln2_buf, u16 len, u8 bpw) in dln2_spi_copy_from_buf() argument
393 if (bpw <= 8) { in dln2_spi_copy_from_buf()
395 } else if (bpw <= 16) { in dln2_spi_copy_from_buf()
[all …]
Dspi-synquacer.c125 unsigned int bpw; member
149 switch (sspi->bpw) { in read_fifo()
193 switch (sspi->bpw) { in write_fifo()
233 unsigned int speed, mode, bpw, cs, bus_width, transfer_mode; in synquacer_spi_config() local
255 bpw = xfer->bits_per_word; in synquacer_spi_config()
259 bus_width == sspi->bus_width && bpw == sspi->bpw && in synquacer_spi_config()
277 if (bpw == 8 && (mode & (SPI_TX_DUAL | SPI_RX_DUAL)) && div < 3) in synquacer_spi_config()
279 if (bpw == 8 && (mode & (SPI_TX_QUAD | SPI_RX_QUAD)) && div < 6) in synquacer_spi_config()
281 if (bpw == 16 && (mode & (SPI_TX_QUAD | SPI_RX_QUAD)) && div < 3) in synquacer_spi_config()
326 val |= ((bpw / 8 - 1) << SYNQUACER_HSSPI_FIFOCFG_FIFO_WIDTH_SHIFT); in synquacer_spi_config()
[all …]
Dspi-topcliff-pch.c544 static void pch_spi_set_tx(struct pch_spi_data *data, int *bpw) in pch_spi_set_tx() argument
565 *bpw = data->cur_trans->bits_per_word; in pch_spi_set_tx()
567 *bpw = data->current_msg->spi->bits_per_word; in pch_spi_set_tx()
574 data->bpw_len = data->cur_trans->len / (*bpw / 8); in pch_spi_set_tx()
603 if (*bpw == 8) { in pch_spi_set_tx()
720 static void pch_spi_copy_rx_data(struct pch_spi_data *data, int bpw) in pch_spi_copy_rx_data() argument
730 if (bpw == 8) { in pch_spi_copy_rx_data()
741 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
753 if (bpw == 8) { in pch_spi_copy_rx_data_for_dma()
845 static void pch_spi_request_dma(struct pch_spi_data *data, int bpw) in pch_spi_request_dma() argument
[all …]
Dspi-clps711x.c31 unsigned int bpw; member
57 hw->bpw = xfer->bits_per_word; in spi_clps711x_transfer_one()
63 writel(data | SYNCIO_FRMLEN(hw->bpw) | SYNCIO_TXFRMEN, hw->syncio); in spi_clps711x_transfer_one()
82 writel(data | SYNCIO_FRMLEN(hw->bpw) | SYNCIO_TXFRMEN, in spi_clps711x_isr()
Dspi-fsl-lpspi.c87 u8 bpw; member
169 static int fsl_lpspi_bytes_per_word(const int bpw) in fsl_lpspi_bytes_per_word() argument
171 return DIV_ROUND_UP(bpw, BITS_PER_BYTE); in fsl_lpspi_bytes_per_word()
259 temp |= fsl_lpspi->config.bpw - 1; in fsl_lpspi_set_cmd()
339 switch (fsl_lpspi_bytes_per_word(fsl_lpspi->config.bpw)) { in fsl_lpspi_dma_configure()
422 fsl_lpspi->config.bpw = t->bits_per_word; in fsl_lpspi_setup_transfer()
431 if (!fsl_lpspi->config.bpw) in fsl_lpspi_setup_transfer()
432 fsl_lpspi->config.bpw = spi->bits_per_word; in fsl_lpspi_setup_transfer()
435 if (fsl_lpspi->config.bpw <= 8) { in fsl_lpspi_setup_transfer()
438 } else if (fsl_lpspi->config.bpw <= 16) { in fsl_lpspi_setup_transfer()
Dspi-au1550.c90 static void au1550_spi_bits_handlers_set(struct au1550_spi *hw, int bpw);
224 unsigned bpw, hz; in au1550_spi_setupxfer() local
228 bpw = t->bits_per_word; in au1550_spi_setupxfer()
231 bpw = spi->bits_per_word; in au1550_spi_setupxfer()
245 if (hw->usedma && bpw <= 8) in au1550_spi_setupxfer()
250 cfg |= PSC_SPICFG_SET_LEN(bpw); in au1550_spi_setupxfer()
648 static void au1550_spi_bits_handlers_set(struct au1550_spi *hw, int bpw) in au1550_spi_bits_handlers_set() argument
650 if (bpw <= 8) { in au1550_spi_bits_handlers_set()
660 } else if (bpw <= 16) { in au1550_spi_bits_handlers_set()
Dspi-uniphier.c320 unsigned int bpw = bytes_per_word(priv->bits_per_word); in uniphier_spi_fill_tx_fifo() local
322 fifo_threshold = DIV_ROUND_UP(priv->rx_bytes, bpw); in uniphier_spi_fill_tx_fifo()
328 DIV_ROUND_UP(priv->rx_bytes - priv->tx_bytes, bpw); in uniphier_spi_fill_tx_fifo()
354 unsigned int bpw = bytes_per_word(priv->bits_per_word); in uniphier_spi_can_dma() local
361 return DIV_ROUND_UP(t->len, bpw) > SSI_FIFO_DEPTH; in uniphier_spi_can_dma()
Dspi-efm32.c106 unsigned bpw = t->bits_per_word ?: spi->bits_per_word; in efm32_spi_setup_transfer() local
116 REG_FRAME_DATABITS(bpw), REG_FRAME); in efm32_spi_setup_transfer()
Dspi-s3c64xx.c675 u8 bpw; in s3c64xx_spi_transfer_one() local
681 bpw = xfer->bits_per_word; in s3c64xx_spi_transfer_one()
684 if (bpw != sdd->cur_bpw || speed != sdd->cur_speed) { in s3c64xx_spi_transfer_one()
685 sdd->cur_bpw = bpw; in s3c64xx_spi_transfer_one()
Dspi-ep93xx.c103 #define bits_per_word_to_dss(bpw) ((bpw) - 1) argument
Dspi-stm32.c1402 u32 bpw, fthlv; in stm32h7_spi_set_bpw() local
1405 bpw = spi->cur_bpw - 1; in stm32h7_spi_set_bpw()
1408 cfg1_setb |= (bpw << STM32H7_SPI_CFG1_DSIZE_SHIFT) & in stm32h7_spi_set_bpw()
/Linux-v5.10/drivers/gpu/drm/
Ddrm_mipi_dbi.c753 unsigned int bpw) in mipi_dbi_spi1e_transfer() argument
755 bool swap_bytes = (bpw == 16 && mipi_dbi_machine_little_endian()); in mipi_dbi_spi1e_transfer()
871 unsigned int bpw) in mipi_dbi_spi1_transfer() argument
885 return mipi_dbi_spi1e_transfer(dbi, dc, buf, len, bpw); in mipi_dbi_spi1_transfer()
904 if (bpw == 16 && mipi_dbi_machine_little_endian()) { in mipi_dbi_spi1_transfer()
935 unsigned int bpw = (*cmd == MIPI_DCS_WRITE_MEMORY_START) ? 16 : 8; in mipi_dbi_typec1_command() local
947 return mipi_dbi_spi1_transfer(dbi, 1, parameters, num, bpw); in mipi_dbi_typec1_command()
1020 unsigned int bpw = 8; in mipi_dbi_typec3_command() local
1036 bpw = 16; in mipi_dbi_typec3_command()
1041 return mipi_dbi_spi_transfer(spi, speed_hz, bpw, par, num); in mipi_dbi_typec3_command()
[all …]
/Linux-v5.10/drivers/soc/qcom/
Dqcom-geni-se.c386 void geni_se_config_packing(struct geni_se *se, int bpw, int pack_words, in geni_se_config_packing() argument
391 int temp_bpw = bpw; in geni_se_config_packing()
392 int idx_start = msb_to_lsb ? bpw - 1 : 0; in geni_se_config_packing()
395 int ceil_bpw = ALIGN(bpw, BITS_PER_BYTE); in geni_se_config_packing()
410 temp_bpw = bpw; in geni_se_config_packing()
436 if (pack_words || bpw == 32) in geni_se_config_packing()
437 writel_relaxed(bpw / 16, se->base + SE_GENI_BYTE_GRAN); in geni_se_config_packing()
/Linux-v5.10/drivers/gpu/drm/tiny/
Dili9225.c308 unsigned int bpw = 8; in ili9225_dbi_command() local
319 bpw = 16; in ili9225_dbi_command()
324 return mipi_dbi_spi_transfer(spi, speed_hz, bpw, par, num); in ili9225_dbi_command()
/Linux-v5.10/include/linux/spi/
Dspi.h1165 static inline bool spi_is_bpw_supported(struct spi_device *spi, u32 bpw) in spi_is_bpw_supported() argument
1169 if (bpw == 8 || (bpw <= 32 && bpw_mask & SPI_BPW_MASK(bpw))) in spi_is_bpw_supported()
/Linux-v5.10/include/drm/
Ddrm_mipi_dbi.h163 u8 bpw, const void *buf, size_t len);
/Linux-v5.10/include/linux/
Dqcom-geni-se.h434 void geni_se_config_packing(struct geni_se *se, int bpw, int pack_words,