Lines Matching refs:tod
825 todinfo_t tod; in todds_get() local
838 tod.tod_year = rtc.rtc_year + (rtc.rtc_century * 100) - 1900; in todds_get()
839 tod.tod_month = rtc.rtc_mon; in todds_get()
840 tod.tod_day = rtc.rtc_dom; in todds_get()
841 tod.tod_dow = rtc.rtc_dow; in todds_get()
842 tod.tod_hour = rtc.rtc_hrs; in todds_get()
843 tod.tod_min = rtc.rtc_min; in todds_get()
844 tod.tod_sec = rtc.rtc_sec; in todds_get()
846 ts.tv_sec = tod_to_utc(tod); in todds_get()
952 todinfo_t tod = utc_to_tod(ts.tv_sec); in todds_set() local
958 year = 1900 + tod.tod_year; in todds_set()
961 rtc.rtc_mon = (uint8_t)tod.tod_month; in todds_set()
962 rtc.rtc_dom = (uint8_t)tod.tod_day; in todds_set()
963 rtc.rtc_dow = (uint8_t)tod.tod_dow; in todds_set()
964 rtc.rtc_hrs = (uint8_t)tod.tod_hour; in todds_set()
965 rtc.rtc_min = (uint8_t)tod.tod_min; in todds_set()
966 rtc.rtc_sec = (uint8_t)tod.tod_sec; in todds_set()
1071 todinfo_t tod; in todds_set_power_alarm() local
1076 tod = utc_to_tod(ts.tv_sec); in todds_set_power_alarm()
1091 rtc.rtc_asec = (uint8_t)tod.tod_sec; in todds_set_power_alarm()
1092 rtc.rtc_amin = (uint8_t)tod.tod_min; in todds_set_power_alarm()
1093 rtc.rtc_ahrs = (uint8_t)tod.tod_hour; in todds_set_power_alarm()
1094 rtc.rtc_adom = (uint8_t)tod.tod_day; in todds_set_power_alarm()
1095 rtc.rtc_amon = (uint8_t)tod.tod_month; in todds_set_power_alarm()
1097 rtc.apc_wdwr = (uint8_t)tod.tod_dow; in todds_set_power_alarm()
1098 rtc.apc_wdmr = (uint8_t)tod.tod_day; in todds_set_power_alarm()
1099 rtc.apc_wmr = (uint8_t)tod.tod_month; in todds_set_power_alarm()
1100 rtc.apc_wyr = tod.tod_year % 100; in todds_set_power_alarm()
1101 rtc.apc_wcr = (tod.tod_year / 100) + 19; in todds_set_power_alarm()