Home
last modified time | relevance | path

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

12

/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()
/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/cris/kernel/
Dtime.c103 unsigned int year, mon, day, hour, min, sec; in get_cmos_time() local
110 day = CMOS_READ(RTC_DAY_OF_MONTH); in get_cmos_time()
117 day = bcd2bin(day); in get_cmos_time()
124 return mktime(year, mon, day, hour, min, sec); in get_cmos_time()
/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()
/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/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()
150 day = 17; 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
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/mips/pmc-sierra/yosemite/
Dsetup.c75 unsigned int year, month, day, hour, min, sec; in read_persistent_clock() local
86 day = bcd2bin(m48t37_base->date); in read_persistent_clock()
95 ts->tv_sec = mktime(year, month, day, hour, min, sec); in read_persistent_clock()
132 m48t37_base->day = bin2bcd(tm.tm_wday + 1); in rtc_mips_set_time()
/arch/x86/kernel/
Drtc.c108 unsigned int status, year, mon, day, hour, min, sec, century = 0; in mach_get_cmos_time() local
125 day = CMOS_READ(RTC_DAY_OF_MONTH); in mach_get_cmos_time()
144 day = bcd2bin(day); 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
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()
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()
/arch/cris/arch-v10/drivers/
Dds1302.c261 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local
272 day = rtc_tm.tm_mday; 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()
300 day = bin2bcd(day); in rtc_ioctl()
307 CMOS_WRITE(day, RTC_DAY_OF_MONTH); in rtc_ioctl()
/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.c916 int day; in GregorianDay() local
932 day = tm->tm_mon > 2 && leapyear(tm->tm_year); in GregorianDay()
934 day += lastYear*365 + leapsToDate + MonthOffset[tm->tm_mon-1] + in GregorianDay()
937 tm->tm_wday = day % 7; in GregorianDay()
943 register long hms, day; in to_tm() local
945 day = tim / SECDAY; in to_tm()
954 for (i = STARTOFTIME; day >= days_in_year(i); i++) in to_tm()
955 day -= days_in_year(i); in to_tm()
961 for (i = 1; day >= days_in_month(i); i++) in to_tm()
962 day -= days_in_month(i); in to_tm()
[all …]
/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
125 day = CMOS_READ(RTC_DAY_OF_MONTH); in read_persistent_clock()
133 day = bcd2bin(day); in read_persistent_clock()
154 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
/arch/m68k/include/asm/
Dintersil.h33 unsigned char day; member
/arch/alpha/include/asm/
Derr_common.h73 u8 day; member

12