Lines Matching refs:current

469 	if (data->current.len) {  in stm32_i2c_event()
472 LL_I2C_TransmitData8(i2c, *data->current.buf); in stm32_i2c_event()
477 *data->current.buf = LL_I2C_ReceiveData8(i2c); in stm32_i2c_event()
480 data->current.buf++; in stm32_i2c_event()
481 data->current.len--; in stm32_i2c_event()
487 data->current.is_nack = 1U; in stm32_i2c_event()
507 if (data->current.msg->flags & I2C_MSG_STOP) { in stm32_i2c_event()
535 data->current.is_arlo = 1U; in stm32_i2c_error()
541 data->current.is_err = 1U; in stm32_i2c_error()
596 data->current.len = msg->len; in stm32_i2c_msg_write()
597 data->current.buf = msg->buf; in stm32_i2c_msg_write()
598 data->current.is_write = 1U; in stm32_i2c_msg_write()
599 data->current.is_nack = 0U; in stm32_i2c_msg_write()
600 data->current.is_err = 0U; in stm32_i2c_msg_write()
601 data->current.msg = msg; in stm32_i2c_msg_write()
615 if (data->current.is_nack || data->current.is_err || in stm32_i2c_msg_write()
616 data->current.is_arlo || is_timeout) { in stm32_i2c_msg_write()
622 if (data->current.is_arlo) { in stm32_i2c_msg_write()
624 data->current.is_arlo); in stm32_i2c_msg_write()
625 data->current.is_arlo = 0U; in stm32_i2c_msg_write()
628 if (data->current.is_nack) { in stm32_i2c_msg_write()
630 data->current.is_nack = 0U; in stm32_i2c_msg_write()
633 if (data->current.is_err) { in stm32_i2c_msg_write()
635 data->current.is_err); in stm32_i2c_msg_write()
636 data->current.is_err = 0U; in stm32_i2c_msg_write()
654 data->current.len = msg->len; in stm32_i2c_msg_read()
655 data->current.buf = msg->buf; in stm32_i2c_msg_read()
656 data->current.is_write = 0U; in stm32_i2c_msg_read()
657 data->current.is_arlo = 0U; in stm32_i2c_msg_read()
658 data->current.is_err = 0U; in stm32_i2c_msg_read()
659 data->current.is_nack = 0U; in stm32_i2c_msg_read()
660 data->current.msg = msg; in stm32_i2c_msg_read()
674 if (data->current.is_nack || data->current.is_err || in stm32_i2c_msg_read()
675 data->current.is_arlo || is_timeout) { in stm32_i2c_msg_read()
681 if (data->current.is_arlo) { in stm32_i2c_msg_read()
683 data->current.is_arlo); in stm32_i2c_msg_read()
684 data->current.is_arlo = 0U; in stm32_i2c_msg_read()
687 if (data->current.is_nack) { in stm32_i2c_msg_read()
689 data->current.is_nack = 0U; in stm32_i2c_msg_read()
692 if (data->current.is_err) { in stm32_i2c_msg_read()
694 data->current.is_err); in stm32_i2c_msg_read()
695 data->current.is_err = 0U; in stm32_i2c_msg_read()