Home
last modified time | relevance | path

Searched refs:tm_year (Results 1 – 25 of 29) sorted by relevance

12

/arch/powerpc/platforms/maple/
Dtime.c65 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/
Dconfig.c216 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/
Drtc.c56 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/
Dconfig.c277 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()
Drtc.c60 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/
Dtime.c106 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/
Dtime.c82 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/
Drtc_m41t81.c183 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()
Drtc_xicor1241.c119 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/
Dintersil.c53 todintersil->year = t->tm_year - 68; in sun3_hwclk()
63 t->tm_year = todintersil->year + 68; in sun3_hwclk()
/arch/m68k/q40/
Dconfig.c239 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/
Dopal-rtc.c27 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/
Drtas-rtc.c83 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/
Dtime.c55 h->year = bin2bcd(t->tm_year); in sun3x_hwclk()
65 t->tm_year = bcd2bin(h->year); in sun3x_hwclk()
/arch/alpha/kernel/
Drtc.c88 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/
Dintel_mid_vrtc.c98 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/
Dtime.c137 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/
Drtc.h52 int tm_year; member
/arch/powerpc/platforms/8xx/
Dm8xx_setup.c175 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/
Dconfig.c224 t->tm_year=rtc->year; in dn_dummy_hwclk()
233 rtc->year=t->tm_year; in dn_dummy_hwclk()
/arch/m68k/68000/
Dtimers.c128 t->tm_year = t->tm_mon = t->tm_mday = 1; in m68328_hwclk()
/arch/powerpc/platforms/ps3/
Dtime.c39 pr_debug("%s:%d tm_year %d\n", func, line, tm->tm_year); in _dump_tm()
/arch/m68k/mac/
Dmisc.c718 &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/
Dtime.c90 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/
Dconfig.c155 t->tm_year = bcd2int (m147_rtc->bcd_year); in mvme147_hwclk()

12