Lines Matching refs:save
102 struct rtc_time save = roll; in rtc_rollover() local
106 for (timeout = timeout_num; timeout && (roll.tm_year == save.tm_year); --timeout) { in rtc_rollover()
107 ASSERT_LE(0, rd_hwtime(&save)); in rtc_rollover()
152 if (++save.tm_sec >= 60) { in rtc_rollover()
153 save.tm_sec = 0; in rtc_rollover()
154 if (++save.tm_min >= 60) { in rtc_rollover()
155 save.tm_min = 0; in rtc_rollover()
156 if (++save.tm_hour >= 24) { in rtc_rollover()
157 save.tm_hour = 0; in rtc_rollover()
158 mday[1] = (save.tm_year % 4) ? 28 : 29; in rtc_rollover()
159 if (++save.tm_mday >= mday[save.tm_mon]) { in rtc_rollover()
160 save.tm_mday = 1; in rtc_rollover()
161 if (++save.tm_mon >= 12) { in rtc_rollover()
162 save.tm_mon = 0; in rtc_rollover()
163 ++save.tm_year; in rtc_rollover()
172 ASSERT_LE(0, set_hwtime(&save)); in rtc_rollover()
177 ASSERT_EQ(save.tm_sec, roll.tm_sec); in rtc_rollover()
178 ASSERT_EQ(save.tm_min, roll.tm_min); in rtc_rollover()
179 ASSERT_EQ(save.tm_hour, roll.tm_hour); in rtc_rollover()
180 ASSERT_EQ(save.tm_mday, roll.tm_mday); in rtc_rollover()
181 ASSERT_EQ(save.tm_mon, roll.tm_mon); in rtc_rollover()
182 ASSERT_EQ(save.tm_year, roll.tm_year); in rtc_rollover()