Home
last modified time | relevance | path

Searched refs:rtc_tm (Results 1 – 4 of 4) sorted by relevance

/external/ltp/testcases/kernel/device-drivers/rtc/
Drtc01.c62 struct rtc_time rtc_tm; in read_alarm_test() local
71 ret = ioctl(rtc_fd, RTC_RD_TIME, &rtc_tm); in read_alarm_test()
80 rtc_tm.tm_mday, rtc_tm.tm_mon + 1, rtc_tm.tm_year + 1900, in read_alarm_test()
81 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in read_alarm_test()
86 rtc_tm.tm_sec += 5; in read_alarm_test()
87 if (rtc_tm.tm_sec >= 60) { in read_alarm_test()
88 rtc_tm.tm_sec %= 60; in read_alarm_test()
89 rtc_tm.tm_min++; in read_alarm_test()
92 if (rtc_tm.tm_min == 60) { in read_alarm_test()
93 rtc_tm.tm_min = 0; in read_alarm_test()
[all …]
/external/autotest/client/tests/rtc/src/
Drtctest.c38 struct rtc_time rtc_tm; in main() local
124 retval = ioctl(fd, RTC_RD_TIME, &rtc_tm); in main()
131 rtc_tm.tm_mday, rtc_tm.tm_mon + 1, rtc_tm.tm_year + 1900, in main()
132 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in main()
135 rtc_tm.tm_sec += 5; in main()
136 if (rtc_tm.tm_sec >= 60) { in main()
137 rtc_tm.tm_sec %= 60; in main()
138 rtc_tm.tm_min++; in main()
140 if (rtc_tm.tm_min == 60) { in main()
141 rtc_tm.tm_min = 0; in main()
[all …]
/external/linux-kselftest/tools/testing/selftests/timers/
Drtctest.c98 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()
[all …]
/external/linux-kselftest/tools/testing/selftests/rtc/
Drtctest.c41 struct rtc_time rtc_tm; in TEST_F() local
44 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm); in TEST_F()
48 rtc_tm.tm_mday, rtc_tm.tm_mon + 1, rtc_tm.tm_year + 1900, in TEST_F()
49 rtc_tm.tm_hour, rtc_tm.tm_min, rtc_tm.tm_sec); in TEST_F()