Lines Matching +full:reset +full:- +full:time +full:- +full:sec
13 #include <linux/time.h>
42 save_freq_select = CMOS_READ(RTC_FREQ_SELECT); /* stop and reset prescaler */ in mc146818_set_rtc_mmss()
52 * messing with unknown time zones but requires your 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()
61 if (abs(real_minutes - cmos_minutes) < 30) { in mc146818_set_rtc_mmss()
72 retval = -1; in mc146818_set_rtc_mmss()
77 * battery and quartz) will not reset the oscillator and will not in mc146818_set_rtc_mmss()
80 * sheets anyway ... -- Markus Kuhn in mc146818_set_rtc_mmss()
91 unsigned int year, mon, day, hour, min, sec; in mc146818_get_cmos_time() local
97 sec = CMOS_READ(RTC_SECONDS); in mc146818_get_cmos_time()
103 } while (sec != CMOS_READ(RTC_SECONDS)); in mc146818_get_cmos_time()
106 sec = bcd2bin(sec); in mc146818_get_cmos_time()
116 return mktime64(year, mon, day, hour, min, sec); in mc146818_get_cmos_time()