Lines Matching refs:CMOS_WRITE
111 CMOS_WRITE(RTC_READ, RTC_CONTROL); in rtc_ds1742_get_time()
119 CMOS_WRITE(0, RTC_CONTROL); in rtc_ds1742_get_time()
133 CMOS_WRITE(RTC_READ, RTC_CONTROL); in rtc_ds1742_set_time()
142 CMOS_WRITE(RTC_WRITE, RTC_CONTROL); in rtc_ds1742_set_time()
150 CMOS_WRITE(year,RTC_YEAR); in rtc_ds1742_set_time()
155 CMOS_WRITE((month & 0x1f) | (cmos_month & ~0x1f),RTC_MONTH); in rtc_ds1742_set_time()
160 CMOS_WRITE(day, RTC_DATE); in rtc_ds1742_set_time()
174 if (hour != cmos_hour) CMOS_WRITE(hour, RTC_HOURS); in rtc_ds1742_set_time()
178 CMOS_WRITE(minute, RTC_MINUTES); in rtc_ds1742_set_time()
183 CMOS_WRITE(second & RTC_SECONDS_MASK,RTC_SECONDS); in rtc_ds1742_set_time()
187 CMOS_WRITE(cmos_century, RTC_CONTROL); in rtc_ds1742_set_time()
205 CMOS_WRITE(RTC_READ, RTC_CONTROL); in rtc_ds1742_init()
207 CMOS_WRITE(RTC_WRITE, RTC_CONTROL); in rtc_ds1742_init()
208 CMOS_WRITE(cmos_second, RTC_SECONDS); /* clear msb */ in rtc_ds1742_init()
209 CMOS_WRITE(0, RTC_CONTROL); in rtc_ds1742_init()