/arch/mn10300/kernel/ |
D | rtc.c | 55 int real_seconds, real_minutes, cmos_minutes; in set_rtc_mmss() local 78 real_minutes = nowtime / 60; in set_rtc_mmss() 79 if (((abs(real_minutes - cmos_minutes) + 15) / 30) & 1) in set_rtc_mmss() 81 real_minutes += 30; in set_rtc_mmss() 82 real_minutes %= 60; in set_rtc_mmss() 84 if (abs(real_minutes - cmos_minutes) < 30) { in set_rtc_mmss() 87 real_minutes = bin2bcd(real_minutes); in set_rtc_mmss() 90 CMOS_WRITE(real_minutes, RTC_MINUTES); in set_rtc_mmss() 94 cmos_minutes, real_minutes); in set_rtc_mmss()
|
/arch/mips/include/asm/ |
D | mc146818-time.h | 33 int real_seconds, real_minutes, cmos_minutes; in mc146818_set_rtc_mmss() local 56 real_minutes = nowtime / 60; in mc146818_set_rtc_mmss() 57 if (((abs(real_minutes - cmos_minutes) + 15)/30) & 1) in mc146818_set_rtc_mmss() 58 real_minutes += 30; /* correct for half hour time zone */ in mc146818_set_rtc_mmss() 59 real_minutes %= 60; in mc146818_set_rtc_mmss() 61 if (abs(real_minutes - cmos_minutes) < 30) { in mc146818_set_rtc_mmss() 64 real_minutes = bin2bcd(real_minutes); in mc146818_set_rtc_mmss() 67 CMOS_WRITE(real_minutes, RTC_MINUTES); in mc146818_set_rtc_mmss() 71 cmos_minutes, real_minutes); in mc146818_set_rtc_mmss()
|
/arch/cris/kernel/ |
D | time.c | 61 int real_seconds, real_minutes, cmos_minutes; in set_rtc_mmss() local 78 real_minutes = nowtime / 60; in set_rtc_mmss() 79 if (((abs(real_minutes - cmos_minutes) + 15)/30) & 1) in set_rtc_mmss() 80 real_minutes += 30; /* correct for half hour time zone */ in set_rtc_mmss() 81 real_minutes %= 60; in set_rtc_mmss() 83 if (abs(real_minutes - cmos_minutes) < 30) { in set_rtc_mmss() 85 real_minutes = bin2bcd(real_minutes); in set_rtc_mmss() 87 CMOS_WRITE(real_minutes,RTC_MINUTES); in set_rtc_mmss() 91 cmos_minutes, real_minutes); in set_rtc_mmss()
|
/arch/mips/dec/ |
D | time.c | 70 int real_seconds, real_minutes, cmos_minutes; in rtc_mips_set_mmss() local 94 real_minutes = nowtime / 60; in rtc_mips_set_mmss() 95 if (((abs(real_minutes - cmos_minutes) + 15) / 30) & 1) in rtc_mips_set_mmss() 96 real_minutes += 30; /* correct for half hour time zone */ in rtc_mips_set_mmss() 97 real_minutes %= 60; in rtc_mips_set_mmss() 99 if (abs(real_minutes - cmos_minutes) < 30) { in rtc_mips_set_mmss() 102 real_minutes = bin2bcd(real_minutes); in rtc_mips_set_mmss() 105 CMOS_WRITE(real_minutes, RTC_MINUTES); in rtc_mips_set_mmss() 109 cmos_minutes, real_minutes); in rtc_mips_set_mmss()
|
/arch/sh/boards/mach-sh03/ |
D | rtc.c | 90 int real_seconds, real_minutes, cmos_minutes; in set_rtc_mmss() local 100 real_minutes = nowtime / 60; in set_rtc_mmss() 101 if (((abs(real_minutes - cmos_minutes) + 15)/30) & 1) in set_rtc_mmss() 102 real_minutes += 30; /* correct for half hour time zone */ in set_rtc_mmss() 103 real_minutes %= 60; in set_rtc_mmss() 105 if (abs(real_minutes - cmos_minutes) < 30) { in set_rtc_mmss() 108 __raw_writeb(real_minutes % 10, RTC_MIN1); in set_rtc_mmss() 109 __raw_writeb(real_minutes / 10, RTC_MIN10); in set_rtc_mmss() 113 cmos_minutes, real_minutes); in set_rtc_mmss()
|
/arch/x86/kernel/ |
D | rtc.c | 45 int real_seconds, real_minutes, cmos_minutes; in mach_set_rtc_mmss() local 71 real_minutes = nowtime / 60; in mach_set_rtc_mmss() 73 if (((abs(real_minutes - cmos_minutes) + 15)/30) & 1) in mach_set_rtc_mmss() 74 real_minutes += 30; in mach_set_rtc_mmss() 75 real_minutes %= 60; in mach_set_rtc_mmss() 77 if (abs(real_minutes - cmos_minutes) < 30) { in mach_set_rtc_mmss() 80 real_minutes = bin2bcd(real_minutes); in mach_set_rtc_mmss() 83 CMOS_WRITE(real_minutes, RTC_MINUTES); in mach_set_rtc_mmss() 87 cmos_minutes, real_minutes); in mach_set_rtc_mmss()
|
/arch/m68k/atari/ |
D | time.c | 292 short real_seconds = nowtime % 60, real_minutes = (nowtime / 60) % 60; in atari_mste_set_clock_mmss() local 298 if ((rtc_minutes < real_minutes in atari_mste_set_clock_mmss() 299 ? real_minutes - rtc_minutes in atari_mste_set_clock_mmss() 300 : rtc_minutes - real_minutes) < 30) in atari_mste_set_clock_mmss() 304 val.min_ones = real_minutes % 10; in atari_mste_set_clock_mmss() 305 val.min_tens = real_minutes / 10; in atari_mste_set_clock_mmss() 316 short real_seconds = nowtime % 60, real_minutes = (nowtime / 60) % 60; in atari_tt_set_clock_mmss() local 332 if ((rtc_minutes < real_minutes in atari_tt_set_clock_mmss() 333 ? real_minutes - rtc_minutes in atari_tt_set_clock_mmss() 334 : rtc_minutes - real_minutes) < 30) in atari_tt_set_clock_mmss() [all …]
|
/arch/alpha/kernel/ |
D | time.c | 465 int real_seconds, real_minutes, cmos_minutes; in set_rtc_mmss() local 489 real_minutes = nowtime / 60; in set_rtc_mmss() 490 if (((abs(real_minutes - cmos_minutes) + 15)/30) & 1) { in set_rtc_mmss() 492 real_minutes += 30; in set_rtc_mmss() 494 real_minutes %= 60; in set_rtc_mmss() 496 if (abs(real_minutes - cmos_minutes) < 30) { in set_rtc_mmss() 499 real_minutes = bin2bcd(real_minutes); in set_rtc_mmss() 502 CMOS_WRITE(real_minutes,RTC_MINUTES); in set_rtc_mmss() 506 cmos_minutes, real_minutes); in set_rtc_mmss()
|
/arch/m68k/platform/68360/ |
D | config.c | 108 short real_seconds = nowtime % 60, real_minutes = (nowtime / 60) % 60; in BSP_set_clock_mmss() 112 tod->minute1 = real_minutes / 10; in BSP_set_clock_mmss() 113 tod->minute2 = real_minutes % 10; in BSP_set_clock_mmss()
|
/arch/m68k/q40/ |
D | config.c | 278 short real_seconds = nowtime % 60, real_minutes = (nowtime / 60) % 60; in q40_set_clock_mmss() local 284 if ((rtc_minutes < real_minutes ? in q40_set_clock_mmss() 285 real_minutes - rtc_minutes : in q40_set_clock_mmss() 286 rtc_minutes - real_minutes) < 30) { in q40_set_clock_mmss() 288 Q40_RTC_MINS = bin2bcd(real_minutes); in q40_set_clock_mmss()
|
/arch/m68k/bvme6000/ |
D | config.c | 318 short real_seconds = nowtime % 60, real_minutes = (nowtime / 60) % 60; in bvme6000_set_clock_mmss() local 328 if ((rtc_minutes < real_minutes in bvme6000_set_clock_mmss() 329 ? real_minutes - rtc_minutes in bvme6000_set_clock_mmss() 330 : rtc_minutes - real_minutes) < 30) in bvme6000_set_clock_mmss() 338 rtc->bcd_min = bin2bcd(real_minutes); in bvme6000_set_clock_mmss()
|
/arch/x86/platform/efi/ |
D | efi.c | 265 int real_seconds, real_minutes; in efi_set_rtc_mmss() local 277 real_minutes = nowtime / 60; in efi_set_rtc_mmss() 278 if (((abs(real_minutes - eft.minute) + 15)/30) & 1) in efi_set_rtc_mmss() 279 real_minutes += 30; in efi_set_rtc_mmss() 280 real_minutes %= 60; in efi_set_rtc_mmss() 281 eft.minute = real_minutes; in efi_set_rtc_mmss()
|