Lines Matching refs:rtc_tm
98 struct rtc_time rtc_tm; in main() local
193 retval = ioctl(fd, RTC_RD_TIME, &rtc_tm); in main()
200 rtc_tm.tm_mday, rtc_tm.tm_mon + 1, rtc_tm.tm_year + 1900, in main()
201 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main()
204 rtc_tm.tm_sec += 5; in main()
205 if (rtc_tm.tm_sec >= 60) { in main()
206 rtc_tm.tm_sec %= 60; in main()
207 rtc_tm.tm_min++; in main()
209 if (rtc_tm.tm_min == 60) { in main()
210 rtc_tm.tm_min = 0; in main()
211 rtc_tm.tm_hour++; in main()
213 if (rtc_tm.tm_hour == 24) in main()
214 rtc_tm.tm_hour = 0; in main()
216 retval = ioctl(fd, RTC_ALM_SET, &rtc_tm); in main()
229 retval = ioctl(fd, RTC_ALM_READ, &rtc_tm); in main()
241 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main()