Lines Matching refs:rtc_tm

205 get_rtc_time(struct rtc_time *rtc_tm)   in get_rtc_time()  argument
211 rtc_tm->tm_sec = CMOS_READ(RTC_SECONDS); in get_rtc_time()
212 rtc_tm->tm_min = CMOS_READ(RTC_MINUTES); in get_rtc_time()
213 rtc_tm->tm_hour = CMOS_READ(RTC_HOURS); in get_rtc_time()
214 rtc_tm->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in get_rtc_time()
215 rtc_tm->tm_mon = CMOS_READ(RTC_MONTH); in get_rtc_time()
216 rtc_tm->tm_year = CMOS_READ(RTC_YEAR); in get_rtc_time()
220 rtc_tm->tm_sec = bcd2bin(rtc_tm->tm_sec); in get_rtc_time()
221 rtc_tm->tm_min = bcd2bin(rtc_tm->tm_min); in get_rtc_time()
222 rtc_tm->tm_hour = bcd2bin(rtc_tm->tm_hour); in get_rtc_time()
223 rtc_tm->tm_mday = bcd2bin(rtc_tm->tm_mday); in get_rtc_time()
224 rtc_tm->tm_mon = bcd2bin(rtc_tm->tm_mon); in get_rtc_time()
225 rtc_tm->tm_year = bcd2bin(rtc_tm->tm_year); in get_rtc_time()
232 if (rtc_tm->tm_year <= 69) in get_rtc_time()
233 rtc_tm->tm_year += 100; in get_rtc_time()
235 rtc_tm->tm_mon--; in get_rtc_time()
250 struct rtc_time rtc_tm; in rtc_ioctl() local
252 memset(&rtc_tm, 0, sizeof (struct rtc_time)); in rtc_ioctl()
253 get_rtc_time(&rtc_tm); in rtc_ioctl()
254 if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time))) in rtc_ioctl()
261 struct rtc_time rtc_tm; in rtc_ioctl() local
268 if (copy_from_user(&rtc_tm, (struct rtc_time*)arg, sizeof(struct rtc_time))) in rtc_ioctl()
271 yrs = rtc_tm.tm_year + 1900; in rtc_ioctl()
272 mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ in rtc_ioctl()
273 day = rtc_tm.tm_mday; in rtc_ioctl()
274 hrs = rtc_tm.tm_hour; in rtc_ioctl()
275 min = rtc_tm.tm_min; in rtc_ioctl()
276 sec = rtc_tm.tm_sec; in rtc_ioctl()