Searched refs:cur_reg (Results 1 – 2 of 2) sorted by relevance
26 uint32_t cur_reg; member91 data->cur_reg = msgs->buf[0]; in at24_emul_transfer()92 len = MIN(msgs->len - 1, cfg->size - data->cur_reg); in at24_emul_transfer()93 memcpy(&cfg->buf[data->cur_reg], &msgs->buf[1], len); in at24_emul_transfer()100 data->cur_reg = msgs->buf[0]; in at24_emul_transfer()115 len = MIN(msgs->len, cfg->size - data->cur_reg); in at24_emul_transfer()116 memcpy(msgs->buf, &cfg->buf[data->cur_reg], len); in at24_emul_transfer()117 data->cur_reg += len; in at24_emul_transfer()147 data->cur_reg = 0; in emul_atmel_at24_init()
31 uint32_t cur_reg; member244 data->cur_reg = msgs->buf[0]; in bmi160_emul_transfer_i2c()250 msgs->buf[i] = reg_read(target, data->cur_reg + i); in bmi160_emul_transfer_i2c()256 reg_write(target, data->cur_reg, msgs->buf[0]); in bmi160_emul_transfer_i2c()