Lines Matching refs:msg

131 	struct stm32f4_i2c_msg msg;  member
333 struct stm32f4_i2c_msg *msg = &i2c_dev->msg; in stm32f4_i2c_write_msg() local
335 stm32f4_i2c_write_byte(i2c_dev, *msg->buf++); in stm32f4_i2c_write_msg()
336 msg->count--; in stm32f4_i2c_write_msg()
341 struct stm32f4_i2c_msg *msg = &i2c_dev->msg; in stm32f4_i2c_read_msg() local
345 *msg->buf++ = rbuf; in stm32f4_i2c_read_msg()
346 msg->count--; in stm32f4_i2c_read_msg()
351 struct stm32f4_i2c_msg *msg = &i2c_dev->msg; in stm32f4_i2c_terminate_xfer() local
357 if (msg->stop) in stm32f4_i2c_terminate_xfer()
371 struct stm32f4_i2c_msg *msg = &i2c_dev->msg; in stm32f4_i2c_handle_write() local
374 if (msg->count) { in stm32f4_i2c_handle_write()
376 if (!msg->count) { in stm32f4_i2c_handle_write()
396 struct stm32f4_i2c_msg *msg = &i2c_dev->msg; in stm32f4_i2c_handle_read() local
399 switch (msg->count) { in stm32f4_i2c_handle_read()
436 struct stm32f4_i2c_msg *msg = &i2c_dev->msg; in stm32f4_i2c_handle_rx_done() local
441 switch (msg->count) { in stm32f4_i2c_handle_rx_done()
452 if (msg->stop) in stm32f4_i2c_handle_rx_done()
488 struct stm32f4_i2c_msg *msg = &i2c_dev->msg; in stm32f4_i2c_handle_rx_addr() local
491 switch (msg->count) { in stm32f4_i2c_handle_rx_addr()
512 if (msg->stop) in stm32f4_i2c_handle_rx_addr()
559 struct stm32f4_i2c_msg *msg = &i2c_dev->msg; in stm32f4_i2c_isr_event() local
581 stm32f4_i2c_write_byte(i2c_dev, msg->addr); in stm32f4_i2c_isr_event()
585 if (msg->addr & I2C_M_RD) in stm32f4_i2c_isr_event()
599 if ((event & STM32F4_I2C_SR1_TXE) && !(msg->addr & I2C_M_RD)) in stm32f4_i2c_isr_event()
603 if ((event & STM32F4_I2C_SR1_RXNE) && (msg->addr & I2C_M_RD)) in stm32f4_i2c_isr_event()
614 if (msg->addr & I2C_M_RD) in stm32f4_i2c_isr_event()
631 struct stm32f4_i2c_msg *msg = &i2c_dev->msg; in stm32f4_i2c_isr_error() local
641 msg->result = -EAGAIN; in stm32f4_i2c_isr_error()
649 if (!(msg->addr & I2C_M_RD)) { in stm32f4_i2c_isr_error()
655 msg->result = -EIO; in stm32f4_i2c_isr_error()
662 msg->result = -EIO; in stm32f4_i2c_isr_error()
679 struct i2c_msg *msg, bool is_first, in stm32f4_i2c_xfer_msg() argument
682 struct stm32f4_i2c_msg *f4_msg = &i2c_dev->msg; in stm32f4_i2c_xfer_msg()
688 f4_msg->addr = i2c_8bit_addr_from_msg(msg); in stm32f4_i2c_xfer_msg()
689 f4_msg->buf = msg->buf; in stm32f4_i2c_xfer_msg()
690 f4_msg->count = msg->len; in stm32f4_i2c_xfer_msg()