Home
last modified time | relevance | path

Searched refs:real_minutes (Results 1 – 12 of 12) sorted by relevance

/arch/mn10300/kernel/
Drtc.c55 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/
Dmc146818-time.h33 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/
Dtime.c61 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/
Dtime.c70 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/
Drtc.c90 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/
Drtc.c45 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/
Dtime.c292 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/
Dtime.c465 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/
Dconfig.c108 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/
Dconfig.c278 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/
Dconfig.c318 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/
Defi.c265 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()