Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/drivers/i2c/
Di2c_ite_it8xxx2.c72 struct i2c_msg *active_msg; member
329 if ((data->active_msg->flags & I2C_MSG_STOP) && in i2c_r_last_byte()
330 (data->ridx == data->active_msg->len - 1)) { in i2c_r_last_byte()
399 data->active_msg->flags &= ~I2C_MSG_START; in i2c_tran_fifo_write_start()
407 IT8XXX2_SMB_D0REG(base) = data->active_msg->len; in i2c_tran_fifo_write_start()
414 data->bytecnt = MIN(data->active_msg->len, I2C_FIFO_MODE_MAX_SIZE); in i2c_tran_fifo_write_start()
418 IT8XXX2_SMB_HOBDB(base) = *(data->active_msg->buf++); in i2c_tran_fifo_write_start()
421 data->bytecnt = data->active_msg->len - data->bytecnt; in i2c_tran_fifo_write_start()
445 IT8XXX2_SMB_HOBDB(base) = *(data->active_msg->buf++); in i2c_tran_fifo_write_next_block()
487 data->active_msg = &data->msgs_list[data->active_msg_index]; in i2c_tran_fifo_w2r_change_direction()
[all …]
Di2c_ite_enhance.c119 struct i2c_msg *active_msg; member
458 if (((data->ridx + 1) == data->active_msg->len) && in i2c_pio_trans_data()
459 (data->active_msg->flags & I2C_MSG_STOP)) { in i2c_pio_trans_data()
476 if (data->active_msg->flags & I2C_MSG_START) { in enhanced_i2c_tran_read()
478 data->active_msg->flags &= ~I2C_MSG_START; in enhanced_i2c_tran_read()
500 if (data->ridx < data->active_msg->len) { in enhanced_i2c_tran_read()
502 *(data->active_msg->buf++) = IT8XXX2_I2C_DRR(base); in enhanced_i2c_tran_read()
505 if (data->ridx == data->active_msg->len) { in enhanced_i2c_tran_read()
506 data->active_msg->len = 0; in enhanced_i2c_tran_read()
507 if (data->active_msg->flags & I2C_MSG_STOP) { in enhanced_i2c_tran_read()
[all …]