Lines Matching refs:rtc_write
22 static void rtc_write( unsigned int addr, uchar val);
60 rtc_write( RTC_CONTROLA, ( reg_a | RTC_CA_READ )); in rtc_get()
72 rtc_write( RTC_CONTROLA, ( reg_a & ~RTC_CA_READ )); in rtc_get()
111 rtc_write( RTC_CONTROLA, ( reg_a | RTC_CA_WRITE )); in rtc_set()
113 rtc_write( RTC_MONTH, bin2bcd( tmp->tm_mon )); in rtc_set()
115 rtc_write( RTC_DAY_OF_WEEK, bin2bcd( tmp->tm_wday )); in rtc_set()
116 rtc_write( RTC_DAY_OF_MONTH, bin2bcd( tmp->tm_mday )); in rtc_set()
117 rtc_write( RTC_HOURS, bin2bcd( tmp->tm_hour )); in rtc_set()
118 rtc_write( RTC_MINUTES, bin2bcd( tmp->tm_min )); in rtc_set()
119 rtc_write( RTC_SECONDS, bin2bcd( tmp->tm_sec )); in rtc_set()
122 rtc_write( RTC_YEAR, bin2bcd( tmp->tm_year % 100 )); in rtc_set()
123 rtc_write( RTC_CENTURY, bin2bcd( tmp->tm_year / 100 )); in rtc_set()
126 rtc_write( RTC_CONTROLA, ( reg_a & ~RTC_CA_WRITE )); in rtc_set()
144 rtc_write( RTC_CONTROLA, reg_a ); in rtc_reset()
145 rtc_write( RTC_CONTROLB, reg_b ); in rtc_reset()
150 rtc_write( RTC_CONTROLA, reg_a ); in rtc_reset()
168 static void rtc_write( unsigned int addr, uchar val ) in rtc_write() function