Lines Matching refs:tod
165 todinfo_t tod; in todbq4802_get() local
179 tod.tod_year = rtc.rtc_year + (rtc.rtc_century * 100) - 1900; in todbq4802_get()
180 tod.tod_month = rtc.rtc_mon; in todbq4802_get()
181 tod.tod_day = rtc.rtc_dom; in todbq4802_get()
182 tod.tod_dow = rtc.rtc_dow; in todbq4802_get()
183 tod.tod_hour = rtc.rtc_hrs; in todbq4802_get()
184 tod.tod_min = rtc.rtc_min; in todbq4802_get()
185 tod.tod_sec = rtc.rtc_sec; in todbq4802_get()
187 ts.tv_sec = tod_to_utc(tod); in todbq4802_get()
249 todinfo_t tod = utc_to_tod(ts.tv_sec); in todbq4802_set() local
255 year = 1900 + tod.tod_year; in todbq4802_set()
258 rtc.rtc_mon = (uint8_t)tod.tod_month; in todbq4802_set()
259 rtc.rtc_dom = (uint8_t)tod.tod_day; in todbq4802_set()
260 rtc.rtc_dow = (uint8_t)tod.tod_dow; in todbq4802_set()
261 rtc.rtc_hrs = (uint8_t)tod.tod_hour; in todbq4802_set()
262 rtc.rtc_min = (uint8_t)tod.tod_min; in todbq4802_set()
263 rtc.rtc_sec = (uint8_t)tod.tod_sec; in todbq4802_set()
319 todinfo_t tod; in todbq4802_set_power_alarm() local
324 tod = utc_to_tod(ts.tv_sec); in todbq4802_set_power_alarm()
333 rtc.rtc_asec = (uint8_t)tod.tod_sec; in todbq4802_set_power_alarm()
334 rtc.rtc_amin = (uint8_t)tod.tod_min; in todbq4802_set_power_alarm()
335 rtc.rtc_ahrs = (uint8_t)tod.tod_hour; in todbq4802_set_power_alarm()
336 rtc.rtc_adom = (uint8_t)tod.tod_day; in todbq4802_set_power_alarm()