Home
last modified time | relevance | path

Searched refs:year (Results 1 – 25 of 28) sorted by relevance

12

/arch/alpha/kernel/
Drtc.c51 int epoch, year, ctrl; in init_rtc_epoch() local
60 year = CMOS_READ(RTC_YEAR); in init_rtc_epoch()
62 year = bcd2bin(year); in init_rtc_epoch()
66 if (year < 20) { in init_rtc_epoch()
68 } else if (year >= 20 && year < 48) { in init_rtc_epoch()
71 } else if (year >= 48 && year < 70) { in init_rtc_epoch()
77 printk(KERN_INFO "Using epoch %d for rtc year %d\n", epoch, year); in init_rtc_epoch()
94 int year = tm->tm_year; in alpha_rtc_read_time() local
96 if (year >= 100) in alpha_rtc_read_time()
97 year -= 100; in alpha_rtc_read_time()
[all …]
/arch/mips/include/asm/mach-rm/
Dmc146818rtc.h14 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument
16 #define mc146818_decode_year(year) ((year) + 1980) argument
/arch/mips/include/asm/mach-malta/
Dmc146818rtc.h34 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument
/arch/mips/include/asm/mach-generic/
Dmc146818rtc.h33 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument
/arch/mips/include/asm/
Dmc146818-time.h91 unsigned int year, mon, day, hour, min, sec; in mc146818_get_cmos_time() local
102 year = CMOS_READ(RTC_YEAR); in mc146818_get_cmos_time()
111 year = bcd2bin(year); in mc146818_get_cmos_time()
114 year = mc146818_decode_year(year); in mc146818_get_cmos_time()
116 return mktime64(year, mon, day, hour, min, sec); in mc146818_get_cmos_time()
/arch/x86/platform/intel-mid/
Dintel_mid_vrtc.c60 u32 year; in vrtc_get_time() local
72 year = vrtc_cmos_read(RTC_YEAR); in vrtc_get_time()
77 year += 1972; in vrtc_get_time()
80 "mon: %d year: %d\n", sec, min, hour, mday, mon, year); in vrtc_get_time()
82 now->tv_sec = mktime64(year, mon, mday, hour, min, sec); in vrtc_get_time()
90 int year; in vrtc_set_mmss() local
99 year = tm.tm_year - 72; in vrtc_set_mmss()
101 vrtc_cmos_write(year, RTC_YEAR); in vrtc_set_mmss()
/arch/m68k/atari/
Dtime.c141 int hour, year; in atari_mste_hwclk() local
169 year = t->tm_year - 80; in atari_mste_hwclk()
170 val.year_ones = year % 10; in atari_mste_hwclk()
171 val.year_tens = year / 10; in atari_mste_hwclk()
175 val.year_ones = (year % 4); /* leap year register */ in atari_mste_hwclk()
200 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; in atari_tt_hwclk() local
216 year = t->tm_year - atari_rtc_year_offset; in atari_tt_hwclk()
235 year = bin2bcd(year); in atari_tt_hwclk()
268 year = RTC_READ( RTC_YEAR ); in atari_tt_hwclk()
277 RTC_WRITE( RTC_YEAR, year ); in atari_tt_hwclk()
[all …]
/arch/powerpc/platforms/chrp/
Dtime.c134 unsigned int year, mon, day, hour, min, sec; in chrp_get_rtc_time() local
142 year = chrp_cmos_clock_read(RTC_YEAR); in chrp_get_rtc_time()
151 year = bcd2bin(year); in chrp_get_rtc_time()
153 if (year < 70) in chrp_get_rtc_time()
154 year += 100; in chrp_get_rtc_time()
160 tm->tm_year = year; in chrp_get_rtc_time()
/arch/x86/kernel/
Drtc.c65 unsigned int status, year, mon, day, hour, min, sec, century = 0; in mach_get_cmos_time() local
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()
/arch/mips/dec/
Dtime.c24 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock64() local
35 year = CMOS_READ(RTC_YEAR); in read_persistent_clock64()
52 year = bcd2bin(year); in read_persistent_clock64()
55 year += real_year - 72 + 2000; in read_persistent_clock64()
57 ts->tv_sec = mktime64(year, mon, day, hour, min, sec); in read_persistent_clock64()
/arch/mips/sibyte/swarm/
Drtc_xicor1241.c169 unsigned int year, mon, day, hour, min, sec, y2k; in xicor_get_time() local
186 year = xicor_read(X1241REG_YR); in xicor_get_time()
195 year = bcd2bin(year); in xicor_get_time()
198 year += (y2k * 100); in xicor_get_time()
200 return mktime64(year, mon, day, hour, min, sec); in xicor_get_time()
Drtc_m41t81.c188 unsigned int year, mon, day, hour, min, sec; in m41t81_get_time() local
204 year = m41t81_read(M41T81REG_YR); in m41t81_get_time()
212 year = bcd2bin(year); in m41t81_get_time()
214 year += 2000; in m41t81_get_time()
216 return mktime64(year, mon, day, hour, min, sec); in m41t81_get_time()
/arch/powerpc/platforms/maple/
Dtime.c80 int sec, min, hour, mon, mday, year; in maple_set_rtc_time() local
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()
/arch/sh/boards/mach-sh03/
Drtc.c44 unsigned int year, mon, day, hour, min, sec; in sh03_rtc_gettimeofday() local
54 year = (__raw_readb(RTC_YEA1) & 0xf) + (__raw_readb(RTC_YEA10) & 0xf) * 10 in sh03_rtc_gettimeofday()
58 if (year == 0 || mon < 1 || mon > 12 || day > 31 || day < 1 || in sh03_rtc_gettimeofday()
63 year, mon, day, hour, min, sec); in sh03_rtc_gettimeofday()
85 tm->tm_year = year - 1900; in sh03_rtc_gettimeofday()
/arch/mips/include/asm/mach-jazz/
Dmc146818rtc.h36 #define mc146818_decode_year(year) ((year) + 1980) argument
/arch/m68k/sun3/
Dintersil.c46 todintersil->year = (t->tm_year - 68) % 100; in sun3_hwclk()
56 t->tm_year = todintersil->year + 68; in sun3_hwclk()
/arch/m68k/sun3x/
Dtime.c56 h->year = bin2bcd(t->tm_year % 100); in sun3x_hwclk()
66 t->tm_year = bcd2bin(h->year); in sun3x_hwclk()
Dtime.h16 volatile unsigned char year; member
/arch/m68k/include/asm/
Dintersil.h35 unsigned char year; member
Dapollohw.h48 unsigned char month, year; member
/arch/m68k/mac/
Dmisc.c582 #define __isleap(year) \ in unmktime() argument
583 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) in unmktime()
/arch/x86/pci/
Dacpi.c143 int year = dmi_get_bios_year(); in pci_acpi_crs_quirks() local
145 if (year >= 0 && year < 2008 && iomem_resource.end <= 0xffffffff) in pci_acpi_crs_quirks()
/arch/m68k/apollo/
Dconfig.c215 t->tm_year=rtc->year; in dn_dummy_hwclk()
226 rtc->year = t->tm_year % 100; in dn_dummy_hwclk()
/arch/alpha/include/asm/
Derr_common.h76 u8 year; member
/arch/powerpc/kernel/
Drtas-proc.c377 unsigned int year, mon, day, hour, min, sec; in ppc_rtas_clock_show() local
378 year = ret[0]; mon = ret[1]; day = ret[2]; in ppc_rtas_clock_show()
381 mktime64(year, mon, day, hour, min, sec)); in ppc_rtas_clock_show()

12