Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/i2c/busses/
Di2c-gxp.c88 size_t buf_remaining; member
101 drvdata->buf_remaining = drvdata->curr_msg->len; in gxp_i2c_start()
208 drvdata->buf_remaining = drvdata->curr_msg->len; in gxp_i2c_restart()
239 if (drvdata->buf_remaining == 0) { in gxp_i2c_chk_addr_ack()
248 if (drvdata->buf_remaining == 1) { in gxp_i2c_chk_addr_ack()
259 if (drvdata->buf_remaining == 0) { in gxp_i2c_chk_addr_ack()
271 drvdata->buf_remaining--; in gxp_i2c_chk_addr_ack()
285 drvdata->buf_remaining--; in gxp_i2c_ack_data()
287 if (drvdata->buf_remaining == 0) { in gxp_i2c_ack_data()
305 if (drvdata->buf_remaining == 1) { in gxp_i2c_ack_data()
[all …]
Di2c-tegra.c737 size_t buf_remaining = i2c_dev->msg_buf_remaining; in tegra_i2c_empty_rx_fifo() local
758 words_to_transfer = buf_remaining / BYTES_PER_FIFO_WORD; in tegra_i2c_empty_rx_fifo()
765 buf_remaining -= words_to_transfer * BYTES_PER_FIFO_WORD; in tegra_i2c_empty_rx_fifo()
772 if (rx_fifo_avail > 0 && buf_remaining > 0) { in tegra_i2c_empty_rx_fifo()
780 memcpy(buf, &val, buf_remaining); in tegra_i2c_empty_rx_fifo()
781 buf_remaining = 0; in tegra_i2c_empty_rx_fifo()
789 i2c_dev->msg_buf_remaining = buf_remaining; in tegra_i2c_empty_rx_fifo()
797 size_t buf_remaining = i2c_dev->msg_buf_remaining; in tegra_i2c_fill_tx_fifo() local
811 words_to_transfer = buf_remaining / BYTES_PER_FIFO_WORD; in tegra_i2c_fill_tx_fifo()
830 buf_remaining -= words_to_transfer * BYTES_PER_FIFO_WORD; in tegra_i2c_fill_tx_fifo()
[all …]