Home
last modified time | relevance | path

Searched refs:word_len (Results 1 – 8 of 8) sorted by relevance

/drivers/spi/
Dspi-omap-100k.c77 int word_len; member
182 int word_len; in omap1_spi100k_txrx_pio() local
186 word_len = cs->word_len; in omap1_spi100k_txrx_pio()
188 if (word_len <= 8) { in omap1_spi100k_txrx_pio()
197 spi100k_write_data(spi->master, word_len, *tx++); in omap1_spi100k_txrx_pio()
199 *rx++ = spi100k_read_data(spi->master, word_len); in omap1_spi100k_txrx_pio()
201 } else if (word_len <= 16) { in omap1_spi100k_txrx_pio()
210 spi100k_write_data(spi->master, word_len, *tx++); in omap1_spi100k_txrx_pio()
212 *rx++ = spi100k_read_data(spi->master, word_len); in omap1_spi100k_txrx_pio()
214 } else if (word_len <= 32) { in omap1_spi100k_txrx_pio()
[all …]
Dspi-omap2-mcspi.c137 int word_len; member
190 static inline int mcspi_bytes_per_word(int word_len) in mcspi_bytes_per_word() argument
192 if (word_len <= 8) in mcspi_bytes_per_word()
194 else if (word_len <= 16) in mcspi_bytes_per_word()
306 bytes_per_word = mcspi_bytes_per_word(cs->word_len); in omap2_mcspi_set_fifo()
444 int word_len, element_count; in omap2_mcspi_rx_dma() local
461 word_len = cs->word_len; in omap2_mcspi_rx_dma()
464 if (word_len <= 8) in omap2_mcspi_rx_dma()
466 else if (word_len <= 16) in omap2_mcspi_rx_dma()
546 if (word_len <= 8) in omap2_mcspi_rx_dma()
[all …]
Dspi-orion.c471 int word_len; in orion_spi_write_read() local
476 word_len = spi->bits_per_word; in orion_spi_write_read()
488 if (vaddr && xfer->tx_buf && word_len == 8 && (spi->mode & SPI_CS_WORD) == 0) { in orion_spi_write_read()
506 if (word_len == 8) { in orion_spi_write_read()
516 } else if (word_len == 16) { in orion_spi_write_read()
Dspi-geni-qcom.c241 u32 word_len; in spi_setup_word_len() local
253 word_len = (bits_per_word - MIN_WORD_LEN) & WORD_LEN_MSK; in spi_setup_word_len()
254 writel(word_len, se->base + SE_SPI_WORD_LEN); in spi_setup_word_len()
/drivers/platform/chrome/wilco_ec/
Ddebugfs.c52 int word_len; in parse_hex_sentence() local
72 word_len = word_end - word_start; in parse_hex_sentence()
73 if (word_len > MAX_WORD_SIZE) in parse_hex_sentence()
75 memcpy(tmp, in + word_start, word_len); in parse_hex_sentence()
76 tmp[word_len] = '\0'; in parse_hex_sentence()
/drivers/base/regmap/
Dregmap-spi-avmm.c159 unsigned char word_len; member
317 if (br->word_len == 1) in br_pkt_phy_tx_prepare()
321 aligned_phy_len = ALIGN(br->phy_len, br->word_len); in br_pkt_phy_tx_prepare()
378 ret = spi_read(br->spi, pb, br->word_len); in br_do_rx_and_pkt_phy_parse()
384 br->swap_words(pb, br->word_len); in br_do_rx_and_pkt_phy_parse()
387 for (i = 0; i < br->word_len; i++) { in br_do_rx_and_pkt_phy_parse()
644 br->word_len = spi->bits_per_word / 8; in spi_avmm_bridge_ctx_gen()
645 if (br->word_len == 4) { in spi_avmm_bridge_ctx_gen()
/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_buffer.c325 unsigned int word_len, read_len = 0; in st_lsm6dsx_read_block() local
329 word_len = min_t(unsigned int, data_len - read_len, in st_lsm6dsx_read_block()
332 word_len); in st_lsm6dsx_read_block()
335 read_len += word_len; in st_lsm6dsx_read_block()
/drivers/dma/qcom/
Dgpi.c1727 tre->dword[0] = u32_encode_bits(spi->word_len, TRE_SPI_C0_WORD_SZ); in gpi_create_spi_tre()