Home
last modified time | relevance | path

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

/drivers/spi/
Dspi-fsl-espi.c216 u32 tx_fifo_avail; in fsl_espi_fill_tx_fifo() local
221 tx_fifo_avail = events ? SPIE_TXCNT(events) : FSL_ESPI_FIFO_SIZE; in fsl_espi_fill_tx_fifo()
225 while (tx_fifo_avail >= min(4U, tx_left) && tx_left) { in fsl_espi_fill_tx_fifo()
237 tx_fifo_avail -= 4; in fsl_espi_fill_tx_fifo()
243 tx_fifo_avail -= 2; in fsl_espi_fill_tx_fifo()
252 tx_fifo_avail -= 1; in fsl_espi_fill_tx_fifo()
266 if (tx_fifo_avail) in fsl_espi_fill_tx_fifo()
/drivers/i2c/busses/
Di2c-tegra.c797 unsigned int words_to_transfer, tx_fifo_avail; in tegra_i2c_fill_tx_fifo() local
803 tx_fifo_avail = FIELD_GET(I2C_MST_FIFO_STATUS_TX, val); in tegra_i2c_fill_tx_fifo()
806 tx_fifo_avail = FIELD_GET(I2C_FIFO_STATUS_TX, val); in tegra_i2c_fill_tx_fifo()
819 if (words_to_transfer > tx_fifo_avail) in tegra_i2c_fill_tx_fifo()
820 words_to_transfer = tx_fifo_avail; in tegra_i2c_fill_tx_fifo()
830 tx_fifo_avail -= words_to_transfer; in tegra_i2c_fill_tx_fifo()
848 if (tx_fifo_avail > 0 && buf_remaining > 0) { in tegra_i2c_fill_tx_fifo()
Di2c-altera.c210 size_t tx_fifo_avail = idev->fifo_size - readl(idev->base + in altr_i2c_fill_tx_fifo() local
212 int bytes_to_transfer = min(tx_fifo_avail, idev->msg_len); in altr_i2c_fill_tx_fifo()
Di2c-axxia.c305 size_t tx_fifo_avail = FIFO_SIZE - readl(idev->base + MST_TX_FIFO); in axxia_i2c_fill_tx_fifo() local
306 int bytes_to_transfer = min(tx_fifo_avail, msg->len - idev->msg_xfrd); in axxia_i2c_fill_tx_fifo()