Searched refs:rw_idx (Results 1 – 1 of 1) sorted by relevance
/u-boot/drivers/power/pmic/ |
A D | i2c_pmic_emul.c | 23 u8 rw_reg, rw_idx; member 35 if (plat->rw_idx + len > plat->buf_size) { in sandbox_i2c_pmic_read_data() 42 (unsigned int)chip & 0xff, plat->rw_reg, plat->rw_idx, len); in sandbox_i2c_pmic_read_data() 44 memcpy(buffer, plat->reg + plat->rw_idx, len); in sandbox_i2c_pmic_read_data() 61 plat->rw_idx = plat->rw_reg * plat->trans_len; in sandbox_i2c_pmic_write_data() 64 (unsigned int)chip & 0xff, plat->rw_reg, plat->rw_idx, len); in sandbox_i2c_pmic_write_data() 73 if (plat->rw_idx + len > plat->buf_size) { in sandbox_i2c_pmic_write_data() 78 memcpy(plat->reg + plat->rw_idx, buffer, len); in sandbox_i2c_pmic_write_data()
|
Completed in 3 milliseconds