Lines Matching refs:msgs_pos
78 struct i2c_msg *msgs_pos; member
101 __ASSERT_NO_MSG(data->master_xfer.msgs_pos < data->master_xfer.msgs_end); in m_numaker_i2c_master_xfer_msg_read_last_byte()
103 __ASSERT_NO_MSG((data->master_xfer.msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ); in m_numaker_i2c_master_xfer_msg_read_last_byte()
107 bool do_stop_prev = data->master_xfer.msgs_pos->flags & I2C_MSG_STOP; in m_numaker_i2c_master_xfer_msg_read_last_byte()
110 data->master_xfer.msgs_pos++; in m_numaker_i2c_master_xfer_msg_read_last_byte()
113 if (data->master_xfer.msgs_pos < data->master_xfer.msgs_end) { in m_numaker_i2c_master_xfer_msg_read_last_byte()
115 struct i2c_msg *msgs_pos = data->master_xfer.msgs_pos; in m_numaker_i2c_master_xfer_msg_read_last_byte() local
116 bool is_read_next = (msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in m_numaker_i2c_master_xfer_msg_read_last_byte()
117 bool do_restart_next = data->master_xfer.msgs_pos->flags & I2C_MSG_RESTART; in m_numaker_i2c_master_xfer_msg_read_last_byte()
142 data->master_xfer.msgs_pos--; in m_numaker_i2c_master_xfer_msg_read_last_byte()
192 __ASSERT_NO_MSG(data->master_xfer.msgs_pos < data->master_xfer.msgs_end); in m_numaker_i2c_master_xfer_msg_end()
197 bool is_read_prev = (data->master_xfer.msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in m_numaker_i2c_master_xfer_msg_end()
198 bool do_stop_prev = data->master_xfer.msgs_pos->flags & I2C_MSG_STOP; in m_numaker_i2c_master_xfer_msg_end()
201 data->master_xfer.msgs_pos++; in m_numaker_i2c_master_xfer_msg_end()
204 if (data->master_xfer.msgs_pos < data->master_xfer.msgs_end) { in m_numaker_i2c_master_xfer_msg_end()
206 struct i2c_msg *msgs_pos = data->master_xfer.msgs_pos; in m_numaker_i2c_master_xfer_msg_end() local
207 bool is_read_next = (msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in m_numaker_i2c_master_xfer_msg_end()
208 bool do_restart_next = data->master_xfer.msgs_pos->flags & I2C_MSG_RESTART; in m_numaker_i2c_master_xfer_msg_end()
232 data->master_xfer.buf_beg = data->master_xfer.msgs_pos->buf; in m_numaker_i2c_master_xfer_msg_end()
233 data->master_xfer.buf_pos = data->master_xfer.msgs_pos->buf; in m_numaker_i2c_master_xfer_msg_end()
234 data->master_xfer.buf_end = data->master_xfer.msgs_pos->buf + in m_numaker_i2c_master_xfer_msg_end()
235 data->master_xfer.msgs_pos->len; in m_numaker_i2c_master_xfer_msg_end()
357 data->master_xfer.msgs_pos = msgs; in i2c_numaker_transfer()
368 if (data->master_xfer.msgs_pos != data->master_xfer.msgs_end) { in i2c_numaker_transfer()
372 is_read = (data->master_xfer.msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in i2c_numaker_transfer()
373 is_10bit = data->master_xfer.msgs_pos->flags & I2C_MSG_ADDR_10_BITS; in i2c_numaker_transfer()
375 LOG_ERR("MSG IDX: %d", data->master_xfer.msgs_pos - data->master_xfer.msgs_beg); in i2c_numaker_transfer()
379 data->master_xfer.msgs_pos->len, in i2c_numaker_transfer()
538 data->master_xfer.buf_beg = data->master_xfer.msgs_pos->buf; in i2c_numaker_isr()
539 data->master_xfer.buf_pos = data->master_xfer.msgs_pos->buf; in i2c_numaker_isr()
540 data->master_xfer.buf_end = data->master_xfer.msgs_pos->buf + in i2c_numaker_isr()
541 data->master_xfer.msgs_pos->len; in i2c_numaker_isr()
544 struct i2c_msg *msgs_pos = data->master_xfer.msgs_pos; in i2c_numaker_isr() local
545 bool is_read = (msgs_pos->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ; in i2c_numaker_isr()