/arch/m68k/atari/ |
D | time.c | 110 int hour, year; in atari_mste_hwclk() local 125 hour = t->tm_hour; in atari_mste_hwclk() 127 if (hour > 11) in atari_mste_hwclk() 128 hour += 20 - 12; in atari_mste_hwclk() 129 if (hour == 0 || hour == 20) in atari_mste_hwclk() 130 hour += 12; in atari_mste_hwclk() 132 val.hr_ones = hour % 10; in atari_mste_hwclk() 133 val.hr_tens = hour / 10; in atari_mste_hwclk() 151 hour = val.hr_ones + val.hr_tens * 10; in atari_mste_hwclk() 153 if (hour == 12 || hour == 12 + 20) in atari_mste_hwclk() [all …]
|
D | atakeyb.c | 506 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/sibyte/swarm/ |
D | rtc_xicor1241.c | 173 unsigned int year, mon, day, hour, min, sec, y2k; in xicor_get_time() local 179 hour = xicor_read(X1241REG_HR); in xicor_get_time() 181 if (hour & X1241REG_HR_MIL) { in xicor_get_time() 182 hour &= 0x3f; in xicor_get_time() 184 if (hour & 0x20) in xicor_get_time() 185 hour = (hour & 0xf) + 0x12; in xicor_get_time() 196 hour = bcd2bin(hour); in xicor_get_time() 204 return mktime(year, mon, day, hour, min, sec); in xicor_get_time()
|
D | rtc_m41t81.c | 193 unsigned int year, mon, day, hour, min, sec; in m41t81_get_time() local 206 hour = m41t81_read(M41T81REG_HR) & 0x3f; in m41t81_get_time() 214 hour = bcd2bin(hour); in m41t81_get_time() 221 return mktime(year, mon, day, hour, min, sec); in m41t81_get_time()
|
/arch/frv/kernel/ |
D | time.c | 90 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() 99 hour = min = sec = 0; 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()
|
D | setup.c | 1121 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/ |
D | mc146818-time.h | 91 unsigned int year, mon, day, hour, min, sec; in mc146818_get_cmos_time() local 99 hour = CMOS_READ(RTC_HOURS); in mc146818_get_cmos_time() 108 hour = bcd2bin(hour); in mc146818_get_cmos_time() 116 return mktime(year, mon, day, hour, min, sec); in mc146818_get_cmos_time()
|
D | m48t37.h | 24 volatile u8 hour; member
|
/arch/mips/dec/ |
D | time.c | 23 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock() local 31 hour = CMOS_READ(RTC_HOURS); in read_persistent_clock() 48 hour = bcd2bin(hour); in read_persistent_clock() 56 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
|
/arch/sh/boards/mach-sh03/ |
D | rtc.c | 42 unsigned int year, mon, day, hour, min, sec; in get_cmos_time() local 49 hour = (__raw_readb(RTC_HOU1) & 0xf) + (__raw_readb(RTC_HOU10) & 0xf) * 10; in get_cmos_time() 57 hour > 23 || min > 59 || sec > 59) { 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/powerpc/platforms/chrp/ |
D | time.c | 131 unsigned int year, mon, day, hour, min, sec; in chrp_get_rtc_time() local 136 hour = chrp_cmos_clock_read(RTC_HOURS); in chrp_get_rtc_time() 145 hour = bcd2bin(hour); in chrp_get_rtc_time() 154 tm->tm_hour = hour; in chrp_get_rtc_time()
|
/arch/x86/kernel/ |
D | rtc.c | 64 unsigned int status, year, mon, day, hour, min, sec, century = 0; in mach_get_cmos_time() local 80 hour = CMOS_READ(RTC_HOURS); in mach_get_cmos_time() 99 hour = bcd2bin(hour); in mach_get_cmos_time() 111 now->tv_sec = mktime(year, mon, day, hour, min, sec); in mach_get_cmos_time()
|
/arch/powerpc/platforms/maple/ |
D | time.c | 86 int sec, min, hour, mon, mday, year; in maple_set_rtc_time() local 100 hour = tm->tm_hour; in maple_set_rtc_time() 108 hour = bin2bcd(hour); in maple_set_rtc_time() 115 maple_clock_write(hour, RTC_HOURS); in maple_set_rtc_time()
|
/arch/x86/platform/intel-mid/ |
D | intel_mid_vrtc.c | 61 u8 sec, min, hour, mday, mon; in vrtc_get_time() local 72 hour = vrtc_cmos_read(RTC_HOURS); in vrtc_get_time() 83 "mon: %d year: %d\n", sec, min, hour, mday, mon, year); in vrtc_get_time() 85 now->tv_sec = mktime(year, mon, mday, hour, min, sec); in vrtc_get_time()
|
/arch/m32r/kernel/ |
D | time.c | 142 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() 160 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
|
/arch/m68k/sun3/ |
D | intersil.c | 48 todintersil->hour = t->tm_hour; in sun3_hwclk() 58 t->tm_hour = todintersil->hour; in sun3_hwclk()
|
/arch/m68k/sun3x/ |
D | time.c | 51 h->hour = bin2bcd(t->tm_hour); in sun3x_hwclk() 61 t->tm_hour = bcd2bin(h->hour); in sun3x_hwclk()
|
D | time.h | 12 volatile unsigned char hour; member
|
/arch/m68k/include/asm/ |
D | intersil.h | 29 unsigned char hour; member
|
/arch/alpha/include/asm/ |
D | err_common.h | 72 u8 hour; member
|
/arch/powerpc/kernel/ |
D | rtas-proc.c | 402 unsigned int year, mon, day, hour, min, sec; in ppc_rtas_clock_show() local 404 hour = ret[3]; min = ret[4]; sec = ret[5]; in ppc_rtas_clock_show() 406 mktime(year, mon, day, hour, min, sec)); in ppc_rtas_clock_show()
|
/arch/alpha/kernel/ |
D | err_common.c | 174 timestamp->b.year, timestamp->b.hour, in el_print_timestamp()
|
/arch/ia64/hp/sim/boot/ |
D | fw-emu.c | 69 tp->hour = rem / SECS_PER_HOUR; in offtime()
|
/arch/x86/platform/efi/ |
D | efi.c | 107 now->tv_sec = mktime(eft.year, eft.month, eft.day, eft.hour, in efi_get_time()
|
/arch/ia64/kernel/ |
D | efi.c | 249 tm.hour, tm.minute, tm.second); in STUB_GET_TIME()
|