Lines Matching +full:start +full:- +full:year
1 // SPDX-License-Identifier: GPL-2.0-or-later
54 tm->tm_sec = maple_clock_read(RTC_SECONDS); in maple_get_rtc_time()
55 tm->tm_min = maple_clock_read(RTC_MINUTES); in maple_get_rtc_time()
56 tm->tm_hour = maple_clock_read(RTC_HOURS); in maple_get_rtc_time()
57 tm->tm_mday = maple_clock_read(RTC_DAY_OF_MONTH); in maple_get_rtc_time()
58 tm->tm_mon = maple_clock_read(RTC_MONTH); in maple_get_rtc_time()
59 tm->tm_year = maple_clock_read(RTC_YEAR); in maple_get_rtc_time()
60 } while (tm->tm_sec != maple_clock_read(RTC_SECONDS)); in maple_get_rtc_time()
64 tm->tm_sec = bcd2bin(tm->tm_sec); in maple_get_rtc_time()
65 tm->tm_min = bcd2bin(tm->tm_min); in maple_get_rtc_time()
66 tm->tm_hour = bcd2bin(tm->tm_hour); in maple_get_rtc_time()
67 tm->tm_mday = bcd2bin(tm->tm_mday); in maple_get_rtc_time()
68 tm->tm_mon = bcd2bin(tm->tm_mon); in maple_get_rtc_time()
69 tm->tm_year = bcd2bin(tm->tm_year); in maple_get_rtc_time()
71 if ((tm->tm_year + 1900) < 1970) in maple_get_rtc_time()
72 tm->tm_year += 100; in maple_get_rtc_time()
74 tm->tm_wday = -1; in maple_get_rtc_time()
80 int sec, min, hour, mon, mday, year; in maple_set_rtc_time() local
92 sec = tm->tm_sec; in maple_set_rtc_time()
93 min = tm->tm_min; in maple_set_rtc_time()
94 hour = tm->tm_hour; in maple_set_rtc_time()
95 mon = tm->tm_mon; in maple_set_rtc_time()
96 mday = tm->tm_mday; in maple_set_rtc_time()
97 year = tm->tm_year; in maple_set_rtc_time()
105 year = bin2bcd(year); in maple_set_rtc_time()
112 maple_clock_write(year, RTC_YEAR); in maple_set_rtc_time()
119 * sheets anyway ... -- Markus Kuhn in maple_set_rtc_time()
151 maple_rtc_addr = r.start; in maple_get_boot_time()
162 rtc_iores.start = maple_rtc_addr; in maple_get_boot_time()