Lines Matching refs:msg_buf_used
44 uint16_t msg_buf_used = 0; in i2c_nrfx_twim_transfer() local
81 if (concat_next || (msg_buf_used != 0) || !dma_accessible) { in i2c_nrfx_twim_transfer()
82 if ((msg_buf_used + msgs[i].len) > msg_buf_size) { in i2c_nrfx_twim_transfer()
90 msg_buf_used, msgs[i].len, in i2c_nrfx_twim_transfer()
96 memcpy(msg_buf + msg_buf_used, in i2c_nrfx_twim_transfer()
100 msg_buf_used += msgs[i].len; in i2c_nrfx_twim_transfer()
107 if (msg_buf_used == 0) { in i2c_nrfx_twim_transfer()
112 buf_len = msg_buf_used; in i2c_nrfx_twim_transfer()
154 while (msg_buf_used >= msgs[j].len) { in i2c_nrfx_twim_transfer()
155 msg_buf_used -= msgs[j].len; in i2c_nrfx_twim_transfer()
157 msg_buf + msg_buf_used, in i2c_nrfx_twim_transfer()
164 msg_buf_used = 0; in i2c_nrfx_twim_transfer()