Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/i2c/busses/
Di2c-tegra.c314 size_t buf_remaining = i2c_dev->msg_buf_remaining; in tegra_i2c_empty_rx_fifo() local
328 words_to_transfer = buf_remaining / BYTES_PER_FIFO_WORD; in tegra_i2c_empty_rx_fifo()
335 buf_remaining -= words_to_transfer * BYTES_PER_FIFO_WORD; in tegra_i2c_empty_rx_fifo()
342 if (rx_fifo_avail > 0 && buf_remaining > 0) { in tegra_i2c_empty_rx_fifo()
343 BUG_ON(buf_remaining > 3); in tegra_i2c_empty_rx_fifo()
346 memcpy(buf, &val, buf_remaining); in tegra_i2c_empty_rx_fifo()
347 buf_remaining = 0; in tegra_i2c_empty_rx_fifo()
351 BUG_ON(rx_fifo_avail > 0 && buf_remaining > 0); in tegra_i2c_empty_rx_fifo()
352 i2c_dev->msg_buf_remaining = buf_remaining; in tegra_i2c_empty_rx_fifo()
363 size_t buf_remaining = i2c_dev->msg_buf_remaining; in tegra_i2c_fill_tx_fifo() local
[all …]