Home
last modified time | relevance | path

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

/third_party/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 …]
/third_party/ltp/include/
Dtst_rtctime.h13 struct rtc_time *rtc_tm);
15 static inline int tst_rtc_gettime(const char *rtc_dev, struct rtc_time *rtc_tm) in tst_rtc_gettime() argument
17 return tst_rtc_ioctl(rtc_dev, RTC_RD_TIME, rtc_tm); in tst_rtc_gettime()
20 static inline int tst_rtc_settime(const char *rtc_dev, struct rtc_time *rtc_tm) in tst_rtc_settime() argument
22 return tst_rtc_ioctl(rtc_dev, RTC_SET_TIME, rtc_tm); in tst_rtc_settime()
/third_party/ltp/lib/
Dtst_rtctime.c111 struct rtc_time *rtc_tm) in tst_rtc_ioctl() argument
118 ret = ioctl(rtc_fd, request, rtc_tm); in tst_rtc_ioctl()