Lines Matching refs:maple_clock_read
46 static int maple_clock_read(int addr) in maple_clock_read() function
61 tm->tm_sec = maple_clock_read(RTC_SECONDS); in maple_get_rtc_time()
62 tm->tm_min = maple_clock_read(RTC_MINUTES); in maple_get_rtc_time()
63 tm->tm_hour = maple_clock_read(RTC_HOURS); in maple_get_rtc_time()
64 tm->tm_mday = maple_clock_read(RTC_DAY_OF_MONTH); in maple_get_rtc_time()
65 tm->tm_mon = maple_clock_read(RTC_MONTH); in maple_get_rtc_time()
66 tm->tm_year = maple_clock_read(RTC_YEAR); in maple_get_rtc_time()
67 } while (tm->tm_sec != maple_clock_read(RTC_SECONDS)); in maple_get_rtc_time()
69 if (!(maple_clock_read(RTC_CONTROL) & RTC_DM_BINARY) in maple_get_rtc_time()
91 save_control = maple_clock_read(RTC_CONTROL); /* tell the clock it's being set */ in maple_set_rtc_time()
95 save_freq_select = maple_clock_read(RTC_FREQ_SELECT); /* stop and reset prescaler */ in maple_set_rtc_time()