Lines Matching refs:rtc_write
50 #define rtc_write(x,y) i2c_writereg(RTC_I2C_WRITE, x, y)
95 rtc_write(reg, val);
141 if (rtc_write(RTC_CONTROL1, 0x00) < 0)
144 if (rtc_write(RTC_CONTROL2, 0x00) < 0)
147 if (rtc_write(RTC_CLOCKOUT_FREQ, 0x00) < 0)
153 if (rtc_write(RTC_SECONDS, (ret & 0x7f)) < 0)
157 if (rtc_write(RTC_MINUTE_ALARM, 0x00) < 0)
160 if (rtc_write(RTC_HOUR_ALARM, 0x00) < 0)
163 if (rtc_write(RTC_DAY_ALARM, 0x00) < 0)
166 if (rtc_write(RTC_WEEKDAY_ALARM, 0x00) < 0)
263 rtc_write(RTC_YEAR, tm.tm_year);
264 rtc_write(RTC_MONTH, tm.tm_mon);
265 rtc_write(RTC_DAY_OF_MONTH, tm.tm_mday);
266 rtc_write(RTC_HOURS, tm.tm_hour);
267 rtc_write(RTC_MINUTES, tm.tm_min);
268 rtc_write(RTC_SECONDS, tm.tm_sec);
297 rtc_write(RTC_SECONDS, (ret & 0x7F));