Lines Matching refs:alarm
57 /* The mutex protects alarm operations, and prevents a race
131 /* If the alarm is pending, clear it before requesting
166 /* The ds1374 has a decrementer for an alarm, rather than a comparator.
167 * If the time of day is changed, then the alarm will need to be
170 static int ds1374_read_alarm(struct device *dev, struct rtc_wkalrm *alarm)
199 rtc_time_to_tm(now + cur_alarm, &alarm->time);
200 alarm->enabled = !!(cr & DS1374_REG_CR_WACE);
201 alarm->pending = !!(sr & DS1374_REG_SR_AF);
208 static int ds1374_set_alarm(struct device *dev, struct rtc_wkalrm *alarm)
224 rtc_tm_to_time(&alarm->time, &new_alarm);
231 * an error), and the alarm is set to go off as soon as possible.
244 /* Disable any existing alarm before setting the new one
256 if (alarm->enabled) {