Lines Matching refs:curr_msg
136 struct i3c_stm32_msg curr_msg; member
216 struct i3c_stm32_msg *curr_msg = &data->curr_msg; in i3c_stm32_curr_msg_is_i3c() local
218 return (curr_msg->msg_type == LL_I3C_CONTROLLER_MTYPE_PRIVATE); in i3c_stm32_curr_msg_is_i3c()
224 struct i3c_stm32_msg *curr_msg = &data->curr_msg; in i3c_stm32_arbitration_header_config() local
229 if (curr_msg->i3c_msg_ctrl_ptr->flags & I3C_MSG_NBCH) { in i3c_stm32_arbitration_header_config()
243 struct i3c_stm32_msg *curr_msg = &data->curr_msg; in i3c_stm32_curr_msg_init() local
250 curr_msg->target_addr = tgt_addr; in i3c_stm32_curr_msg_init()
251 curr_msg->xfer_offset = 0; in i3c_stm32_curr_msg_init()
252 curr_msg->num_msgs = num_msgs; in i3c_stm32_curr_msg_init()
253 curr_msg->ctrl_msg_idx = 0; in i3c_stm32_curr_msg_init()
254 curr_msg->status_msg_idx = 0; in i3c_stm32_curr_msg_init()
255 curr_msg->xfer_msg_idx = 0; in i3c_stm32_curr_msg_init()
259 curr_msg->msg_type = LL_I3C_CONTROLLER_MTYPE_PRIVATE; in i3c_stm32_curr_msg_init()
260 curr_msg->i3c_msg_ptr = i3c_msgs; in i3c_stm32_curr_msg_init()
261 curr_msg->i3c_msg_ctrl_ptr = i3c_msgs; in i3c_stm32_curr_msg_init()
262 curr_msg->i3c_msg_status_ptr = i3c_msgs; in i3c_stm32_curr_msg_init()
265 curr_msg->msg_type = LL_I3C_CONTROLLER_MTYPE_LEGACY_I2C; in i3c_stm32_curr_msg_init()
266 curr_msg->i2c_msg_ptr = i2c_msgs; in i3c_stm32_curr_msg_init()
267 curr_msg->i2c_msg_ctrl_ptr = i2c_msgs; in i3c_stm32_curr_msg_init()
277 struct i3c_stm32_msg *curr_msg = &data->curr_msg; in i3c_stm32_curr_msg_control_get_dir() local
280 return (((curr_msg->i3c_msg_ctrl_ptr->flags & I3C_MSG_RW_MASK) == I3C_MSG_READ) in i3c_stm32_curr_msg_control_get_dir()
285 return (((curr_msg->i2c_msg_ctrl_ptr->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ) in i3c_stm32_curr_msg_control_get_dir()
293 struct i3c_stm32_msg *curr_msg = &data->curr_msg; in i3c_stm32_curr_msg_control_get_len() local
295 return (i3c_stm32_curr_msg_is_i3c(dev)) ? curr_msg->i3c_msg_ctrl_ptr->len in i3c_stm32_curr_msg_control_get_len()
296 : curr_msg->i2c_msg_ctrl_ptr->len; in i3c_stm32_curr_msg_control_get_len()
302 struct i3c_stm32_msg *curr_msg = &data->curr_msg; in i3c_stm32_curr_msg_control_get_end() local
304 return ((curr_msg->ctrl_msg_idx < (curr_msg->num_msgs - 1)) ? LL_I3C_GENERATE_RESTART in i3c_stm32_curr_msg_control_get_end()
311 struct i3c_stm32_msg *curr_msg = &data->curr_msg; in i3c_stm32_curr_msg_control_next() local
313 if (curr_msg->ctrl_msg_idx >= curr_msg->num_msgs) { in i3c_stm32_curr_msg_control_next()
319 curr_msg->i3c_msg_ctrl_ptr++; in i3c_stm32_curr_msg_control_next()
321 curr_msg->i2c_msg_ctrl_ptr++; in i3c_stm32_curr_msg_control_next()
324 curr_msg->ctrl_msg_idx++; in i3c_stm32_curr_msg_control_next()
332 struct i3c_stm32_msg *curr_msg = &data->curr_msg; in i3c_stm32_curr_msg_status_update_num_xfer() local
334 if (curr_msg->status_msg_idx >= curr_msg->num_msgs) { in i3c_stm32_curr_msg_status_update_num_xfer()
341 curr_msg->i3c_msg_status_ptr->num_xfer = num_xfer; in i3c_stm32_curr_msg_status_update_num_xfer()
350 struct i3c_stm32_msg *curr_msg = &data->curr_msg; in i3c_stm32_curr_msg_status_next() local
352 if (curr_msg->status_msg_idx >= curr_msg->num_msgs) { in i3c_stm32_curr_msg_status_next()
358 curr_msg->i3c_msg_status_ptr++; in i3c_stm32_curr_msg_status_next()
359 curr_msg->status_msg_idx++; in i3c_stm32_curr_msg_status_next()
369 struct i3c_stm32_msg *curr_msg = &data->curr_msg; in i3c_stm32_curr_msg_xfer_get_buf() local
371 if (curr_msg->xfer_msg_idx >= curr_msg->num_msgs) { in i3c_stm32_curr_msg_xfer_get_buf()
377 *buf = curr_msg->i3c_msg_ptr->buf; in i3c_stm32_curr_msg_xfer_get_buf()
378 *len = curr_msg->i3c_msg_ptr->len; in i3c_stm32_curr_msg_xfer_get_buf()
380 *buf = curr_msg->i2c_msg_ptr->buf; in i3c_stm32_curr_msg_xfer_get_buf()
381 *len = curr_msg->i2c_msg_ptr->len; in i3c_stm32_curr_msg_xfer_get_buf()
384 *offset = &curr_msg->xfer_offset; in i3c_stm32_curr_msg_xfer_get_buf()
394 struct i3c_stm32_msg *curr_msg = &data->curr_msg; in i3c_stm32_curr_msg_xfer_is_read() local
396 if (curr_msg->xfer_msg_idx >= curr_msg->num_msgs) { in i3c_stm32_curr_msg_xfer_is_read()
402 return ((curr_msg->i3c_msg_ptr->flags & I3C_MSG_RW_MASK) == I3C_MSG_READ); in i3c_stm32_curr_msg_xfer_is_read()
405 return ((curr_msg->i2c_msg_ptr->flags & I2C_MSG_RW_MASK) == I2C_MSG_READ); in i3c_stm32_curr_msg_xfer_is_read()
412 struct i3c_stm32_msg *curr_msg = &data->curr_msg; in i3c_stm32_curr_msg_xfer_next() local
414 if (curr_msg->xfer_msg_idx >= curr_msg->num_msgs) { in i3c_stm32_curr_msg_xfer_next()
420 curr_msg->i3c_msg_ptr++; in i3c_stm32_curr_msg_xfer_next()
422 curr_msg->i2c_msg_ptr++; in i3c_stm32_curr_msg_xfer_next()
425 curr_msg->xfer_msg_idx++; in i3c_stm32_curr_msg_xfer_next()
426 curr_msg->xfer_offset = 0; in i3c_stm32_curr_msg_xfer_next()
1180 struct i3c_stm32_msg *curr_msg = &data->curr_msg; in i3c_stm32_transfer_begin() local
1182 data->fifo_len = curr_msg->num_msgs * sizeof(uint32_t); in i3c_stm32_transfer_begin()
1188 for (size_t i = 0; i < curr_msg->num_msgs; i++) { in i3c_stm32_transfer_begin()
1190 ((curr_msg->target_addr << I3C_CR_ADD_Pos) | in i3c_stm32_transfer_begin()
1192 i3c_stm32_curr_msg_control_get_dir(dev) | curr_msg->msg_type | in i3c_stm32_transfer_begin()
1718 struct i3c_stm32_msg *curr_msg = &data->curr_msg; in i3c_stm32_event_isr_cf() local
1724 i3c, curr_msg->target_addr, i3c_stm32_curr_msg_control_get_len(dev), in i3c_stm32_event_isr_cf()
1725 i3c_stm32_curr_msg_control_get_dir(dev), curr_msg->msg_type, in i3c_stm32_event_isr_cf()