Lines Matching refs:tm
28 static int read_rtc_time(struct device *dev, struct rtc_time *tm) in read_rtc_time() argument
32 tm->tm_sec = hvtm.tm_sec; in read_rtc_time()
33 tm->tm_min = hvtm.tm_min; in read_rtc_time()
34 tm->tm_hour = hvtm.tm_hour; in read_rtc_time()
35 tm->tm_mday = hvtm.tm_mday; in read_rtc_time()
36 tm->tm_mon = hvtm.tm_mon; in read_rtc_time()
37 tm->tm_year = hvtm.tm_year; in read_rtc_time()
38 tm->tm_wday = 0; in read_rtc_time()
39 tm->tm_yday = 0; in read_rtc_time()
40 tm->tm_isdst = 0; in read_rtc_time()
42 if (rtc_valid_tm(tm) < 0) in read_rtc_time()
52 static int set_rtc_time(struct device *dev, struct rtc_time *tm) in set_rtc_time() argument
56 hvtm.tm_sec = tm->tm_sec; in set_rtc_time()
57 hvtm.tm_min = tm->tm_min; in set_rtc_time()
58 hvtm.tm_hour = tm->tm_hour; in set_rtc_time()
59 hvtm.tm_mday = tm->tm_mday; in set_rtc_time()
60 hvtm.tm_mon = tm->tm_mon; in set_rtc_time()
61 hvtm.tm_year = tm->tm_year; in set_rtc_time()