Lines Matching refs:tm
29 static int hwtime(int flag, int request, struct rtc_time *tm) { in hwtime() argument
61 ret = TEMP_FAILURE_RETRY(ioctl(fd.get(), request, tm)); in hwtime()
74 static int rd_hwtime(struct rtc_time *tm) { in rd_hwtime() argument
75 return hwtime(O_RDONLY, RTC_RD_TIME, tm); in rd_hwtime()
78 static int set_hwtime(struct rtc_time *tm) { in set_hwtime() argument
79 return hwtime(O_WRONLY, RTC_SET_TIME, tm); in set_hwtime()
124 struct rtc_time tm = roll; in rtc_rollover() local
125 int __set_hwtime = set_hwtime(&tm); in rtc_rollover()
136 ASSERT_LE(0, rd_hwtime(&tm)); in rtc_rollover()
137 ASSERT_EQ(roll.tm_sec, tm.tm_sec); in rtc_rollover()
138 ASSERT_EQ(roll.tm_min, tm.tm_min); in rtc_rollover()
139 ASSERT_EQ(roll.tm_hour, tm.tm_hour); in rtc_rollover()
140 ASSERT_EQ(roll.tm_mday, tm.tm_mday); in rtc_rollover()
141 ASSERT_EQ(roll.tm_mon, tm.tm_mon); in rtc_rollover()
142 ASSERT_EQ(roll.tm_year, tm.tm_year); in rtc_rollover()
143 for (timeout = timeout_num; timeout && (roll.tm_year == tm.tm_year); --timeout) { in rtc_rollover()
144 ASSERT_LE(0, rd_hwtime(&tm)); in rtc_rollover()
147 ASSERT_EQ(roll.tm_year + 1, tm.tm_year); in rtc_rollover()