Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/device-drivers/rtc/
Drtc02.c41 static int rtc_tm_cmp(struct rtc_time *set_tm, struct rtc_time *read_tm) in rtc_tm_cmp() argument
43 return !((set_tm->tm_sec == read_tm->tm_sec) in rtc_tm_cmp()
44 && (set_tm->tm_min == read_tm->tm_min) in rtc_tm_cmp()
45 && (set_tm->tm_hour == read_tm->tm_hour) in rtc_tm_cmp()
46 && (set_tm->tm_mday == read_tm->tm_mday) in rtc_tm_cmp()
47 && (set_tm->tm_mon == read_tm->tm_mon) in rtc_tm_cmp()
48 && (set_tm->tm_year == read_tm->tm_year)); in rtc_tm_cmp()
53 struct rtc_time read_tm; in set_rtc_test() local
75 ret = tst_rtc_gettime(rtc_dev, &read_tm); in set_rtc_test()
80 tst_res(TINFO, "read RTC date/time is: %s", rtctime_to_str(&read_tm)); in set_rtc_test()
[all …]