/linux-5.19.10/drivers/spi/ |
D | spi-dln2.c | 92 u8 bpw; member 303 static int dln2_spi_set_bpw(struct dln2_spi *dln2, u8 bpw) in dln2_spi_set_bpw() argument 307 u8 bpw; in dln2_spi_set_bpw() member 311 tx.bpw = bpw; in dln2_spi_set_bpw() 356 static int dln2_spi_copy_to_buf(u8 *dln2_buf, const u8 *src, u16 len, u8 bpw) in dln2_spi_copy_to_buf() argument 361 if (bpw <= 8) { in dln2_spi_copy_to_buf() 363 } else if (bpw <= 16) { in dln2_spi_copy_to_buf() 389 static int dln2_spi_copy_from_buf(u8 *dest, const u8 *dln2_buf, u16 len, u8 bpw) in dln2_spi_copy_from_buf() argument 394 if (bpw <= 8) { in dln2_spi_copy_from_buf() 396 } else if (bpw <= 16) { in dln2_spi_copy_from_buf() [all …]
|
D | spi-synquacer.c | 125 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 …]
|
D | spi-ar934x.c | 85 u8 bpw, term = 0; in ar934x_spi_transfer_one_message() local 94 bpw = t->bits_per_word >> 3; in ar934x_spi_transfer_one_message() 96 bpw = 4; in ar934x_spi_transfer_one_message() 113 for (trx_done = 0; trx_done < t->len; trx_done += bpw) { in ar934x_spi_transfer_one_message() 115 if (trx_cur > bpw) in ar934x_spi_transfer_one_message() 116 trx_cur = bpw; in ar934x_spi_transfer_one_message()
|
D | spi-topcliff-pch.c | 545 static void pch_spi_set_tx(struct pch_spi_data *data, int *bpw) in pch_spi_set_tx() argument 566 *bpw = data->cur_trans->bits_per_word; in pch_spi_set_tx() 568 *bpw = data->current_msg->spi->bits_per_word; in pch_spi_set_tx() 575 data->bpw_len = data->cur_trans->len / (*bpw / 8); in pch_spi_set_tx() 606 if (*bpw == 8) { in pch_spi_set_tx() 723 static void pch_spi_copy_rx_data(struct pch_spi_data *data, int bpw) in pch_spi_copy_rx_data() argument 733 if (bpw == 8) { in pch_spi_copy_rx_data() 744 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 756 if (bpw == 8) { in pch_spi_copy_rx_data_for_dma() 848 static void pch_spi_request_dma(struct pch_spi_data *data, int bpw) in pch_spi_request_dma() argument [all …]
|
D | spi-clps711x.c | 32 unsigned int bpw; member 58 hw->bpw = xfer->bits_per_word; in spi_clps711x_transfer_one() 64 writel(data | SYNCIO_FRMLEN(hw->bpw) | SYNCIO_TXFRMEN, hw->syncio); in spi_clps711x_transfer_one() 83 writel(data | SYNCIO_FRMLEN(hw->bpw) | SYNCIO_TXFRMEN, in spi_clps711x_isr()
|
D | spi-fsl-lpspi.c | 87 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()
|
D | spi-au1550.c | 89 static void au1550_spi_bits_handlers_set(struct au1550_spi *hw, int bpw); 223 unsigned int bpw, hz; in au1550_spi_setupxfer() local 227 bpw = t->bits_per_word; in au1550_spi_setupxfer() 230 bpw = spi->bits_per_word; in au1550_spi_setupxfer() 244 if (hw->usedma && bpw <= 8) in au1550_spi_setupxfer() 249 cfg |= PSC_SPICFG_SET_LEN(bpw); in au1550_spi_setupxfer() 649 static void au1550_spi_bits_handlers_set(struct au1550_spi *hw, int bpw) in au1550_spi_bits_handlers_set() argument 651 if (bpw <= 8) { in au1550_spi_bits_handlers_set() 661 } else if (bpw <= 16) { in au1550_spi_bits_handlers_set()
|
D | spi-uniphier.c | 320 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()
|
D | spi-stm32.c | 467 u32 packet, bpw; in stm32h7_spi_prepare_fthlv() local 473 bpw = DIV_ROUND_UP(spi->cur_bpw, 8); in stm32h7_spi_prepare_fthlv() 474 return DIV_ROUND_UP(packet, bpw); in stm32h7_spi_prepare_fthlv() 1336 u32 bpw, fthlv; in stm32h7_spi_set_bpw() local 1339 bpw = spi->cur_bpw - 1; in stm32h7_spi_set_bpw() 1342 cfg1_setb |= FIELD_PREP(STM32H7_SPI_CFG1_DSIZE, bpw); in stm32h7_spi_set_bpw()
|
D | spi-s3c64xx.c | 678 u8 bpw; in s3c64xx_spi_transfer_one() local 684 bpw = xfer->bits_per_word; in s3c64xx_spi_transfer_one() 687 if (bpw != sdd->cur_bpw || speed != sdd->cur_speed) { in s3c64xx_spi_transfer_one() 688 sdd->cur_bpw = bpw; in s3c64xx_spi_transfer_one()
|
D | spi-ep93xx.c | 103 #define bits_per_word_to_dss(bpw) ((bpw) - 1) argument
|
/linux-5.19.10/drivers/gpu/drm/ |
D | drm_mipi_dbi.c | 762 unsigned int bpw) in mipi_dbi_spi1e_transfer() argument 764 bool swap_bytes = (bpw == 16 && mipi_dbi_machine_little_endian()); in mipi_dbi_spi1e_transfer() 880 unsigned int bpw) in mipi_dbi_spi1_transfer() argument 894 return mipi_dbi_spi1e_transfer(dbi, dc, buf, len, bpw); in mipi_dbi_spi1_transfer() 913 if (bpw == 16 && mipi_dbi_machine_little_endian()) { in mipi_dbi_spi1_transfer() 997 unsigned int bpw = (*cmd == MIPI_DCS_WRITE_MEMORY_START) ? 16 : 8; in mipi_dbi_typec1_command() local 1009 return mipi_dbi_spi1_transfer(dbi, 1, parameters, num, bpw); in mipi_dbi_typec1_command() 1082 unsigned int bpw = 8; in mipi_dbi_typec3_command() local 1098 bpw = 16; in mipi_dbi_typec3_command() 1103 return mipi_dbi_spi_transfer(spi, speed_hz, bpw, par, num); in mipi_dbi_typec3_command() [all …]
|
/linux-5.19.10/drivers/soc/qcom/ |
D | qcom-geni-se.c | 436 void geni_se_config_packing(struct geni_se *se, int bpw, int pack_words, in geni_se_config_packing() argument 441 int temp_bpw = bpw; in geni_se_config_packing() 442 int idx_start = msb_to_lsb ? bpw - 1 : 0; in geni_se_config_packing() 445 int ceil_bpw = ALIGN(bpw, BITS_PER_BYTE); in geni_se_config_packing() 460 temp_bpw = bpw; in geni_se_config_packing() 486 if (pack_words || bpw == 32) in geni_se_config_packing() 487 writel_relaxed(bpw / 16, se->base + SE_GENI_BYTE_GRAN); in geni_se_config_packing()
|
/linux-5.19.10/drivers/gpu/drm/tiny/ |
D | ili9225.c | 308 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-5.19.10/include/linux/spi/ |
D | spi.h | 1144 static inline bool spi_is_bpw_supported(struct spi_device *spi, u32 bpw) in spi_is_bpw_supported() argument 1148 if (bpw == 8 || (bpw <= 32 && bpw_mask & SPI_BPW_MASK(bpw))) in spi_is_bpw_supported()
|
/linux-5.19.10/include/drm/ |
D | drm_mipi_dbi.h | 171 u8 bpw, const void *buf, size_t len);
|
/linux-5.19.10/include/linux/ |
D | qcom-geni-se.h | 447 void geni_se_config_packing(struct geni_se *se, int bpw, int pack_words,
|