Searched refs:rx_fifo_avail (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/i2c/busses/
H A Di2c-tegra.c273 int rx_fifo_avail; tegra_i2c_empty_rx_fifo() local
279 rx_fifo_avail = (val & I2C_FIFO_STATUS_RX_MASK) >> tegra_i2c_empty_rx_fifo()
284 if (words_to_transfer > rx_fifo_avail) tegra_i2c_empty_rx_fifo()
285 words_to_transfer = rx_fifo_avail; tegra_i2c_empty_rx_fifo()
291 rx_fifo_avail -= words_to_transfer; tegra_i2c_empty_rx_fifo()
297 if (rx_fifo_avail > 0 && buf_remaining > 0) { tegra_i2c_empty_rx_fifo()
303 rx_fifo_avail--; tegra_i2c_empty_rx_fifo()
306 BUG_ON(rx_fifo_avail > 0 && buf_remaining > 0); tegra_i2c_empty_rx_fifo()
H A Di2c-axxia.c232 size_t rx_fifo_avail = readl(idev->base + MST_RX_FIFO); axxia_i2c_empty_rx_fifo() local
233 int bytes_to_transfer = min(rx_fifo_avail, msg->len - idev->msg_xfrd); axxia_i2c_empty_rx_fifo()

Completed in 142 milliseconds