Lines Matching refs:time
45 static inline unsigned int __get_rtc_time(struct rtc_time *time) in __get_rtc_time() argument
73 time->tm_sec = CMOS_READ(RTC_SECONDS); in __get_rtc_time()
74 time->tm_min = CMOS_READ(RTC_MINUTES); in __get_rtc_time()
75 time->tm_hour = CMOS_READ(RTC_HOURS); in __get_rtc_time()
76 time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in __get_rtc_time()
77 time->tm_mon = CMOS_READ(RTC_MONTH); in __get_rtc_time()
78 time->tm_year = CMOS_READ(RTC_YEAR); in __get_rtc_time()
87 time->tm_sec = bcd2bin(time->tm_sec); in __get_rtc_time()
88 time->tm_min = bcd2bin(time->tm_min); in __get_rtc_time()
89 time->tm_hour = bcd2bin(time->tm_hour); in __get_rtc_time()
90 time->tm_mday = bcd2bin(time->tm_mday); in __get_rtc_time()
91 time->tm_mon = bcd2bin(time->tm_mon); in __get_rtc_time()
92 time->tm_year = bcd2bin(time->tm_year); in __get_rtc_time()
96 time->tm_year += real_year - 72; in __get_rtc_time()
103 if (time->tm_year <= 69) in __get_rtc_time()
104 time->tm_year += 100; in __get_rtc_time()
106 time->tm_mon--; in __get_rtc_time()
116 static inline int __set_rtc_time(struct rtc_time *time) in __set_rtc_time() argument
126 yrs = time->tm_year; in __set_rtc_time()
127 mon = time->tm_mon + 1; /* tm_mon starts at zero */ in __set_rtc_time()
128 day = time->tm_mday; in __set_rtc_time()
129 hrs = time->tm_hour; in __set_rtc_time()
130 min = time->tm_min; in __set_rtc_time()
131 sec = time->tm_sec; in __set_rtc_time()