Home
last modified time | relevance | path

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

/openbmc/linux/drivers/i2c/busses/
H A Di2c-xlp9xx.c93 u32 msg_buf_remaining; member
141 thres = priv->msg_buf_remaining; in xlp9xx_i2c_update_rx_fifo_thres()
155 priv->msg_buf_remaining -= len; in xlp9xx_i2c_fill_tx_fifo()
208 priv->msg_buf_remaining = 0; in xlp9xx_i2c_drain_rx_fifo()
218 priv->msg_buf_remaining = rlen; in xlp9xx_i2c_drain_rx_fifo()
224 len = min(priv->msg_buf_remaining, len); in xlp9xx_i2c_drain_rx_fifo()
228 priv->msg_buf_remaining -= len; in xlp9xx_i2c_drain_rx_fifo()
231 if (priv->msg_buf_remaining) in xlp9xx_i2c_drain_rx_fifo()
257 if (priv->msg_buf_remaining) in xlp9xx_i2c_isr()
267 if (priv->msg_buf_remaining) in xlp9xx_i2c_isr()
[all …]
H A Di2c-bcm2835.c70 size_t msg_buf_remaining; member
197 while (i2c_dev->msg_buf_remaining) { in bcm2835_fill_txfifo()
204 i2c_dev->msg_buf_remaining--; in bcm2835_fill_txfifo()
212 while (i2c_dev->msg_buf_remaining) { in bcm2835_drain_rxfifo()
219 i2c_dev->msg_buf_remaining--; in bcm2835_drain_rxfifo()
247 i2c_dev->msg_buf_remaining = msg->len; in bcm2835_i2c_start_transfer()
268 i2c_dev->msg_buf_remaining = 0; in bcm2835_i2c_finish_transfer()
301 if ((val & BCM2835_I2C_S_RXD) || i2c_dev->msg_buf_remaining) in bcm2835_i2c_isr()
309 if (!i2c_dev->msg_buf_remaining) { in bcm2835_i2c_isr()
316 if (i2c_dev->num_msgs && !i2c_dev->msg_buf_remaining) { in bcm2835_i2c_isr()
[all …]
H A Di2c-tegra.c279 size_t msg_buf_remaining; member
737 size_t buf_remaining = i2c_dev->msg_buf_remaining; in tegra_i2c_empty_rx_fifo()
746 if (WARN_ON_ONCE(!(i2c_dev->msg_buf_remaining))) in tegra_i2c_empty_rx_fifo()
789 i2c_dev->msg_buf_remaining = buf_remaining; in tegra_i2c_empty_rx_fifo()
833 i2c_dev->msg_buf_remaining = buf_remaining; in tegra_i2c_fill_tx_fifo()
858 i2c_dev->msg_buf_remaining = 0; in tegra_i2c_fill_tx_fifo()
914 if (i2c_dev->msg_buf_remaining) in tegra_i2c_isr()
936 i2c_dev->msg_buf_remaining = 0; in tegra_i2c_isr()
941 if (WARN_ON_ONCE(i2c_dev->msg_buf_remaining)) { in tegra_i2c_isr()
1247 i2c_dev->msg_buf_remaining = i2c_dev->msg_len; in tegra_i2c_xfer_msg()
[all …]