Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/spi/
Dspi-fsl-espi.c220 u32 tx_fifo_avail; in fsl_espi_fill_tx_fifo() local
225 tx_fifo_avail = events ? SPIE_TXCNT(events) : FSL_ESPI_FIFO_SIZE; in fsl_espi_fill_tx_fifo()
229 while (tx_fifo_avail >= min(4U, tx_left) && tx_left) { in fsl_espi_fill_tx_fifo()
241 tx_fifo_avail -= 4; in fsl_espi_fill_tx_fifo()
247 tx_fifo_avail -= 2; in fsl_espi_fill_tx_fifo()
256 tx_fifo_avail -= 1; in fsl_espi_fill_tx_fifo()
270 if (tx_fifo_avail) in fsl_espi_fill_tx_fifo()
/Linux-v4.19/drivers/i2c/busses/
Di2c-tegra.c361 int tx_fifo_avail; in tegra_i2c_fill_tx_fifo() local
368 tx_fifo_avail = (val & I2C_MST_FIFO_STATUS_TX_MASK) >> in tegra_i2c_fill_tx_fifo()
372 tx_fifo_avail = (val & I2C_FIFO_STATUS_TX_MASK) >> in tegra_i2c_fill_tx_fifo()
381 if (words_to_transfer > tx_fifo_avail) in tegra_i2c_fill_tx_fifo()
382 words_to_transfer = tx_fifo_avail; in tegra_i2c_fill_tx_fifo()
392 tx_fifo_avail -= words_to_transfer; in tegra_i2c_fill_tx_fifo()
408 if (tx_fifo_avail > 0 && buf_remaining > 0) { in tegra_i2c_fill_tx_fifo()
Di2c-altera.c226 size_t tx_fifo_avail = idev->fifo_size - readl(idev->base + in altr_i2c_fill_tx_fifo() local
228 int bytes_to_transfer = min(tx_fifo_avail, idev->msg_len); in altr_i2c_fill_tx_fifo()
Di2c-axxia.c264 size_t tx_fifo_avail = FIFO_SIZE - readl(idev->base + MST_TX_FIFO); in axxia_i2c_fill_tx_fifo() local
265 int bytes_to_transfer = min(tx_fifo_avail, msg->len - idev->msg_xfrd); in axxia_i2c_fill_tx_fifo()