/arch/powerpc/platforms/maple/ |
D | time.c | 65 tm->tm_year = maple_clock_read(RTC_YEAR); in maple_get_rtc_time() 75 tm->tm_year = bcd2bin(tm->tm_year); in maple_get_rtc_time() 77 if ((tm->tm_year + 1900) < 1970) in maple_get_rtc_time() 78 tm->tm_year += 100; in maple_get_rtc_time() 103 year = tm->tm_year; in maple_set_rtc_time() 173 return mktime(tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday, in maple_get_boot_time()
|
/arch/m68k/hp300/ |
D | config.c | 216 t->tm_year = hp300_rtc_read(RTC_REG_YEAR1) * 10 + in hp300_hwclk() 218 if (t->tm_year <= 69) in hp300_hwclk() 219 t->tm_year += 100; in hp300_hwclk() 232 if (t->tm_year >= 100) in hp300_hwclk() 233 t->tm_year -= 100; in hp300_hwclk() 234 hp300_rtc_write(RTC_REG_YEAR1, t->tm_year / 10); in hp300_hwclk() 235 hp300_rtc_write(RTC_REG_YEAR2, t->tm_year % 10); in hp300_hwclk()
|
/arch/m68k/mvme16x/ |
D | rtc.c | 56 wtime.tm_year = bcd2bin(rtc->bcd_year); in rtc_ioctl() 57 if (wtime.tm_year < 70) in rtc_ioctl() 58 wtime.tm_year += 100; in rtc_ioctl() 77 yrs = rtc_tm.tm_year; in rtc_ioctl()
|
/arch/m68k/bvme6000/ |
D | config.c | 277 rtc->t0cr_rtmr = t->tm_year%4; in bvme6000_hwclk() 284 rtc->bcd_year = bin2bcd(t->tm_year%100); in bvme6000_hwclk() 287 rtc->t0cr_rtmr = t->tm_year%4 | 0x08; in bvme6000_hwclk() 297 t->tm_year = bcd2bin(rtc->bcd_year); in bvme6000_hwclk() 298 if (t->tm_year < 70) in bvme6000_hwclk() 299 t->tm_year += 100; in bvme6000_hwclk()
|
D | rtc.c | 60 wtime.tm_year = bcd2bin(rtc->bcd_year); in rtc_ioctl() 61 if (wtime.tm_year < 70) in rtc_ioctl() 62 wtime.tm_year += 100; in rtc_ioctl() 82 yrs = rtc_tm.tm_year; in rtc_ioctl()
|
/arch/powerpc/platforms/chrp/ |
D | time.c | 106 tm.tm_year = bin2bcd(tm.tm_year); in chrp_set_rtc_time() 113 chrp_cmos_clock_write(tm.tm_year,RTC_YEAR); in chrp_set_rtc_time() 157 tm->tm_year = year; in chrp_get_rtc_time()
|
/arch/m68k/kernel/ |
D | time.c | 82 if ((time.tm_year += 1900) < 1970) in read_persistent_clock() 83 time.tm_year += 100; in read_persistent_clock() 84 ts->tv_sec = mktime(time.tm_year, time.tm_mon, time.tm_mday, in read_persistent_clock()
|
/arch/mips/sibyte/swarm/ |
D | rtc_m41t81.c | 183 tm.tm_year %= 100; in m41t81_set_time() 184 tm.tm_year = bin2bcd(tm.tm_year); in m41t81_set_time() 185 m41t81_write(M41T81REG_YR, tm.tm_year); in m41t81_set_time()
|
D | rtc_xicor1241.c | 119 tm.tm_year += 1900; in xicor_set_time() 142 tmp = tm.tm_year / 100; in xicor_set_time() 143 tm.tm_year %= 100; in xicor_set_time() 144 xicor_write(X1241REG_YR, tm.tm_year); in xicor_set_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/q40/ |
D | config.c | 239 Q40_RTC_YEAR = bin2bcd(t->tm_year%100); in q40_hwclk() 248 t->tm_year = bcd2bin (Q40_RTC_YEAR); in q40_hwclk() 257 if (t->tm_year < 70) in q40_hwclk() 258 t->tm_year += 100; in q40_hwclk()
|
/arch/powerpc/platforms/powernv/ |
D | opal-rtc.c | 27 tm->tm_year = ((bcd2bin(y_m_d >> 24) * 100) + in opal_to_tm() 62 return mktime(tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, in opal_get_boot_time()
|
/arch/powerpc/kernel/ |
D | rtas-rtc.c | 83 rtc_tm->tm_year = ret[0] - 1900; in rtas_get_rtc_time() 94 tm->tm_year + 1900, tm->tm_mon + 1, in rtas_set_rtc_time()
|
/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()
|
/arch/alpha/kernel/ |
D | rtc.c | 88 int year = tm->tm_year; in alpha_rtc_read_time() 96 tm->tm_year = year; in alpha_rtc_read_time() 109 xtm.tm_year -= rtc_epoch - 1900; in alpha_rtc_set_time()
|
/arch/x86/platform/intel-mid/ |
D | intel_mid_vrtc.c | 98 if (!rtc_valid_tm(&tm) && tm.tm_year >= 72) { in vrtc_set_mmss() 103 year = tm.tm_year - 72; in vrtc_set_mmss()
|
/arch/m68k/atari/ |
D | time.c | 137 year = t->tm_year - 80; in atari_mste_hwclk() 160 t->tm_year = val.year_ones + val.year_tens * 10 + 80; in atari_mste_hwclk() 184 year = t->tm_year - atari_rtc_year_offset; in atari_tt_hwclk() 281 t->tm_year = year + atari_rtc_year_offset; in atari_tt_hwclk()
|
/arch/m32r/include/asm/ |
D | rtc.h | 52 int tm_year; member
|
/arch/powerpc/platforms/8xx/ |
D | m8xx_setup.c | 175 time = mktime(tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, in mpc8xx_set_rtc_time() 195 tm->tm_year -= 1900; in mpc8xx_get_rtc_time()
|
/arch/m68k/apollo/ |
D | config.c | 224 t->tm_year=rtc->year; in dn_dummy_hwclk() 233 rtc->year=t->tm_year; in dn_dummy_hwclk()
|
/arch/m68k/68000/ |
D | timers.c | 128 t->tm_year = t->tm_mon = t->tm_mday = 1; in m68328_hwclk()
|
/arch/powerpc/platforms/ps3/ |
D | time.c | 39 pr_debug("%s:%d tm_year %d\n", func, line, tm->tm_year); in _dump_tm()
|
/arch/m68k/mac/ |
D | misc.c | 718 &t->tm_year, &t->tm_mon, &t->tm_mday, in mac_hwclk() 722 t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, in mac_hwclk() 728 t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, in mac_hwclk() 732 now = mktime(t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, in mac_hwclk()
|
/arch/powerpc/platforms/powermac/ |
D | time.c | 90 tm->tm_year -= 1900; in to_rtc_time() 99 return mktime(tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, in from_rtc_time()
|
/arch/m68k/mvme147/ |
D | config.c | 155 t->tm_year = bcd2int (m147_rtc->bcd_year); in mvme147_hwclk()
|