Searched refs:bpw (Results 1 - 19 of 19) sorted by relevance

/linux-master/drivers/spi/
H A Dspi-clps711x.c32 unsigned int bpw; member in struct:spi_clps711x_data
58 hw->bpw = xfer->bits_per_word;
64 writel(data | SYNCIO_FRMLEN(hw->bpw) | SYNCIO_TXFRMEN, hw->syncio);
83 writel(data | SYNCIO_FRMLEN(hw->bpw) | SYNCIO_TXFRMEN,
H A Dspi-dln2.c92 u8 bpw; member in struct:dln2_spi
303 static int dln2_spi_set_bpw(struct dln2_spi *dln2, u8 bpw) argument
307 u8 bpw; member in struct:__anon2206
311 tx.bpw = bpw;
356 static int dln2_spi_copy_to_buf(u8 *dln2_buf, const u8 *src, u16 len, u8 bpw) argument
361 if (bpw <= 8) {
363 } else if (bpw <= 16) {
389 static int dln2_spi_copy_from_buf(u8 *dest, const u8 *dln2_buf, u16 len, u8 bpw) argument
394 if (bpw <
610 dln2_spi_transfer_setup(struct dln2_spi *dln2, u32 speed, u8 bpw, u8 mode) argument
[all...]
H A Dspi-ar934x.c86 u8 bpw, term = 0; local
95 bpw = t->bits_per_word >> 3;
97 bpw = 4;
114 for (trx_done = 0; trx_done < t->len; trx_done += bpw) {
116 if (trx_cur > bpw)
117 trx_cur = bpw;
H A Dspi-synquacer.c125 unsigned int bpw; member in struct:synquacer_spi
149 switch (sspi->bpw) {
193 switch (sspi->bpw) {
233 unsigned int speed, mode, bpw, cs, bus_width, transfer_mode; local
255 bpw = xfer->bits_per_word;
259 bus_width == sspi->bus_width && bpw == sspi->bpw &&
277 if (bpw == 8 && (mode & (SPI_TX_DUAL | SPI_RX_DUAL)) && div < 3)
279 if (bpw == 8 && (mode & (SPI_TX_QUAD | SPI_RX_QUAD)) && div < 6)
281 if (bpw
361 u8 bpw; local
[all...]
H A Dspi-topcliff-pch.c516 static void pch_spi_set_tx(struct pch_spi_data *data, int *bpw) argument
537 *bpw = data->cur_trans->bits_per_word;
539 *bpw = data->current_msg->spi->bits_per_word;
546 data->bpw_len = data->cur_trans->len / (*bpw / 8);
577 if (*bpw == 8) {
638 * bpw;sfer requests in the current message or there are
694 static void pch_spi_copy_rx_data(struct pch_spi_data *data, int bpw) argument
704 if (bpw == 8) {
715 static void pch_spi_copy_rx_data_for_dma(struct pch_spi_data *data, int bpw) argument
727 if (bpw
819 pch_spi_request_dma(struct pch_spi_data *data, int bpw) argument
895 pch_spi_handle_dma(struct pch_spi_data *data, int *bpw) argument
1107 int bpw; local
[all...]
H A Dspi-fsl-lpspi.c86 u8 bpw; member in struct:lpspi_config
168 static int fsl_lpspi_bytes_per_word(const int bpw) argument
170 return DIV_ROUND_UP(bpw, BITS_PER_BYTE);
258 temp |= fsl_lpspi->config.bpw - 1;
344 switch (fsl_lpspi_bytes_per_word(fsl_lpspi->config.bpw)) {
427 fsl_lpspi->config.bpw = t->bits_per_word;
436 if (!fsl_lpspi->config.bpw)
437 fsl_lpspi->config.bpw = spi->bits_per_word;
440 if (fsl_lpspi->config.bpw <= 8) {
443 } else if (fsl_lpspi->config.bpw <
[all...]
H A Dspi-au1550.c89 static void au1550_spi_bits_handlers_set(struct au1550_spi *hw, int bpw);
223 unsigned int bpw, hz; local
227 bpw = t->bits_per_word;
230 bpw = spi->bits_per_word;
244 if (hw->usedma && bpw <= 8)
249 cfg |= PSC_SPICFG_SET_LEN(bpw);
649 static void au1550_spi_bits_handlers_set(struct au1550_spi *hw, int bpw) argument
651 if (bpw <= 8) {
661 } else if (bpw <= 16) {
H A Dspi-stm32.c575 u32 packet, bpw; local
581 bpw = DIV_ROUND_UP(spi->cur_bpw, 8);
582 return DIV_ROUND_UP(packet, bpw);
1545 u32 bpw; local
1548 bpw = spi->cur_bpw - 1;
1551 cr2_setb |= FIELD_PREP(STM32F7_SPI_CR2_DS, bpw);
1570 u32 bpw, fthlv; local
1573 bpw = spi->cur_bpw - 1;
1576 cfg1_setb |= FIELD_PREP(STM32H7_SPI_CFG1_DSIZE, bpw);
H A Dspi-uniphier.c320 unsigned int bpw = bytes_per_word(priv->bits_per_word); local
322 fifo_threshold = DIV_ROUND_UP(priv->rx_bytes, bpw);
328 DIV_ROUND_UP(priv->rx_bytes - priv->tx_bytes, bpw);
354 unsigned int bpw = bytes_per_word(priv->bits_per_word); local
361 return DIV_ROUND_UP(t->len, bpw) > SSI_FIFO_DEPTH;
H A Dspi-ep93xx.c103 #define bits_per_word_to_dss(bpw) ((bpw) - 1)
H A Dspi-s3c64xx.c809 u8 bpw; local
817 bpw = xfer->bits_per_word;
820 if (bpw != sdd->cur_bpw || speed != sdd->cur_speed) {
821 sdd->cur_bpw = bpw;
/linux-master/drivers/gpu/drm/tiny/
H A Dili9486.c46 unsigned int bpw = 8; local
82 bpw = 16;
87 ret = mipi_dbi_spi_transfer(spi, speed_hz, bpw, data, num);
H A Dili9225.c317 unsigned int bpw = 8; local
330 bpw = 16;
335 ret = mipi_dbi_spi_transfer(spi, speed_hz, bpw, par, num);
/linux-master/drivers/gpu/drm/
H A Ddrm_mipi_dbi.c856 unsigned int bpw)
858 bool swap_bytes = (bpw == 16 && mipi_dbi_machine_little_endian());
974 unsigned int bpw)
988 return mipi_dbi_spi1e_transfer(dbi, dc, buf, len, bpw);
1007 if (bpw == 16 && mipi_dbi_machine_little_endian()) {
1067 "reading on host not supporting 9 bpw not yet implemented\n");
1091 unsigned int bpw = (*cmd == MIPI_DCS_WRITE_MEMORY_START) ? 16 : 8; local
1103 return mipi_dbi_spi1_transfer(dbi, 1, parameters, num, bpw);
1179 unsigned int bpw = 8; local
1197 bpw
854 mipi_dbi_spi1e_transfer(struct mipi_dbi *dbi, int dc, const void *buf, size_t len, unsigned int bpw) argument
972 mipi_dbi_spi1_transfer(struct mipi_dbi *dbi, int dc, const void *buf, size_t len, unsigned int bpw) argument
1293 mipi_dbi_spi_transfer(struct spi_device *spi, u32 speed_hz, u8 bpw, const void *buf, size_t len) argument
[all...]
/linux-master/drivers/soc/qcom/
H A Dqcom-geni-se.c421 * @bpw: Bits of data per transfer word.
430 void geni_se_config_packing(struct geni_se *se, int bpw, int pack_words, argument
435 int temp_bpw = bpw;
436 int idx_start = msb_to_lsb ? bpw - 1 : 0;
439 int ceil_bpw = ALIGN(bpw, BITS_PER_BYTE);
454 temp_bpw = bpw;
480 if (pack_words || bpw == 32)
481 writel_relaxed(bpw / 16, se->base + SE_GENI_BYTE_GRAN);
/linux-master/include/drm/
H A Ddrm_mipi_dbi.h189 u8 bpw, const void *buf, size_t len);
/linux-master/include/linux/spi/
H A Dspi.h1308 * @bpw: Bits per word
1310 * This function checks to see if the SPI controller supports @bpw.
1313 * True if @bpw is supported, false otherwise.
1315 static inline bool spi_is_bpw_supported(struct spi_device *spi, u32 bpw) argument
1319 if (bpw == 8 || (bpw <= 32 && bpw_mask & SPI_BPW_MASK(bpw)))
/linux-master/include/linux/soc/qcom/
H A Dgeni-se.h490 void geni_se_config_packing(struct geni_se *se, int bpw, int pack_words,
/linux-master/drivers/crypto/stm32/
H A Dstm32-cryp.c443 int bpw = sizeof(u32); local
447 j = len - bpw;
449 for (i = 0; i < bpw; i++) {
450 index = len - j - bpw + i;
454 j -= bpw;

Completed in 213 milliseconds