Home
last modified time | relevance | path

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

/linux/drivers/spi/
H A Dspi-st-ssc4.c53 struct spi_st { struct
69 static void ssc_write_tx_fifo(struct spi_st *spi_st) in ssc_write_tx_fifo() argument
74 if (spi_st->words_remaining > FIFO_SIZE) in ssc_write_tx_fifo()
77 count = spi_st->words_remaining; in ssc_write_tx_fifo()
80 if (spi_st->tx_ptr) { in ssc_write_tx_fifo()
81 if (spi_st->bytes_per_word == 1) { in ssc_write_tx_fifo()
82 word = *spi_st->tx_ptr++; in ssc_write_tx_fifo()
84 word = *spi_st->tx_ptr++; in ssc_write_tx_fifo()
85 word = *spi_st->tx_ptr++ | (word << 8); in ssc_write_tx_fifo()
88 writel_relaxed(word, spi_st->base + SSC_TBUF); in ssc_write_tx_fifo()
[all …]