Home
last modified time | relevance | path

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

12

/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()
98 mon = day = 1; in read_persistent_clock()
100 arch_gettod (&year, &mon, &day, &hour, &min, &sec); in read_persistent_clock()
104 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
Dsetup.c1121 void arch_gettod(int *year, int *mon, int *day, int *hour, in arch_gettod() argument
1124 *year = *mon = *day = *hour = *min = *sec = 0; in arch_gettod()
/arch/mips/include/asm/
Dmc146818-time.h91 unsigned int year, mon, day, hour, min, sec; in mc146818_get_cmos_time() local
100 day = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_cmos_time()
109 day = bcd2bin(day); in mc146818_get_cmos_time()
116 return mktime(year, mon, day, hour, min, sec); in mc146818_get_cmos_time()
Dm48t37.h25 volatile u8 day; member
/arch/sh/boards/mach-sh03/
Drtc.c42 unsigned int year, mon, day, hour, min, sec; in get_cmos_time() local
50 day = (__raw_readb(RTC_DAY1) & 0xf) + (__raw_readb(RTC_DAY10) & 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
32 day = CMOS_READ(RTC_DAY_OF_MONTH); in read_persistent_clock()
49 day = bcd2bin(day); in read_persistent_clock()
56 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
/arch/m68k/mvme16x/
Drtc.c68 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local
81 day = rtc_tm.tm_mday; 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()
106 rtc->bcd_dom = bin2bcd(day); in rtc_ioctl()
Dconfig.c303 p->rev&0xf, p->yr, p->mth, p->day); in config_mvme16x()
/arch/powerpc/platforms/chrp/
Dtime.c131 unsigned int year, mon, day, hour, min, sec; in chrp_get_rtc_time() local
137 day = chrp_cmos_clock_read(RTC_DAY_OF_MONTH); in chrp_get_rtc_time()
146 day = bcd2bin(day); in chrp_get_rtc_time()
155 tm->tm_mday = day; in chrp_get_rtc_time()
/arch/m68k/bvme6000/
Drtc.c73 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local
86 day = rtc_tm.tm_mday; 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()
115 rtc->bcd_dom = bin2bcd(day); in rtc_ioctl()
/arch/x86/kernel/
Drtc.c64 unsigned int status, year, mon, day, hour, min, sec, century = 0; in mach_get_cmos_time() local
81 day = CMOS_READ(RTC_DAY_OF_MONTH); in mach_get_cmos_time()
100 day = bcd2bin(day); in mach_get_cmos_time()
111 now->tv_sec = mktime(year, mon, day, hour, min, sec); in mach_get_cmos_time()
/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
183 day = t->tm_mday; in atari_tt_hwclk()
202 day = bin2bcd(day); in atari_tt_hwclk()
235 day = RTC_READ( RTC_DAY_OF_MONTH ); in atari_tt_hwclk()
244 RTC_WRITE( RTC_DAY_OF_MONTH, day ); in atari_tt_hwclk()
264 day = bcd2bin(day); in atari_tt_hwclk()
280 t->tm_mday = day; in atari_tt_hwclk()
Datakeyb.c506 void ikbd_clock_set(int year, int month, int day, int hour, int minute, int second) in ikbd_clock_set() argument
508 char cmd[7] = { 0x1B, year, month, day, hour, minute, second }; in ikbd_clock_set()
514 void ikbd_clock_get(int *year, int *month, int *day, int *hour, int *minute, int second) in ikbd_clock_get() argument
/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()
149 day = 17; in read_persistent_clock()
160 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
207 day = m41t81_read(M41T81REG_DT); in m41t81_get_time()
215 day = bcd2bin(day); 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
188 day = xicor_read(X1241REG_DT); in xicor_get_time()
197 day = bcd2bin(day); in xicor_get_time()
204 return mktime(year, mon, day, hour, min, sec); in xicor_get_time()
/arch/m68k/sun3/
Dintersil.c52 todintersil->day = t->tm_mday; in sun3_hwclk()
62 t->tm_mday = todintersil->day; in sun3_hwclk()
/arch/powerpc/kernel/
Dtime.c969 int day; in GregorianDay() local
985 day = tm->tm_mon > 2 && leapyear(tm->tm_year); in GregorianDay()
987 day += lastYear*365 + leapsToDate + MonthOffset[tm->tm_mon-1] + in GregorianDay()
990 tm->tm_wday = day % 7; in GregorianDay()
996 register long hms, day; in to_tm() local
998 day = tim / SECDAY; in to_tm()
1007 for (i = STARTOFTIME; day >= days_in_year(i); i++) in to_tm()
1008 day -= days_in_year(i); in to_tm()
1014 for (i = 1; day >= days_in_month(i); i++) in to_tm()
1015 day -= days_in_month(i); in to_tm()
[all …]
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()
/arch/m68k/include/asm/
Dintersil.h33 unsigned char day; member
/arch/m68k/include/uapi/asm/
Dbootinfo-vme.h49 __u8 rev, mth, day, yr; member
/arch/alpha/include/asm/
Derr_common.h73 u8 day; member
/arch/s390/include/uapi/asm/
Dvtoc.h37 __u16 day; member
/arch/alpha/kernel/
Derr_common.c173 timestamp->b.month, timestamp->b.day, in el_print_timestamp()
/arch/ia64/hp/sim/boot/
Dfw-emu.c96 tp->day = days + 1; in offtime()

12