Home
last modified time | relevance | path

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

/arch/h8300/kernel/
Dtime.c44 unsigned int year, mon, day, hour, min, sec; in read_persistent_clock() local
50 mon = day = 1; in read_persistent_clock()
53 h8300_gettod (&year, &mon, &day, &hour, &min, &sec); in read_persistent_clock()
57 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
/arch/frv/kernel/
Dtime.c91 unsigned int year, mon, day, hour, min, sec; in read_persistent_clock() local
93 extern void arch_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec); in read_persistent_clock()
99 mon = day = 1; in read_persistent_clock()
101 arch_gettod (&year, &mon, &day, &hour, &min, &sec); in read_persistent_clock()
105 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
Dsetup.c1122 void arch_gettod(int *year, int *mon, int *day, int *hour, in arch_gettod() argument
1125 *year = *mon = *day = *hour = *min = *sec = 0; in arch_gettod()
/arch/m68k/bvme6000/
Drtc.c73 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local
85 mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ in rtc_ioctl()
93 if ((mon > 12) || (mon < 1) || (day == 0)) in rtc_ioctl()
96 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl()
116 rtc->bcd_mth = bin2bcd(mon); in rtc_ioctl()
/arch/mips/include/asm/
Dmc146818-time.h91 unsigned int year, mon, day, hour, min, sec; in mc146818_get_cmos_time() local
101 mon = CMOS_READ(RTC_MONTH); in mc146818_get_cmos_time()
110 mon = bcd2bin(mon); in mc146818_get_cmos_time()
116 return mktime(year, mon, day, hour, min, sec); in mc146818_get_cmos_time()
/arch/cris/kernel/
Dtime.c103 unsigned int year, mon, day, hour, min, sec; in get_cmos_time() local
111 mon = CMOS_READ(RTC_MONTH); in get_cmos_time()
118 mon = bcd2bin(mon); in get_cmos_time()
124 return mktime(year, mon, day, hour, min, sec); in get_cmos_time()
/arch/m68k/mvme16x/
Drtc.c68 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local
80 mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ in rtc_ioctl()
88 if ((mon > 12) || (day == 0)) in rtc_ioctl()
91 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl()
107 rtc->bcd_mth = bin2bcd(mon); in rtc_ioctl()
/arch/sh/boards/mach-sh03/
Drtc.c42 unsigned int year, mon, day, hour, min, sec; in get_cmos_time() local
51 mon = (__raw_readb(RTC_MON1) & 0xf) + (__raw_readb(RTC_MON10) & 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/dec/
Dtime.c23 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock() local
33 mon = CMOS_READ(RTC_MONTH); in read_persistent_clock()
50 mon = bcd2bin(mon); in read_persistent_clock()
56 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
/arch/powerpc/platforms/chrp/
Dtime.c131 unsigned int year, mon, day, hour, min, sec; in chrp_get_rtc_time() local
138 mon = chrp_cmos_clock_read(RTC_MONTH); in chrp_get_rtc_time()
147 mon = bcd2bin(mon); in chrp_get_rtc_time()
156 tm->tm_mon = mon; in chrp_get_rtc_time()
/arch/x86/platform/mrst/
Dvrtc.c61 u8 sec, min, hour, mday, mon; in vrtc_get_time() local
74 mon = vrtc_cmos_read(RTC_MONTH); in vrtc_get_time()
83 "mon: %d year: %d\n", sec, min, hour, mday, mon, year); in vrtc_get_time()
85 return mktime(year, mon, mday, hour, min, sec); in vrtc_get_time()
/arch/powerpc/platforms/maple/
Dtime.c86 int sec, min, hour, mon, mday, year; in maple_set_rtc_time() local
101 mon = tm->tm_mon; in maple_set_rtc_time()
109 mon = bin2bcd(mon); in maple_set_rtc_time()
116 maple_clock_write(mon, RTC_MONTH); in maple_set_rtc_time()
/arch/m32r/kernel/
Dtime.c143 unsigned int epoch, year, mon, day, hour, min, sec; in read_persistent_clock() local
145 sec = min = hour = day = mon = year = 0; in read_persistent_clock()
149 mon = 4; in read_persistent_clock()
161 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
/arch/m68k/atari/
Dtime.c169 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; in atari_tt_hwclk() local
184 mon = t->tm_mon + 1; in atari_tt_hwclk()
203 mon = bin2bcd(mon); in atari_tt_hwclk()
236 mon = RTC_READ( RTC_MONTH ); in atari_tt_hwclk()
245 RTC_WRITE( RTC_MONTH, mon ); in atari_tt_hwclk()
265 mon = bcd2bin(mon); in atari_tt_hwclk()
281 t->tm_mon = mon - 1; in atari_tt_hwclk()
/arch/cris/arch-v10/drivers/
Dds1302.c261 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local
271 mon = rtc_tm.tm_mon + 1; /* tm_mon starts at zero */ in rtc_ioctl()
283 if ((mon > 12) || (day == 0)) in rtc_ioctl()
286 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl()
301 mon = bin2bcd(mon); in rtc_ioctl()
306 CMOS_WRITE(mon, RTC_MONTH); in rtc_ioctl()
/arch/x86/kernel/
Drtc.c108 unsigned int status, year, mon, day, hour, min, sec, century = 0; in mach_get_cmos_time() local
126 mon = CMOS_READ(RTC_MONTH); in mach_get_cmos_time()
145 mon = bcd2bin(mon); in mach_get_cmos_time()
156 return mktime(year, mon, day, hour, min, sec); in mach_get_cmos_time()
/arch/mips/sibyte/swarm/
Drtc_xicor1241.c173 unsigned int year, mon, day, hour, min, sec, y2k; in xicor_get_time() local
189 mon = xicor_read(X1241REG_MO); in xicor_get_time()
198 mon = bcd2bin(mon); in xicor_get_time()
204 return mktime(year, mon, day, hour, min, sec); in xicor_get_time()
Drtc_m41t81.c193 unsigned int year, mon, day, hour, min, sec; in m41t81_get_time() local
208 mon = m41t81_read(M41T81REG_MO); in m41t81_get_time()
216 mon = bcd2bin(mon); in m41t81_get_time()
221 return mktime(year, mon, day, hour, min, sec); in m41t81_get_time()
/arch/h8300/include/asm/
Dtarget_time.h3 extern void platform_gettod(unsigned int *year, unsigned int *mon, unsigned int *day,
Dtimer.h6 void h8300_gettod(unsigned int *year, unsigned int *mon, unsigned int *day,
/arch/alpha/kernel/
Dtime.c120 unsigned int year, mon, day, hour, min, sec, epoch; in read_persistent_clock() local
126 mon = CMOS_READ(RTC_MONTH); in read_persistent_clock()
134 mon = bcd2bin(mon); in read_persistent_clock()
154 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
/arch/powerpc/boot/dts/fsl/
Dqoriq-sec4.2-0.dtsi106 compatible = "fsl,sec-v4.2-mon", "fsl,sec-v4.0-mon";
Dqoriq-sec4.1-0.dtsi106 compatible = "fsl,sec-v4.1-mon", "fsl,sec-v4.0-mon";
Dqoriq-sec4.0-0.dtsi97 compatible = "fsl,sec-v4.0-mon";
/arch/powerpc/kernel/
Drtas-proc.c402 unsigned int year, mon, day, hour, min, sec; in ppc_rtas_clock_show() local
403 year = ret[0]; mon = ret[1]; day = ret[2]; in ppc_rtas_clock_show()
406 mktime(year, mon, day, hour, min, sec)); in ppc_rtas_clock_show()