Home
last modified time | relevance | path

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

12

/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/alpha/kernel/
Drtc.c50 int epoch, year, ctrl; in init_rtc_epoch() local
59 year = CMOS_READ(RTC_YEAR); in init_rtc_epoch()
61 year = bcd2bin(year); in init_rtc_epoch()
65 if (year < 20) { in init_rtc_epoch()
67 } else if (year >= 20 && year < 48) { in init_rtc_epoch()
70 } else if (year >= 48 && year < 70) { in init_rtc_epoch()
76 printk(KERN_INFO "Using epoch %d for rtc year %d\n", epoch, year); in init_rtc_epoch()
88 int year = tm->tm_year; in alpha_rtc_read_time() local
90 if (year >= 100) in alpha_rtc_read_time()
91 year -= 100; in alpha_rtc_read_time()
[all …]
/arch/frv/kernel/
Dtime.c90 unsigned int year, mon, day, hour, min, sec; in read_persistent_clock() local
92 extern void arch_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec); in read_persistent_clock()
97 year = 1980; in read_persistent_clock()
100 arch_gettod (&year, &mon, &day, &hour, &min, &sec); in read_persistent_clock()
102 if ((year += 1900) < 1970) in read_persistent_clock()
103 year += 100; in read_persistent_clock()
104 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
/arch/mips/include/asm/mach-malta/
Dmc146818rtc.h46 #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/mach-loongson64/
Dmc146818rtc.h33 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1970) 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 mktime(year, mon, day, hour, min, sec); in mc146818_get_cmos_time()
Dm48t37.h28 volatile u8 year; member
/arch/m32r/kernel/
Dtime.c142 unsigned int epoch, year, mon, day, hour, min, sec; in read_persistent_clock() local
144 sec = min = hour = day = mon = year = 0; in read_persistent_clock()
147 year = 23; in read_persistent_clock()
154 if (year > 10 && year < 44) in read_persistent_clock()
156 else if (year < 96) in read_persistent_clock()
158 year += epoch; in read_persistent_clock()
160 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
/arch/x86/platform/intel-mid/
Dintel_mid_vrtc.c64 u32 year; in vrtc_get_time() local
76 year = vrtc_cmos_read(RTC_YEAR); in vrtc_get_time()
81 year += 1972; in vrtc_get_time()
84 "mon: %d year: %d\n", sec, min, hour, mday, mon, year); in vrtc_get_time()
86 now->tv_sec = mktime(year, mon, mday, hour, min, sec); in vrtc_get_time()
94 int year; in vrtc_set_mmss() local
103 year = tm.tm_year - 72; in vrtc_set_mmss()
105 vrtc_cmos_write(year, RTC_YEAR); in vrtc_set_mmss()
/arch/m68k/atari/
Dtime.c109 int hour, year; in atari_mste_hwclk() local
137 year = t->tm_year - 80; in atari_mste_hwclk()
138 val.year_ones = year % 10; in atari_mste_hwclk()
139 val.year_tens = year / 10; in atari_mste_hwclk()
143 val.year_ones = (year % 4); /* leap year register */ in atari_mste_hwclk()
168 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; in atari_tt_hwclk() local
184 year = t->tm_year - atari_rtc_year_offset; in atari_tt_hwclk()
203 year = bin2bcd(year); in atari_tt_hwclk()
236 year = RTC_READ( RTC_YEAR ); in atari_tt_hwclk()
245 RTC_WRITE( RTC_YEAR, year ); in atari_tt_hwclk()
[all …]
/arch/powerpc/platforms/chrp/
Dtime.c131 unsigned int year, mon, day, hour, min, sec; in chrp_get_rtc_time() local
139 year = chrp_cmos_clock_read(RTC_YEAR); in chrp_get_rtc_time()
148 year = bcd2bin(year); in chrp_get_rtc_time()
150 if (year < 70) in chrp_get_rtc_time()
151 year += 100; in chrp_get_rtc_time()
157 tm->tm_year = year; in chrp_get_rtc_time()
/arch/x86/kernel/
Drtc.c64 unsigned int status, year, mon, day, hour, min, sec, century = 0; in mach_get_cmos_time() local
83 year = CMOS_READ(RTC_YEAR); in mach_get_cmos_time()
102 year = bcd2bin(year); in mach_get_cmos_time()
107 year += century * 100; in mach_get_cmos_time()
109 year += CMOS_YEARS_OFFS; in mach_get_cmos_time()
111 now->tv_sec = mktime(year, mon, day, hour, min, sec); in mach_get_cmos_time()
/arch/mips/dec/
Dtime.c23 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock() local
34 year = CMOS_READ(RTC_YEAR); in read_persistent_clock()
51 year = bcd2bin(year); in read_persistent_clock()
54 year += real_year - 72 + 2000; in read_persistent_clock()
56 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
/arch/mips/sibyte/swarm/
Drtc_m41t81.c193 unsigned int year, mon, day, hour, min, sec; in m41t81_get_time() local
209 year = m41t81_read(M41T81REG_YR); in m41t81_get_time()
217 year = bcd2bin(year); in m41t81_get_time()
219 year += 2000; in m41t81_get_time()
221 return mktime(year, mon, day, hour, min, sec); in m41t81_get_time()
Drtc_xicor1241.c173 unsigned int year, mon, day, hour, min, sec, y2k; in xicor_get_time() local
190 year = xicor_read(X1241REG_YR); in xicor_get_time()
199 year = bcd2bin(year); in xicor_get_time()
202 year += (y2k * 100); in xicor_get_time()
204 return mktime(year, mon, day, hour, min, sec); in xicor_get_time()
/arch/sh/boards/mach-sh03/
Drtc.c42 unsigned int year, mon, day, hour, min, sec; in get_cmos_time() local
52 year = (__raw_readb(RTC_YEA1) & 0xf) + (__raw_readb(RTC_YEA10) & 0xf) * 10 in get_cmos_time()
56 if (year == 0 || mon < 1 || mon > 12 || day > 31 || day < 1 || in get_cmos_time()
61 year, mon, day, hour, min, sec); in get_cmos_time()
77 return mktime(year, mon, day, hour, min, sec); in get_cmos_time()
/arch/mips/include/asm/mach-jazz/
Dmc146818rtc.h36 #define mc146818_decode_year(year) ((year) + 1980) argument
/arch/powerpc/platforms/maple/
Dtime.c86 int sec, min, hour, mon, mday, year; in maple_set_rtc_time() local
103 year = tm->tm_year; in maple_set_rtc_time()
111 year = bin2bcd(year); in maple_set_rtc_time()
118 maple_clock_write(year, RTC_YEAR); in maple_set_rtc_time()
/arch/m68k/sun3/
Dintersil.c53 todintersil->year = t->tm_year - 68; in sun3_hwclk()
63 t->tm_year = todintersil->year + 68; in sun3_hwclk()
/arch/m68k/sun3x/
Dtime.c55 h->year = bin2bcd(t->tm_year); in sun3x_hwclk()
65 t->tm_year = bcd2bin(h->year); in sun3x_hwclk()
Dtime.h16 volatile unsigned char year; member
/arch/ia64/hp/sim/boot/
Dfw-emu.c78 # define __isleap(year) \ in offtime() argument
79 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) in offtime()
90 tp->year = y; in offtime()
/arch/x86/pci/
Ddirect.c197 int year, devfn; in pci_sanity_check() local
203 dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL); in pci_sanity_check()
204 if (year >= 2001) in pci_sanity_check()
/arch/m68k/include/asm/
Dintersil.h34 unsigned char year; member

12