Lines Matching refs:time_alarm
153 int time_alarm) in mtk_rtc_get_alarm_or_time() argument
164 sec = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_SEC)); in mtk_rtc_get_alarm_or_time()
165 min = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_MIN)); in mtk_rtc_get_alarm_or_time()
166 hour = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_HOU)); in mtk_rtc_get_alarm_or_time()
167 wday = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_DOW)); in mtk_rtc_get_alarm_or_time()
168 mday = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_DOM)); in mtk_rtc_get_alarm_or_time()
169 mon = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_MON)); in mtk_rtc_get_alarm_or_time()
170 year = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_YEA)); in mtk_rtc_get_alarm_or_time()
171 } while (sec != mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_SEC))); in mtk_rtc_get_alarm_or_time()
185 int time_alarm) in mtk_rtc_set_alarm_or_time() argument
192 mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_YEA), year); in mtk_rtc_set_alarm_or_time()
193 mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_MON), tm->tm_mon + 1); in mtk_rtc_set_alarm_or_time()
194 mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_DOW), tm->tm_wday); in mtk_rtc_set_alarm_or_time()
195 mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_DOM), tm->tm_mday); in mtk_rtc_set_alarm_or_time()
196 mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_HOU), tm->tm_hour); in mtk_rtc_set_alarm_or_time()
197 mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_MIN), tm->tm_min); in mtk_rtc_set_alarm_or_time()
198 mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_SEC), tm->tm_sec); in mtk_rtc_set_alarm_or_time()