Lines Matching refs:emul
57 struct udevice *dev, *emul; in dm_test_rtc_set_get() local
63 ut_assertok(device_find_first_child(dev, &emul)); in dm_test_rtc_set_get()
64 ut_assert(emul != NULL); in dm_test_rtc_set_get()
67 old_offset = sandbox_i2c_rtc_set_offset(emul, false, 0); in dm_test_rtc_set_get()
68 old_base_time = sandbox_i2c_rtc_get_set_base_time(emul, -1); in dm_test_rtc_set_get()
84 offset = sandbox_i2c_rtc_set_offset(emul, false, 0); in dm_test_rtc_set_get()
85 sandbox_i2c_rtc_set_offset(emul, false, offset + 1); in dm_test_rtc_set_get()
92 sandbox_i2c_rtc_set_offset(emul, false, old_offset); in dm_test_rtc_set_get()
97 sandbox_i2c_rtc_set_offset(emul, false, 0); in dm_test_rtc_set_get()
103 sandbox_i2c_rtc_get_set_base_time(emul, old_base_time + 1); in dm_test_rtc_set_get()
112 old_offset = sandbox_i2c_rtc_set_offset(emul, true, 0); in dm_test_rtc_set_get()
122 struct udevice *dev, *emul; in dm_test_rtc_reset() local
128 ut_assertok(device_find_first_child(dev, &emul)); in dm_test_rtc_reset()
129 ut_assert(emul != NULL); in dm_test_rtc_reset()
131 old_base_time = sandbox_i2c_rtc_get_set_base_time(emul, 0); in dm_test_rtc_reset()
133 ut_asserteq(0, sandbox_i2c_rtc_get_set_base_time(emul, -1)); in dm_test_rtc_reset()
137 base_time = sandbox_i2c_rtc_get_set_base_time(emul, -1); in dm_test_rtc_reset()