Home
last modified time | relevance | path

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

/drivers/spi/
Dspi-omap-100k.c78 int word_len; member
183 int word_len; in omap1_spi100k_txrx_pio() local
187 word_len = cs->word_len; in omap1_spi100k_txrx_pio()
189 if (word_len <= 8) { in omap1_spi100k_txrx_pio()
198 spi100k_write_data(spi->master, word_len, *tx++); in omap1_spi100k_txrx_pio()
200 *rx++ = spi100k_read_data(spi->master, word_len); in omap1_spi100k_txrx_pio()
202 } else if (word_len <= 16) { in omap1_spi100k_txrx_pio()
211 spi100k_write_data(spi->master, word_len, *tx++); in omap1_spi100k_txrx_pio()
213 *rx++ = spi100k_read_data(spi->master, word_len); in omap1_spi100k_txrx_pio()
215 } else if (word_len <= 32) { in omap1_spi100k_txrx_pio()
[all …]
Dspi-omap2-mcspi.c138 int word_len; member
191 static inline int mcspi_bytes_per_word(int word_len) in mcspi_bytes_per_word() argument
193 if (word_len <= 8) in mcspi_bytes_per_word()
195 else if (word_len <= 16) in mcspi_bytes_per_word()
307 bytes_per_word = mcspi_bytes_per_word(cs->word_len); in omap2_mcspi_set_fifo()
439 int word_len, element_count; in omap2_mcspi_rx_dma() local
455 word_len = cs->word_len; in omap2_mcspi_rx_dma()
458 if (word_len <= 8) in omap2_mcspi_rx_dma()
460 else if (word_len <= 16) in omap2_mcspi_rx_dma()
548 if (word_len <= 8) in omap2_mcspi_rx_dma()
[all …]
Dspi-orion.c428 int word_len; in orion_spi_write_read() local
433 word_len = spi->bits_per_word; in orion_spi_write_read()
444 if (vaddr && xfer->tx_buf && word_len == 8) { in orion_spi_write_read()
462 if (word_len == 8) { in orion_spi_write_read()
473 } else if (word_len == 16) { in orion_spi_write_read()
Dspi-geni-qcom.c179 u32 word_len; in spi_setup_word_len() local
181 word_len = readl(se->base + SE_SPI_WORD_LEN); in spi_setup_word_len()
191 word_len &= ~WORD_LEN_MSK; in spi_setup_word_len()
192 word_len |= ((bits_per_word - MIN_WORD_LEN) & WORD_LEN_MSK); in spi_setup_word_len()
195 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/staging/kpc2000/
Dkpc2000_spi.c358 unsigned int word_len = spidev->bits_per_word; in kp_spi_transfer_one_message() local
372 word_len = transfer->bits_per_word; in kp_spi_transfer_one_message()
373 sc.bitfield.wl = word_len - 1; in kp_spi_transfer_one_message()
/drivers/iio/imu/st_lsm6dsx/
Dst_lsm6dsx_buffer.c314 unsigned int word_len, read_len = 0; in st_lsm6dsx_read_block() local
318 word_len = min_t(unsigned int, data_len - read_len, in st_lsm6dsx_read_block()
321 word_len); in st_lsm6dsx_read_block()
324 read_len += word_len; in st_lsm6dsx_read_block()