Lines Matching refs:rtc_tm
61 struct rtc_time rtc_tm; in read_alarm_test() local
70 ret = ioctl(rtc_fd, RTC_RD_TIME, &rtc_tm); in read_alarm_test()
79 rtc_tm.tm_mday, rtc_tm.tm_mon + 1, rtc_tm.tm_year + 1900, in read_alarm_test()
80 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in read_alarm_test()
85 rtc_tm.tm_sec += 5; in read_alarm_test()
86 if (rtc_tm.tm_sec >= 60) { in read_alarm_test()
87 rtc_tm.tm_sec %= 60; in read_alarm_test()
88 rtc_tm.tm_min++; in read_alarm_test()
91 if (rtc_tm.tm_min == 60) { in read_alarm_test()
92 rtc_tm.tm_min = 0; in read_alarm_test()
93 rtc_tm.tm_hour++; in read_alarm_test()
96 if (rtc_tm.tm_hour == 24) in read_alarm_test()
97 rtc_tm.tm_hour = 0; in read_alarm_test()
99 ret = ioctl(rtc_fd, RTC_ALM_SET, &rtc_tm); in read_alarm_test()
109 ret = ioctl(rtc_fd, RTC_ALM_READ, &rtc_tm); in read_alarm_test()
119 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in read_alarm_test()