| /drivers/spi/ |
| A D | spi-dln2.c | 92 u8 bpw; member 307 u8 bpw; in dln2_spi_set_bpw() member 311 tx.bpw = bpw; in dln2_spi_set_bpw() 361 if (bpw <= 8) { in dln2_spi_copy_to_buf() 363 } else if (bpw <= 16) { in dln2_spi_copy_to_buf() 394 if (bpw <= 8) { in dln2_spi_copy_from_buf() 611 u8 bpw, u8 mode) in dln2_spi_transfer_setup() argument 617 dln2->bpw != bpw; in dln2_spi_transfer_setup() 642 if (dln2->bpw != bpw) { in dln2_spi_transfer_setup() 647 dln2->bpw = bpw; in dln2_spi_transfer_setup() [all …]
|
| A D | spi-synquacer.c | 125 unsigned int bpw; member 149 switch (sspi->bpw) { in read_fifo() 193 switch (sspi->bpw) { in write_fifo() 255 bpw = xfer->bits_per_word; in synquacer_spi_config() 259 bus_width == sspi->bus_width && bpw == sspi->bpw && in synquacer_spi_config() 344 sspi->bpw = bpw; in synquacer_spi_config() 361 u8 bpw; in synquacer_spi_transfer_one() local 377 bpw = xfer->bits_per_word; in synquacer_spi_transfer_one() 384 xfer->bits_per_word = bpw; in synquacer_spi_transfer_one() 394 switch (sspi->bpw) { in synquacer_spi_transfer_one() [all …]
|
| A D | spi-ar934x.c | 86 u8 bpw, term = 0; in ar934x_spi_transfer_one_message() local 95 bpw = t->bits_per_word >> 3; in ar934x_spi_transfer_one_message() 97 bpw = 4; in ar934x_spi_transfer_one_message() 114 for (trx_done = 0; trx_done < t->len; trx_done += bpw) { in ar934x_spi_transfer_one_message() 116 if (trx_cur > bpw) in ar934x_spi_transfer_one_message() 117 trx_cur = bpw; in ar934x_spi_transfer_one_message()
|
| A D | spi-topcliff-pch.c | 537 *bpw = data->cur_trans->bits_per_word; in pch_spi_set_tx() 577 if (*bpw == 8) { in pch_spi_set_tx() 704 if (bpw == 8) { in pch_spi_copy_rx_data() 727 if (bpw == 8) { in pch_spi_copy_rx_data_for_dma() 828 if (bpw == 8) in pch_spi_request_dma() 931 *bpw = data->cur_trans->bits_per_word; in pch_spi_handle_dma() 944 if (*bpw == 8) { in pch_spi_handle_dma() 1107 int bpw; in pch_spi_process_messages() local 1186 pch_spi_handle_dma(data, &bpw); in pch_spi_process_messages() 1201 pch_spi_set_tx(data, &bpw); in pch_spi_process_messages() [all …]
|
| A 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()
|
| A D | spi-fsl-lpspi.c | 90 u8 bpw; member 188 static int fsl_lpspi_bytes_per_word(const int bpw) in fsl_lpspi_bytes_per_word() argument 190 return DIV_ROUND_UP(bpw, BITS_PER_BYTE); in fsl_lpspi_bytes_per_word() 277 temp |= fsl_lpspi->config.bpw - 1; in fsl_lpspi_set_cmd() 371 switch (fsl_lpspi_bytes_per_word(fsl_lpspi->config.bpw)) { in fsl_lpspi_dma_configure() 454 fsl_lpspi->config.bpw = t->bits_per_word; in fsl_lpspi_setup_transfer() 463 if (!fsl_lpspi->config.bpw) in fsl_lpspi_setup_transfer() 464 fsl_lpspi->config.bpw = spi->bits_per_word; in fsl_lpspi_setup_transfer() 467 if (fsl_lpspi->config.bpw <= 8) { in fsl_lpspi_setup_transfer() 470 } else if (fsl_lpspi->config.bpw <= 16) { in fsl_lpspi_setup_transfer()
|
| A 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() 640 static void au1550_spi_bits_handlers_set(struct au1550_spi *hw, int bpw) in au1550_spi_bits_handlers_set() argument 642 if (bpw <= 8) { in au1550_spi_bits_handlers_set() 652 } else if (bpw <= 16) { in au1550_spi_bits_handlers_set()
|
| A 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()
|
| A D | spi-stm32.c | 595 u32 packet, bpw; in stm32h7_spi_prepare_fthlv() local 601 bpw = DIV_ROUND_UP(spi->cur_bpw, 8); in stm32h7_spi_prepare_fthlv() 602 return DIV_ROUND_UP(packet, bpw); in stm32h7_spi_prepare_fthlv() 1725 u32 bpw; in stm32f7_spi_set_bpw() local 1728 bpw = spi->cur_bpw - 1; in stm32f7_spi_set_bpw() 1731 cr2_setb |= FIELD_PREP(STM32F7_SPI_CR2_DS, bpw); in stm32f7_spi_set_bpw() 1750 u32 bpw, fthlv; in stm32h7_spi_set_bpw() local 1753 bpw = spi->cur_bpw - 1; in stm32h7_spi_set_bpw() 1756 cfg1_setb |= FIELD_PREP(STM32H7_SPI_CFG1_DSIZE, bpw); in stm32h7_spi_set_bpw()
|
| A D | spi-s3c64xx.c | 811 u8 bpw; in s3c64xx_spi_transfer_one() local 819 bpw = xfer->bits_per_word; in s3c64xx_spi_transfer_one() 822 if (bpw != sdd->cur_bpw || speed != sdd->cur_speed) { in s3c64xx_spi_transfer_one() 823 sdd->cur_bpw = bpw; in s3c64xx_spi_transfer_one()
|
| A D | spi-ep93xx.c | 99 #define bits_per_word_to_dss(bpw) ((bpw) - 1) argument
|
| /drivers/gpu/drm/ |
| A D | drm_mipi_dbi.c | 879 unsigned int bpw) in mipi_dbi_spi1e_transfer() argument 881 bool swap_bytes = (bpw == 16); in mipi_dbi_spi1e_transfer() 997 unsigned int bpw) in mipi_dbi_spi1_transfer() argument 1011 return mipi_dbi_spi1e_transfer(dbi, dc, buf, len, bpw); in mipi_dbi_spi1_transfer() 1030 if (bpw == 16) { in mipi_dbi_spi1_transfer() 1114 unsigned int bpw = 8; in mipi_dbi_typec1_command() local 1127 bpw = dbi->write_memory_bpw; in mipi_dbi_typec1_command() 1205 unsigned int bpw = 8; in mipi_dbi_typec3_command() local 1223 bpw = dbi->write_memory_bpw; in mipi_dbi_typec3_command() 1335 u8 bpw, const void *buf, size_t len) in mipi_dbi_spi_transfer() argument [all …]
|
| /drivers/soc/qcom/ |
| A D | qcom-geni-se.c | 430 void geni_se_config_packing(struct geni_se *se, int bpw, int pack_words, in geni_se_config_packing() argument 435 int temp_bpw = bpw; in geni_se_config_packing() 436 int idx_start = msb_to_lsb ? bpw - 1 : 0; in geni_se_config_packing() 439 int ceil_bpw = ALIGN(bpw, BITS_PER_BYTE); in geni_se_config_packing() 454 temp_bpw = bpw; in geni_se_config_packing() 480 if (pack_words || bpw == 32) in geni_se_config_packing() 481 writel_relaxed(bpw / 16, se->base + SE_GENI_BYTE_GRAN); in geni_se_config_packing()
|
| /drivers/gpu/drm/tiny/ |
| A D | ili9486.c | 47 unsigned int bpw = 8; in waveshare_command() local 83 bpw = 16; in waveshare_command() 88 ret = mipi_dbi_spi_transfer(spi, speed_hz, bpw, data, num); in waveshare_command()
|
| A D | ili9225.c | 318 unsigned int bpw = 8; in ili9225_dbi_command() local 331 bpw = 16; in ili9225_dbi_command() 336 ret = mipi_dbi_spi_transfer(spi, speed_hz, bpw, par, num); in ili9225_dbi_command()
|
| /drivers/crypto/stm32/ |
| A D | stm32-cryp.c | 487 int bpw = sizeof(u32); in ux500_swizzle_key() local 491 j = len - bpw; in ux500_swizzle_key() 493 for (i = 0; i < bpw; i++) { in ux500_swizzle_key() 494 index = len - j - bpw + i; in ux500_swizzle_key() 498 j -= bpw; in ux500_swizzle_key()
|