bpw 772 drivers/gpu/drm/drm_mipi_dbi.c unsigned int bpw) bpw 774 drivers/gpu/drm/drm_mipi_dbi.c bool swap_bytes = (bpw == 16 && mipi_dbi_machine_little_endian()); bpw 890 drivers/gpu/drm/drm_mipi_dbi.c unsigned int bpw) bpw 904 drivers/gpu/drm/drm_mipi_dbi.c return mipi_dbi_spi1e_transfer(dbi, dc, buf, len, bpw); bpw 923 drivers/gpu/drm/drm_mipi_dbi.c if (bpw == 16 && mipi_dbi_machine_little_endian()) { bpw 954 drivers/gpu/drm/drm_mipi_dbi.c unsigned int bpw = (*cmd == MIPI_DCS_WRITE_MEMORY_START) ? 16 : 8; bpw 966 drivers/gpu/drm/drm_mipi_dbi.c return mipi_dbi_spi1_transfer(dbi, 1, parameters, num, bpw); bpw 1039 drivers/gpu/drm/drm_mipi_dbi.c unsigned int bpw = 8; bpw 1055 drivers/gpu/drm/drm_mipi_dbi.c bpw = 16; bpw 1060 drivers/gpu/drm/drm_mipi_dbi.c return mipi_dbi_spi_transfer(spi, speed_hz, bpw, par, num); bpw 1148 drivers/gpu/drm/drm_mipi_dbi.c u8 bpw, const void *buf, size_t len) bpw 1152 drivers/gpu/drm/drm_mipi_dbi.c .bits_per_word = bpw, bpw 322 drivers/gpu/drm/tiny/ili9225.c unsigned int bpw = 8; bpw 333 drivers/gpu/drm/tiny/ili9225.c bpw = 16; bpw 338 drivers/gpu/drm/tiny/ili9225.c return mipi_dbi_spi_transfer(spi, speed_hz, bpw, par, num); bpw 379 drivers/soc/qcom/qcom-geni-se.c void geni_se_config_packing(struct geni_se *se, int bpw, int pack_words, bpw 384 drivers/soc/qcom/qcom-geni-se.c int temp_bpw = bpw; bpw 385 drivers/soc/qcom/qcom-geni-se.c int idx_start = msb_to_lsb ? bpw - 1 : 0; bpw 388 drivers/soc/qcom/qcom-geni-se.c int ceil_bpw = ALIGN(bpw, BITS_PER_BYTE); bpw 403 drivers/soc/qcom/qcom-geni-se.c temp_bpw = bpw; bpw 429 drivers/soc/qcom/qcom-geni-se.c if (pack_words || bpw == 32) bpw 430 drivers/soc/qcom/qcom-geni-se.c writel_relaxed(bpw / 16, se->base + SE_GENI_BYTE_GRAN); bpw 90 drivers/spi/spi-au1550.c static void au1550_spi_bits_handlers_set(struct au1550_spi *hw, int bpw); bpw 224 drivers/spi/spi-au1550.c unsigned bpw, hz; bpw 228 drivers/spi/spi-au1550.c bpw = t->bits_per_word; bpw 231 drivers/spi/spi-au1550.c bpw = spi->bits_per_word; bpw 245 drivers/spi/spi-au1550.c if (hw->usedma && bpw <= 8) bpw 250 drivers/spi/spi-au1550.c cfg |= PSC_SPICFG_SET_LEN(bpw); bpw 648 drivers/spi/spi-au1550.c static void au1550_spi_bits_handlers_set(struct au1550_spi *hw, int bpw) bpw 650 drivers/spi/spi-au1550.c if (bpw <= 8) { bpw 660 drivers/spi/spi-au1550.c } else if (bpw <= 16) { bpw 31 drivers/spi/spi-clps711x.c unsigned int bpw; bpw 57 drivers/spi/spi-clps711x.c hw->bpw = xfer->bits_per_word; bpw 63 drivers/spi/spi-clps711x.c writel(data | SYNCIO_FRMLEN(hw->bpw) | SYNCIO_TXFRMEN, hw->syncio); bpw 82 drivers/spi/spi-clps711x.c writel(data | SYNCIO_FRMLEN(hw->bpw) | SYNCIO_TXFRMEN, bpw 91 drivers/spi/spi-dln2.c u8 bpw; bpw 302 drivers/spi/spi-dln2.c static int dln2_spi_set_bpw(struct dln2_spi *dln2, u8 bpw) bpw 306 drivers/spi/spi-dln2.c u8 bpw; bpw 310 drivers/spi/spi-dln2.c tx.bpw = bpw; bpw 355 drivers/spi/spi-dln2.c static int dln2_spi_copy_to_buf(u8 *dln2_buf, const u8 *src, u16 len, u8 bpw) bpw 360 drivers/spi/spi-dln2.c if (bpw <= 8) { bpw 362 drivers/spi/spi-dln2.c } else if (bpw <= 16) { bpw 388 drivers/spi/spi-dln2.c static int dln2_spi_copy_from_buf(u8 *dest, const u8 *dln2_buf, u16 len, u8 bpw) bpw 393 drivers/spi/spi-dln2.c if (bpw <= 8) { bpw 395 drivers/spi/spi-dln2.c } else if (bpw <= 16) { bpw 438 drivers/spi/spi-dln2.c dln2_spi_copy_to_buf(tx->buf, data, data_len, dln2->bpw); bpw 480 drivers/spi/spi-dln2.c dln2_spi_copy_from_buf(data, rx->buf, data_len, dln2->bpw); bpw 522 drivers/spi/spi-dln2.c dln2_spi_copy_to_buf(tx->buf, tx_data, data_len, dln2->bpw); bpw 536 drivers/spi/spi-dln2.c dln2_spi_copy_from_buf(rx_data, rx->buf, data_len, dln2->bpw); bpw 609 drivers/spi/spi-dln2.c u8 bpw, u8 mode) bpw 615 drivers/spi/spi-dln2.c dln2->bpw != bpw; bpw 640 drivers/spi/spi-dln2.c if (dln2->bpw != bpw) { bpw 641 drivers/spi/spi-dln2.c ret = dln2_spi_set_bpw(dln2, bpw); bpw 645 drivers/spi/spi-dln2.c dln2->bpw = bpw; bpw 817 drivers/spi/spi-dln2.c dln2->bpw = 0; bpw 118 drivers/spi/spi-efm32.c unsigned bpw = t->bits_per_word ?: spi->bits_per_word; bpw 128 drivers/spi/spi-efm32.c REG_FRAME_DATABITS(bpw), REG_FRAME); bpw 102 drivers/spi/spi-ep93xx.c #define bits_per_word_to_dss(bpw) ((bpw) - 1) bpw 92 drivers/spi/spi-fsl-lpspi.c u8 bpw; bpw 175 drivers/spi/spi-fsl-lpspi.c static int fsl_lpspi_bytes_per_word(const int bpw) bpw 177 drivers/spi/spi-fsl-lpspi.c return DIV_ROUND_UP(bpw, BITS_PER_BYTE); bpw 280 drivers/spi/spi-fsl-lpspi.c temp |= fsl_lpspi->config.bpw - 1; bpw 362 drivers/spi/spi-fsl-lpspi.c switch (fsl_lpspi_bytes_per_word(fsl_lpspi->config.bpw)) { bpw 445 drivers/spi/spi-fsl-lpspi.c fsl_lpspi->config.bpw = t->bits_per_word; bpw 451 drivers/spi/spi-fsl-lpspi.c if (!fsl_lpspi->config.bpw) bpw 452 drivers/spi/spi-fsl-lpspi.c fsl_lpspi->config.bpw = spi->bits_per_word; bpw 455 drivers/spi/spi-fsl-lpspi.c if (fsl_lpspi->config.bpw <= 8) { bpw 458 drivers/spi/spi-fsl-lpspi.c } else if (fsl_lpspi->config.bpw <= 16) { bpw 644 drivers/spi/spi-s3c64xx.c u8 bpw; bpw 650 drivers/spi/spi-s3c64xx.c bpw = xfer->bits_per_word; bpw 653 drivers/spi/spi-s3c64xx.c if (bpw != sdd->cur_bpw || speed != sdd->cur_speed) { bpw 654 drivers/spi/spi-s3c64xx.c sdd->cur_bpw = bpw; bpw 1389 drivers/spi/spi-stm32.c u32 bpw, fthlv; bpw 1392 drivers/spi/spi-stm32.c bpw = spi->cur_bpw - 1; bpw 1395 drivers/spi/spi-stm32.c cfg1_setb |= (bpw << STM32H7_SPI_CFG1_DSIZE_SHIFT) & bpw 125 drivers/spi/spi-synquacer.c unsigned int bpw; bpw 149 drivers/spi/spi-synquacer.c switch (sspi->bpw) { bpw 193 drivers/spi/spi-synquacer.c switch (sspi->bpw) { bpw 233 drivers/spi/spi-synquacer.c unsigned int speed, mode, bpw, cs, bus_width, transfer_mode; bpw 255 drivers/spi/spi-synquacer.c bpw = xfer->bits_per_word; bpw 259 drivers/spi/spi-synquacer.c bus_width == sspi->bus_width && bpw == sspi->bpw && bpw 277 drivers/spi/spi-synquacer.c if (bpw == 8 && (mode & (SPI_TX_DUAL | SPI_RX_DUAL)) && div < 3) bpw 279 drivers/spi/spi-synquacer.c if (bpw == 8 && (mode & (SPI_TX_QUAD | SPI_RX_QUAD)) && div < 6) bpw 281 drivers/spi/spi-synquacer.c if (bpw == 16 && (mode & (SPI_TX_QUAD | SPI_RX_QUAD)) && div < 3) bpw 326 drivers/spi/spi-synquacer.c val |= ((bpw / 8 - 1) << SYNQUACER_HSSPI_FIFOCFG_FIFO_WIDTH_SHIFT); bpw 344 drivers/spi/spi-synquacer.c sspi->bpw = bpw; bpw 361 drivers/spi/spi-synquacer.c u8 bpw; bpw 377 drivers/spi/spi-synquacer.c bpw = xfer->bits_per_word; bpw 378 drivers/spi/spi-synquacer.c if (bpw == 8 && !(xfer->len % 4) && !(spi->mode & SPI_LSB_FIRST)) bpw 384 drivers/spi/spi-synquacer.c xfer->bits_per_word = bpw; bpw 394 drivers/spi/spi-synquacer.c switch (sspi->bpw) { bpw 407 drivers/spi/spi-synquacer.c dev_err(sspi->dev, "unsupported bpw: %d\n", sspi->bpw); bpw 540 drivers/spi/spi-topcliff-pch.c static void pch_spi_set_tx(struct pch_spi_data *data, int *bpw) bpw 561 drivers/spi/spi-topcliff-pch.c *bpw = data->cur_trans->bits_per_word; bpw 563 drivers/spi/spi-topcliff-pch.c *bpw = data->current_msg->spi->bits_per_word; bpw 570 drivers/spi/spi-topcliff-pch.c data->bpw_len = data->cur_trans->len / (*bpw / 8); bpw 599 drivers/spi/spi-topcliff-pch.c if (*bpw == 8) { bpw 716 drivers/spi/spi-topcliff-pch.c static void pch_spi_copy_rx_data(struct pch_spi_data *data, int bpw) bpw 726 drivers/spi/spi-topcliff-pch.c if (bpw == 8) { bpw 737 drivers/spi/spi-topcliff-pch.c static void pch_spi_copy_rx_data_for_dma(struct pch_spi_data *data, int bpw) bpw 749 drivers/spi/spi-topcliff-pch.c if (bpw == 8) { bpw 841 drivers/spi/spi-topcliff-pch.c static void pch_spi_request_dma(struct pch_spi_data *data, int bpw) bpw 850 drivers/spi/spi-topcliff-pch.c if (bpw == 8) bpw 911 drivers/spi/spi-topcliff-pch.c static void pch_spi_handle_dma(struct pch_spi_data *data, int *bpw) bpw 947 drivers/spi/spi-topcliff-pch.c *bpw = data->cur_trans->bits_per_word; bpw 949 drivers/spi/spi-topcliff-pch.c *bpw = data->current_msg->spi->bits_per_word; bpw 951 drivers/spi/spi-topcliff-pch.c data->bpw_len = data->cur_trans->len / (*bpw / 8); bpw 960 drivers/spi/spi-topcliff-pch.c if (*bpw == 8) { bpw 1011 drivers/spi/spi-topcliff-pch.c sg->offset = sg->offset * (*bpw / 8); bpw 1017 drivers/spi/spi-topcliff-pch.c sg->offset = sg->offset * (*bpw / 8); bpw 1023 drivers/spi/spi-topcliff-pch.c sg->offset = sg->offset * (*bpw / 8); bpw 1079 drivers/spi/spi-topcliff-pch.c sg->offset = sg->offset * (*bpw / 8); bpw 1085 drivers/spi/spi-topcliff-pch.c sg->offset = sg->offset * (*bpw / 8); bpw 1123 drivers/spi/spi-topcliff-pch.c int bpw; bpw 1201 drivers/spi/spi-topcliff-pch.c pch_spi_handle_dma(data, &bpw); bpw 1212 drivers/spi/spi-topcliff-pch.c pch_spi_copy_rx_data_for_dma(data, bpw); bpw 1216 drivers/spi/spi-topcliff-pch.c pch_spi_set_tx(data, &bpw); bpw 1218 drivers/spi/spi-topcliff-pch.c pch_spi_copy_rx_data(data, bpw); bpw 308 drivers/spi/spi-uniphier.c unsigned int bpw = bytes_per_word(priv->bits_per_word); bpw 310 drivers/spi/spi-uniphier.c fifo_threshold = DIV_ROUND_UP(priv->rx_bytes, bpw); bpw 316 drivers/spi/spi-uniphier.c DIV_ROUND_UP(priv->rx_bytes - priv->tx_bytes, bpw); bpw 157 include/drm/drm_mipi_dbi.h u8 bpw, const void *buf, size_t len); bpw 397 include/linux/qcom-geni-se.h void geni_se_config_packing(struct geni_se *se, int bpw, int pack_words, bpw 1027 include/linux/spi/spi.h static inline bool spi_is_bpw_supported(struct spi_device *spi, u32 bpw) bpw 1031 include/linux/spi/spi.h if (bpw == 8 || (bpw <= 32 && bpw_mask & SPI_BPW_MASK(bpw)))