Lines Matching refs:alrm
159 static int stk17ta8_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in stk17ta8_rtc_set_alarm() argument
165 pdata->alrm_mday = alrm->time.tm_mday; in stk17ta8_rtc_set_alarm()
166 pdata->alrm_hour = alrm->time.tm_hour; in stk17ta8_rtc_set_alarm()
167 pdata->alrm_min = alrm->time.tm_min; in stk17ta8_rtc_set_alarm()
168 pdata->alrm_sec = alrm->time.tm_sec; in stk17ta8_rtc_set_alarm()
169 if (alrm->enabled) in stk17ta8_rtc_set_alarm()
175 static int stk17ta8_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in stk17ta8_rtc_read_alarm() argument
181 alrm->time.tm_mday = pdata->alrm_mday < 0 ? 0 : pdata->alrm_mday; in stk17ta8_rtc_read_alarm()
182 alrm->time.tm_hour = pdata->alrm_hour < 0 ? 0 : pdata->alrm_hour; in stk17ta8_rtc_read_alarm()
183 alrm->time.tm_min = pdata->alrm_min < 0 ? 0 : pdata->alrm_min; in stk17ta8_rtc_read_alarm()
184 alrm->time.tm_sec = pdata->alrm_sec < 0 ? 0 : pdata->alrm_sec; in stk17ta8_rtc_read_alarm()
185 alrm->enabled = (pdata->irqen & RTC_AF) ? 1 : 0; in stk17ta8_rtc_read_alarm()