Lines Matching refs:emul
120 static int sandbox_i2c_rtc_prepare_read(struct udevice *emul) in sandbox_i2c_rtc_prepare_read() argument
122 struct sandbox_i2c_rtc_plat_data *plat = dev_get_platdata(emul); in sandbox_i2c_rtc_prepare_read()
126 ret = sandbox_i2c_rtc_get(emul, &time); in sandbox_i2c_rtc_prepare_read()
141 static int sandbox_i2c_rtc_complete_write(struct udevice *emul) in sandbox_i2c_rtc_complete_write() argument
143 struct sandbox_i2c_rtc_plat_data *plat = dev_get_platdata(emul); in sandbox_i2c_rtc_complete_write()
155 ret = sandbox_i2c_rtc_set(emul, &time); in sandbox_i2c_rtc_complete_write()
162 static int sandbox_i2c_rtc_xfer(struct udevice *emul, struct i2c_msg *msg, in sandbox_i2c_rtc_xfer() argument
165 struct sandbox_i2c_rtc_plat_data *plat = dev_get_platdata(emul); in sandbox_i2c_rtc_xfer()
170 ret = sandbox_i2c_rtc_prepare_read(emul); in sandbox_i2c_rtc_xfer()
198 reset_time(emul); in sandbox_i2c_rtc_xfer()
201 ret = sandbox_i2c_rtc_complete_write(emul); in sandbox_i2c_rtc_xfer()