Lines Matching full:alarm
148 struct rtc_emul_alarm *alarm; in rtc_emul_test_alarms() local
151 alarm = &data->alarms[i]; in rtc_emul_test_alarms()
153 if (alarm->mask == 0) { in rtc_emul_test_alarms()
157 if ((alarm->mask & RTC_ALARM_TIME_MASK_SECOND) && in rtc_emul_test_alarms()
158 (alarm->datetime.tm_sec != data->datetime.tm_sec)) { in rtc_emul_test_alarms()
162 if ((alarm->mask & RTC_ALARM_TIME_MASK_MINUTE) && in rtc_emul_test_alarms()
163 (alarm->datetime.tm_min != data->datetime.tm_min)) { in rtc_emul_test_alarms()
167 if ((alarm->mask & RTC_ALARM_TIME_MASK_HOUR) && in rtc_emul_test_alarms()
168 (alarm->datetime.tm_hour != data->datetime.tm_hour)) { in rtc_emul_test_alarms()
172 if ((alarm->mask & RTC_ALARM_TIME_MASK_MONTHDAY) && in rtc_emul_test_alarms()
173 (alarm->datetime.tm_mday != data->datetime.tm_mday)) { in rtc_emul_test_alarms()
177 if ((alarm->mask & RTC_ALARM_TIME_MASK_MONTH) && in rtc_emul_test_alarms()
178 (alarm->datetime.tm_mon != data->datetime.tm_mon)) { in rtc_emul_test_alarms()
182 if ((alarm->mask & RTC_ALARM_TIME_MASK_WEEKDAY) && in rtc_emul_test_alarms()
183 (alarm->datetime.tm_wday != data->datetime.tm_wday)) { in rtc_emul_test_alarms()
187 if (alarm->callback == NULL) { in rtc_emul_test_alarms()
188 alarm->pending = true; in rtc_emul_test_alarms()
193 alarm->callback(dev, i, alarm->user_data); in rtc_emul_test_alarms()
195 alarm->pending = false; in rtc_emul_test_alarms()