/arch/mips/include/asm/mach-rm/ |
D | mc146818rtc.h | 14 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument 16 #define mc146818_decode_year(year) ((year) + 1980) argument
|
/arch/alpha/kernel/ |
D | rtc.c | 50 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/ |
D | time.c | 90 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/ |
D | mc146818rtc.h | 46 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument
|
/arch/mips/include/asm/mach-generic/ |
D | mc146818rtc.h | 33 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument
|
/arch/mips/include/asm/mach-loongson64/ |
D | mc146818rtc.h | 33 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1970) argument
|
/arch/mips/include/asm/ |
D | mc146818-time.h | 91 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()
|
D | m48t37.h | 28 volatile u8 year; member
|
/arch/m32r/kernel/ |
D | time.c | 142 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/ |
D | intel_mid_vrtc.c | 64 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/ |
D | time.c | 109 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/ |
D | time.c | 131 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/ |
D | rtc.c | 64 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/ |
D | time.c | 23 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/ |
D | rtc_m41t81.c | 193 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()
|
D | rtc_xicor1241.c | 173 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/ |
D | rtc.c | 42 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/ |
D | mc146818rtc.h | 36 #define mc146818_decode_year(year) ((year) + 1980) argument
|
/arch/powerpc/platforms/maple/ |
D | time.c | 86 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/ |
D | intersil.c | 53 todintersil->year = t->tm_year - 68; in sun3_hwclk() 63 t->tm_year = todintersil->year + 68; in sun3_hwclk()
|
/arch/m68k/sun3x/ |
D | time.c | 55 h->year = bin2bcd(t->tm_year); in sun3x_hwclk() 65 t->tm_year = bcd2bin(h->year); in sun3x_hwclk()
|
D | time.h | 16 volatile unsigned char year; member
|
/arch/ia64/hp/sim/boot/ |
D | fw-emu.c | 78 # 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/ |
D | direct.c | 197 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/ |
D | intersil.h | 34 unsigned char year; member
|