Lines Matching +full:start +full:- +full:year
1 // SPDX-License-Identifier: GPL-2.0
16 #include <asm/intel-mid.h>
23 * CMOS/RTC registers. See include/asm-i386/mc146818rtc.h for details.
44 unsigned long long nowtime = now->tv_sec; in mach_set_rtc_mmss()
58 retval = -EINVAL; in mach_set_rtc_mmss()
65 unsigned int status, year, mon, day, hour, min, sec, century = 0; in mach_get_cmos_time() local
73 now->tv_sec = now->tv_nsec = 0; in mach_get_cmos_time()
82 * is the reliable way to read RTC - registers. If UIP is set in mach_get_cmos_time()
93 year = CMOS_READ(RTC_YEAR); in mach_get_cmos_time()
112 year = bcd2bin(year); in mach_get_cmos_time()
117 year += century * 100; in mach_get_cmos_time()
119 year += CMOS_YEARS_OFFS; in mach_get_cmos_time()
121 now->tv_sec = mktime64(year, mon, day, hour, min, sec); in mach_get_cmos_time()
122 now->tv_nsec = 0; in mach_get_cmos_time()
162 .start = RTC_PORT(0),
167 .start = RTC_IRQ,
175 .id = -1,
190 for (id = dev->id; id; id = id->next) { in add_rtc_cmos()
199 return -ENODEV; in add_rtc_cmos()