Home
last modified time | relevance | path

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

/Linux-v4.19/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()
/Linux-v4.19/arch/mips/dec/
Dtime.c72 int real_seconds, real_minutes, cmos_minutes; in update_persistent_clock64() local
95 real_minutes = div_s64_rem(nowtime, 60, &real_seconds); in update_persistent_clock64()
96 if (((abs(real_minutes - cmos_minutes) + 15) / 30) & 1) in update_persistent_clock64()
97 real_minutes += 30; /* correct for half hour time zone */ in update_persistent_clock64()
98 real_minutes %= 60; in update_persistent_clock64()
100 if (abs(real_minutes - cmos_minutes) < 30) { in update_persistent_clock64()
103 real_minutes = bin2bcd(real_minutes); in update_persistent_clock64()
106 CMOS_WRITE(real_minutes, RTC_MINUTES); in update_persistent_clock64()
110 cmos_minutes, real_minutes); in update_persistent_clock64()
/Linux-v4.19/arch/sh/boards/mach-sh03/
Drtc.c91 int real_seconds, real_minutes, cmos_minutes; in set_rtc_mmss() local
101 real_minutes = nowtime / 60; in set_rtc_mmss()
102 if (((abs(real_minutes - cmos_minutes) + 15)/30) & 1) in set_rtc_mmss()
103 real_minutes += 30; /* correct for half hour time zone */ in set_rtc_mmss()
104 real_minutes %= 60; in set_rtc_mmss()
106 if (abs(real_minutes - cmos_minutes) < 30) { in set_rtc_mmss()
109 __raw_writeb(real_minutes % 10, RTC_MIN1); in set_rtc_mmss()
110 __raw_writeb(real_minutes / 10, RTC_MIN10); in set_rtc_mmss()
114 cmos_minutes, real_minutes); in set_rtc_mmss()