Lines Matching refs:current
52 struct i2c_msg *current; member
74 data->current->len--; in i2c_gd32_xfer_read()
75 *data->current->buf = I2C_DATA(cfg->reg); in i2c_gd32_xfer_read()
76 data->current->buf++; in i2c_gd32_xfer_read()
79 (data->current->len == 0U)) { in i2c_gd32_xfer_read()
80 data->current++; in i2c_gd32_xfer_read()
87 data->current->len--; in i2c_gd32_xfer_write()
88 I2C_DATA(cfg->reg) = *data->current->buf; in i2c_gd32_xfer_write()
89 data->current->buf++; in i2c_gd32_xfer_write()
92 (data->current->len == 0U)) { in i2c_gd32_xfer_write()
93 data->current++; in i2c_gd32_xfer_write()
167 if (data->current->flags & I2C_MSG_READ) { in i2c_gd32_handle_btc()
205 if ((data->current->flags & I2C_MSG_READ) && (data->xfer_len <= 2U)) { in i2c_gd32_handle_addsend()
215 data->current->flags &= ~I2C_MSG_RW_MASK; in i2c_gd32_handle_addsend()
216 data->current->flags |= I2C_MSG_READ; in i2c_gd32_handle_addsend()
223 if ((data->current->flags & I2C_MSG_READ) && (data->xfer_len == 1U)) { in i2c_gd32_handle_addsend()
238 if (data->current->flags & I2C_MSG_READ) { in i2c_gd32_event_isr()
323 if (data->current->flags & I2C_MSG_READ) { in i2c_gd32_xfer_begin()
337 data->current->flags &= ~I2C_MSG_RW_MASK; in i2c_gd32_xfer_begin()
407 struct i2c_msg *current, *next; in i2c_gd32_transfer() local
411 current = msgs; in i2c_gd32_transfer()
414 current->flags |= I2C_MSG_RESTART; in i2c_gd32_transfer()
419 next = current + 1; in i2c_gd32_transfer()
425 if ((current->flags & I2C_MSG_RW_MASK) != in i2c_gd32_transfer()
433 if (current->flags & I2C_MSG_STOP) { in i2c_gd32_transfer()
438 if ((current->buf == NULL) || in i2c_gd32_transfer()
439 (current->len == 0U)) { in i2c_gd32_transfer()
443 current++; in i2c_gd32_transfer()
459 data->current = &msgs[i]; in i2c_gd32_transfer()
463 if ((data->current->flags & I2C_MSG_RW_MASK) != in i2c_gd32_transfer()
470 if (data->current->flags & I2C_MSG_READ) { in i2c_gd32_transfer()