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